MAL-2026-6569: Malicious code in longzy-basic-ui (npm)
The npm package longzy-basic-ui version 2.0.3 contains malicious code that executes during installation. Its postinstall script collects extensive environment data including hostname, username, platform, Node version, network interfaces, npm registry, and most environment variables, then exfiltrates this information to a concealed webhook on open.larksuite.com. The malware employs obfuscation and sandbox/honeypot evasion techniques to avoid detection. The package metadata is inconsistent with its public registry presence, indicating malicious intent. This behavior constitutes credential-theft malware.
AI Analysis
Technical Summary
The longzy-basic-ui npm package version 2.0.3 includes a postinstall hook that runs a script (.prepare.cjs) which gathers detailed system and environment information from the installer. This data includes hostname, username, platform details, Node.js version, network interfaces, npm registry, and a near-complete dump of environment variables excluding those prefixed with npm_lifecycle. The collected data is sent via HTTPS POST as a Lark/Feishu bot message to a hardcoded webhook endpoint on open.larksuite.com. The webhook URL is obfuscated by reversing the hostname and applying a character shift, while the webhook path is XOR-decoded at runtime. The script performs multiple sandbox and honeypot evasion checks by detecting known sandbox tokens, suspicious hostnames, and usernames. The package's declared homepage and repository URL point to an internal RFC1918 address, inconsistent with public npm publishing, and its stated purpose does not align with the malicious behavior. This combination of obfuscation, data exfiltration, and evasion confirms the package as credential-theft malware.
Potential Impact
Installation of longzy-basic-ui version 2.0.3 results in exfiltration of sensitive environment and system information to an attacker-controlled endpoint. This includes potentially sensitive credentials and environment variables, which can lead to credential theft and further compromise of the affected system or environment.
Mitigation Recommendations
No official patch or remediation is currently available. Users should avoid installing longzy-basic-ui version 2.0.3 from the npm registry. Remove any installations of this version and audit systems for potential compromise. Monitor for suspicious network traffic to open.larksuite.com. Check the vendor advisory or npm registry for updates or removal of the malicious package. Patch status is not yet confirmed — check the vendor advisory for current remediation guidance.
MAL-2026-6569: Malicious code in longzy-basic-ui (npm)
Description
The npm package longzy-basic-ui version 2.0.3 contains malicious code that executes during installation. Its postinstall script collects extensive environment data including hostname, username, platform, Node version, network interfaces, npm registry, and most environment variables, then exfiltrates this information to a concealed webhook on open.larksuite.com. The malware employs obfuscation and sandbox/honeypot evasion techniques to avoid detection. The package metadata is inconsistent with its public registry presence, indicating malicious intent. This behavior constitutes credential-theft malware.
Affected software
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The longzy-basic-ui npm package version 2.0.3 includes a postinstall hook that runs a script (.prepare.cjs) which gathers detailed system and environment information from the installer. This data includes hostname, username, platform details, Node.js version, network interfaces, npm registry, and a near-complete dump of environment variables excluding those prefixed with npm_lifecycle. The collected data is sent via HTTPS POST as a Lark/Feishu bot message to a hardcoded webhook endpoint on open.larksuite.com. The webhook URL is obfuscated by reversing the hostname and applying a character shift, while the webhook path is XOR-decoded at runtime. The script performs multiple sandbox and honeypot evasion checks by detecting known sandbox tokens, suspicious hostnames, and usernames. The package's declared homepage and repository URL point to an internal RFC1918 address, inconsistent with public npm publishing, and its stated purpose does not align with the malicious behavior. This combination of obfuscation, data exfiltration, and evasion confirms the package as credential-theft malware.
Potential Impact
Installation of longzy-basic-ui version 2.0.3 results in exfiltration of sensitive environment and system information to an attacker-controlled endpoint. This includes potentially sensitive credentials and environment variables, which can lead to credential theft and further compromise of the affected system or environment.
Mitigation Recommendations
No official patch or remediation is currently available. Users should avoid installing longzy-basic-ui version 2.0.3 from the npm registry. Remove any installations of this version and audit systems for potential compromise. Monitor for suspicious network traffic to open.larksuite.com. Check the vendor advisory or npm registry for updates or removal of the malicious package. Patch status is not yet confirmed — check the vendor advisory for current remediation guidance.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- MAL-2026-6569
- Osv Schema Version
- 1.7.4
- Aliases
- []
- Ecosystems
- ["npm"]
- Database Specific Severity
- null
- Cvss Version
- null
Threat ID: 6a42ed7827e9c797199395e5
Added to database: 06/29/2026, 22:11:04 UTC
Last enriched: 06/29/2026, 22:42:09 UTC
Last updated: 06/30/2026, 00:41:23 UTC
Views: 3
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
External Links
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.