Malicious code in typescipt-cli (npm)
The typescipt-cli npm package version 1.0.0 contains malicious code that executes during installation. It sends the installer's platform information to a command-and-control server, downloads a binary payload without verification, and executes it on Windows systems, including via WSL. The malicious payload is XOR-encoded and dynamically reconstructed at runtime to evade detection.
AI Analysis
Technical Summary
The typescipt-cli package (version 1.0.0) is a typosquatting malicious npm package targeting users who mistakenly install it instead of the legitimate 'typescript' package. Its postinstall script performs three main malicious actions: (1) it sends a JSON payload containing the installer's platform label to a remote IP address (193.70.34.101) on port 20099, obfuscated by splitting the IP into a string array; (2) it XOR-decodes a hardcoded URL pointing to a binary executable hosted on GitHub, downloads this binary to the Windows temporary directory as 'main.exe', and launches it in a hidden detached process without any hash or signature verification; (3) on Windows Subsystem for Linux (WSL), it decodes and executes a PowerShell bridge command to perform the same download and execution on the host Windows system. All URLs, commands, and the C2 IP are stored as encoded byte arrays and reconstructed at runtime to avoid detection.
Potential Impact
Successful installation of this package results in execution of a potentially malicious binary on the victim's Windows system without user consent or verification. This can lead to unauthorized remote code execution, potential system compromise, and data exfiltration. The attacker gains control via a command-and-control server, with no integrity checks on the downloaded payload, increasing risk of persistent compromise.
Mitigation Recommendations
Users should avoid installing the 'typescipt-cli' package, as it is a known typosquatting malicious package. Remove any installations of version 1.0.0 immediately. Since no official fix or patch is available, remediation involves uninstalling the package and scanning affected systems for the downloaded payload and any signs of compromise. Monitor for and block network connections to the IP 193.70.34.101 and the GitHub URL hosting the malicious binary. Exercise caution when installing similarly named packages and verify package authenticity before installation.
Malicious code in typescipt-cli (npm)
Description
The typescipt-cli npm package version 1.0.0 contains malicious code that executes during installation. It sends the installer's platform information to a command-and-control server, downloads a binary payload without verification, and executes it on Windows systems, including via WSL. The malicious payload is XOR-encoded and dynamically reconstructed at runtime to evade detection.
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 typescipt-cli package (version 1.0.0) is a typosquatting malicious npm package targeting users who mistakenly install it instead of the legitimate 'typescript' package. Its postinstall script performs three main malicious actions: (1) it sends a JSON payload containing the installer's platform label to a remote IP address (193.70.34.101) on port 20099, obfuscated by splitting the IP into a string array; (2) it XOR-decodes a hardcoded URL pointing to a binary executable hosted on GitHub, downloads this binary to the Windows temporary directory as 'main.exe', and launches it in a hidden detached process without any hash or signature verification; (3) on Windows Subsystem for Linux (WSL), it decodes and executes a PowerShell bridge command to perform the same download and execution on the host Windows system. All URLs, commands, and the C2 IP are stored as encoded byte arrays and reconstructed at runtime to avoid detection.
Potential Impact
Successful installation of this package results in execution of a potentially malicious binary on the victim's Windows system without user consent or verification. This can lead to unauthorized remote code execution, potential system compromise, and data exfiltration. The attacker gains control via a command-and-control server, with no integrity checks on the downloaded payload, increasing risk of persistent compromise.
Mitigation Recommendations
Users should avoid installing the 'typescipt-cli' package, as it is a known typosquatting malicious package. Remove any installations of version 1.0.0 immediately. Since no official fix or patch is available, remediation involves uninstalling the package and scanning affected systems for the downloaded payload and any signs of compromise. Monitor for and block network connections to the IP 193.70.34.101 and the GitHub URL hosting the malicious binary. Exercise caution when installing similarly named packages and verify package authenticity before installation.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- MAL-2026-14146
- Osv Schema Version
- 1.7.4
- Aliases
- []
- Ecosystems
- ["npm"]
- Database Specific Severity
- null
- Cvss Version
- null
Threat ID: 6a85b4cbacd9273b49252eec
Added to database: 08/19/2026, 13:51:07 UTC
Last enriched: 08/19/2026, 14:57:24 UTC
Last updated: 08/19/2026, 18:16:07 UTC
Views: 6
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.