Malicious code in typescrip-cli (npm)
The npm package 'typescrip-cli' is a malicious typosquatting package targeting 'typescript-cli'. It exports no legitimate functionality and contains a postinstall script that downloads and executes a malicious Windows executable from a personal GitHub repository. On Windows Subsystem for Linux (WSL) or virtualized Linux environments, it runs a PowerShell launcher to execute the payload on the Windows host. Additionally, it sends a beacon with host platform information to a hardcoded IP address.
AI Analysis
Technical Summary
The 'typescrip-cli' npm package (version 1.0.0) is a malicious typosquatting package that mimics the legitimate 'typescript-cli' package. Its index.js exports an empty object, providing no library functionality. The postinstall.js script contains obfuscated network destinations encoded as XOR byte arrays with the key 'stf2026'. At runtime, it decodes a URL pointing to a Windows executable hosted on a personal GitHub account under a mutable 'null' release tag. On Windows systems, the script downloads this executable to the temporary directory and executes it detached. On WSL or virtualized Linux, it decodes and runs a PowerShell launcher that bridges execution to the Windows host. Concurrently, the script sends a JSON POST request identifying the host platform to a hardcoded IP address (193.70.34.101) to avoid detection by splitting the IP string. This behavior indicates a deliberate attempt to execute malicious code and exfiltrate system information.
Potential Impact
This malicious package can lead to arbitrary code execution on Windows hosts, including those running WSL or virtualized Linux environments. The downloaded executable's functionality is not detailed but the execution of unknown code from an untrusted source poses risks such as system compromise, data theft, or persistence. The beaconing to a hardcoded IP address also indicates potential information leakage about infected hosts.
Mitigation Recommendations
No official patch or remediation is available as this is a malicious package rather than a vulnerability in legitimate software. The recommended mitigation is to avoid installing 'typescrip-cli' version 1.0.0 and instead use the legitimate 'typescript-cli' package. Security teams should audit dependencies for typosquatting packages and remove any instances of 'typescrip-cli'. Monitoring for downloads from suspicious URLs and blocking communication to the hardcoded IP address may help reduce risk.
Malicious code in typescrip-cli (npm)
Description
The npm package 'typescrip-cli' is a malicious typosquatting package targeting 'typescript-cli'. It exports no legitimate functionality and contains a postinstall script that downloads and executes a malicious Windows executable from a personal GitHub repository. On Windows Subsystem for Linux (WSL) or virtualized Linux environments, it runs a PowerShell launcher to execute the payload on the Windows host. Additionally, it sends a beacon with host platform information to a hardcoded IP address.
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 'typescrip-cli' npm package (version 1.0.0) is a malicious typosquatting package that mimics the legitimate 'typescript-cli' package. Its index.js exports an empty object, providing no library functionality. The postinstall.js script contains obfuscated network destinations encoded as XOR byte arrays with the key 'stf2026'. At runtime, it decodes a URL pointing to a Windows executable hosted on a personal GitHub account under a mutable 'null' release tag. On Windows systems, the script downloads this executable to the temporary directory and executes it detached. On WSL or virtualized Linux, it decodes and runs a PowerShell launcher that bridges execution to the Windows host. Concurrently, the script sends a JSON POST request identifying the host platform to a hardcoded IP address (193.70.34.101) to avoid detection by splitting the IP string. This behavior indicates a deliberate attempt to execute malicious code and exfiltrate system information.
Potential Impact
This malicious package can lead to arbitrary code execution on Windows hosts, including those running WSL or virtualized Linux environments. The downloaded executable's functionality is not detailed but the execution of unknown code from an untrusted source poses risks such as system compromise, data theft, or persistence. The beaconing to a hardcoded IP address also indicates potential information leakage about infected hosts.
Defensive Guidance
No official patch or remediation is available as this is a malicious package rather than a vulnerability in legitimate software. The recommended mitigation is to avoid installing 'typescrip-cli' version 1.0.0 and instead use the legitimate 'typescript-cli' package. Security teams should audit dependencies for typosquatting packages and remove any instances of 'typescrip-cli'. Monitoring for downloads from suspicious URLs and blocking communication to the hardcoded IP address may help reduce risk.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- MAL-2026-14150
- Osv Schema Version
- 1.7.4
- Aliases
- []
- Ecosystems
- ["npm"]
- Database Specific Severity
- null
- Cvss Version
- null
Threat ID: 6a85b4cbacd9273b49252ed6
Added to database: 08/19/2026, 13:51:07 UTC
Last enriched: 08/19/2026, 14:56:03 UTC
Last updated: 08/19/2026, 19:09:52 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.