MAL-2026-6984: Malicious code in @vite-ln/build-ts (npm)
The npm package @vite-ln/build-ts is a malicious clone of the legitimate vite package, containing obfuscated code that executes attacker-controlled payloads. When developers run the vite CLI from this package, it dynamically retrieves and executes code from blockchain RPC endpoints, allowing persistent remote code execution with full developer privileges. The package's presence indicates a full compromise of the affected system, and secrets stored on the machine should be rotated immediately. Removal of the package alone does not guarantee eradication of the malicious code or persistence mechanisms.
AI Analysis
Technical Summary
@vite-ln/build-ts is a malicious npm package impersonating the legitimate vite package by copying its manifest but published under an unofficial scope. Its tarball appends an obfuscated payload to the CLI entry point that dynamically fetches attacker-controlled code via HTTP(S) GET and JSON-RPC 2.0 POST requests from blockchain RPC endpoints. The retrieved payload is XOR-decoded and executed both via eval and as a detached hidden Node.js child process, enabling persistent remote code execution with developer-level privileges. Additional obfuscation patterns are present in other package files, indicating a sophisticated evasion technique. Any system running this package is considered fully compromised.
Potential Impact
Execution of attacker-controlled code with full developer privileges on any system running the malicious package. Persistent hidden processes may remain after initial execution, leading to full system compromise. All secrets and keys stored on the affected system are at risk and should be rotated. Removal of the package does not guarantee removal of all malicious artifacts or persistence mechanisms.
Mitigation Recommendations
No official patch or fix is available for this malicious package. The package should be immediately removed from all systems. All secrets and keys stored on affected machines must be rotated from a separate, trusted environment. Due to the high likelihood of full system compromise, a thorough incident response and system rebuild or forensic investigation is recommended. Monitor for any detached node processes and suspicious network activity related to blockchain RPC endpoints. Avoid installing packages from unofficial or suspicious scopes.
MAL-2026-6984: Malicious code in @vite-ln/build-ts (npm)
Description
The npm package @vite-ln/build-ts is a malicious clone of the legitimate vite package, containing obfuscated code that executes attacker-controlled payloads. When developers run the vite CLI from this package, it dynamically retrieves and executes code from blockchain RPC endpoints, allowing persistent remote code execution with full developer privileges. The package's presence indicates a full compromise of the affected system, and secrets stored on the machine should be rotated immediately. Removal of the package alone does not guarantee eradication of the malicious code or persistence mechanisms.
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
@vite-ln/build-ts is a malicious npm package impersonating the legitimate vite package by copying its manifest but published under an unofficial scope. Its tarball appends an obfuscated payload to the CLI entry point that dynamically fetches attacker-controlled code via HTTP(S) GET and JSON-RPC 2.0 POST requests from blockchain RPC endpoints. The retrieved payload is XOR-decoded and executed both via eval and as a detached hidden Node.js child process, enabling persistent remote code execution with developer-level privileges. Additional obfuscation patterns are present in other package files, indicating a sophisticated evasion technique. Any system running this package is considered fully compromised.
Potential Impact
Execution of attacker-controlled code with full developer privileges on any system running the malicious package. Persistent hidden processes may remain after initial execution, leading to full system compromise. All secrets and keys stored on the affected system are at risk and should be rotated. Removal of the package does not guarantee removal of all malicious artifacts or persistence mechanisms.
Mitigation Recommendations
No official patch or fix is available for this malicious package. The package should be immediately removed from all systems. All secrets and keys stored on affected machines must be rotated from a separate, trusted environment. Due to the high likelihood of full system compromise, a thorough incident response and system rebuild or forensic investigation is recommended. Monitor for any detached node processes and suspicious network activity related to blockchain RPC endpoints. Avoid installing packages from unofficial or suspicious scopes.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- MAL-2026-6984
- Osv Schema Version
- 1.7.4
- Aliases
- ["GHSA-p85w-qq28-35h6"]
- Ecosystems
- ["npm"]
- Database Specific Severity
- null
- Cvss Version
- null
Threat ID: 6a50ba5068715ace4357ebcb
Added to database: 07/10/2026, 09:24:32 UTC
Last enriched: 07/10/2026, 09:41:00 UTC
Last updated: 07/10/2026, 09:41:00 UTC
Views: 2
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.