Malicious code in typecript-cli (npm)
The npm package 'typecript-cli' version 1.0.0 is a typosquatting malicious package impersonating 'typescript'. Its postinstall script performs an install-time dropper attack by downloading and executing an unsigned executable from a personal GitHub repository. It uses obfuscation techniques such as XOR-decoding payload strings and assembling IP addresses from split arrays to evade detection. On Windows, it downloads and runs 'main.exe' without verification. Under Windows Subsystem for Linux (WSL), it escapes the Linux sandbox to execute the same payload via PowerShell. The script also sends a beacon with platform information to a hardcoded IP address, likely for command and control or host selection purposes.
AI Analysis
Technical Summary
The malicious 'typecript-cli' npm package (version 1.0.0) is a typosquatting attack targeting users who intend to install the legitimate 'typescript' package. Its postinstall.js script contains obfuscated payload strings stored as integer arrays, decoded at runtime using XOR with the key 'stf2026'. This script downloads an unsigned executable 'main.exe' from a personal GitHub account unrelated to the package publisher and executes it detached on Windows hosts without hash or signature verification. When installed under WSL, the script uses an exec() bridge to invoke PowerShell on the Windows host, escaping the Linux sandbox to run the payload. Additionally, the script sends a JSON POST request containing the resolved platform label to a hardcoded IP address (193.70.34.101) assembled from split octets to evade static detection. This beacon likely serves as an install confirmation and host selector for further malicious activity.
Potential Impact
Users installing 'typecript-cli' version 1.0.0 risk executing arbitrary unsigned code on their Windows systems, potentially leading to full system compromise. The payload is delivered stealthily during package installation and bypasses common static detection methods through obfuscation. The beaconing behavior indicates possible remote control or further payload delivery. The ability to escape WSL sandboxing increases the attack surface on Windows systems running Linux environments.
Mitigation Recommendations
No official patch or remediation is currently documented. Users should avoid installing 'typecript-cli' version 1.0.0 and verify package names carefully to prevent typosquatting attacks. Use only trusted sources and official package names when installing npm packages. Monitor for updates from the npm registry or security advisories for any official fixes or removals. Since this is a malicious package, removal of the package and any downloaded payloads is recommended if installed.
Malicious code in typecript-cli (npm)
Description
The npm package 'typecript-cli' version 1.0.0 is a typosquatting malicious package impersonating 'typescript'. Its postinstall script performs an install-time dropper attack by downloading and executing an unsigned executable from a personal GitHub repository. It uses obfuscation techniques such as XOR-decoding payload strings and assembling IP addresses from split arrays to evade detection. On Windows, it downloads and runs 'main.exe' without verification. Under Windows Subsystem for Linux (WSL), it escapes the Linux sandbox to execute the same payload via PowerShell. The script also sends a beacon with platform information to a hardcoded IP address, likely for command and control or host selection purposes.
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 malicious 'typecript-cli' npm package (version 1.0.0) is a typosquatting attack targeting users who intend to install the legitimate 'typescript' package. Its postinstall.js script contains obfuscated payload strings stored as integer arrays, decoded at runtime using XOR with the key 'stf2026'. This script downloads an unsigned executable 'main.exe' from a personal GitHub account unrelated to the package publisher and executes it detached on Windows hosts without hash or signature verification. When installed under WSL, the script uses an exec() bridge to invoke PowerShell on the Windows host, escaping the Linux sandbox to run the payload. Additionally, the script sends a JSON POST request containing the resolved platform label to a hardcoded IP address (193.70.34.101) assembled from split octets to evade static detection. This beacon likely serves as an install confirmation and host selector for further malicious activity.
Potential Impact
Users installing 'typecript-cli' version 1.0.0 risk executing arbitrary unsigned code on their Windows systems, potentially leading to full system compromise. The payload is delivered stealthily during package installation and bypasses common static detection methods through obfuscation. The beaconing behavior indicates possible remote control or further payload delivery. The ability to escape WSL sandboxing increases the attack surface on Windows systems running Linux environments.
Defensive Guidance
No official patch or remediation is currently documented. Users should avoid installing 'typecript-cli' version 1.0.0 and verify package names carefully to prevent typosquatting attacks. Use only trusted sources and official package names when installing npm packages. Monitor for updates from the npm registry or security advisories for any official fixes or removals. Since this is a malicious package, removal of the package and any downloaded payloads is recommended if installed.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- MAL-2026-14145
- Osv Schema Version
- 1.7.4
- Aliases
- []
- Ecosystems
- ["npm"]
- Database Specific Severity
- null
- Cvss Version
- null
Threat ID: 6a85b4cbacd9273b49252ee8
Added to database: 08/19/2026, 13:51:07 UTC
Last enriched: 08/19/2026, 14:57:00 UTC
Last updated: 08/19/2026, 16:49:11 UTC
Views: 5
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.