Malicious code in typescriptt-cli (npm)
The typescriptt-cli npm package is a typosquatting malicious package that executes a postinstall script to download and run a Windows executable from a personal GitHub release. It attempts to break out of Windows Subsystem for Linux (WSL) to execute the payload on the Windows host. The payload download URL and tracking endpoint use hardcoded, obfuscated data with no integrity verification. Only version 1.0.0 is affected.
AI Analysis
Technical Summary
The typescriptt-cli package is a typosquat of typescript-cli. Its index.js is empty, but its postinstall.js script XOR-decodes a hardcoded byte array to reconstruct a URL pointing to a GitHub release hosting a Windows executable. Upon npm install, it downloads this executable to the %TEMP% directory and runs it detached and hidden. If running under WSL, it detects this environment and executes a PowerShell command to run the same payload on the Windows host, effectively escaping the WSL sandbox. Before downloading, it sends a JSON platform label to a hardcoded IP address for install tracking. The payload is unsigned and opaque, and no hash or signature verification is performed. The affected version is exactly 1.0.0.
Potential Impact
This malicious package can execute arbitrary code on the host system during installation, potentially leading to full compromise of the Windows environment. The WSL breakout capability increases the attack surface by allowing execution on the Windows host from a Linux subsystem. The lack of payload verification and use of a personal GitHub account for hosting increases risk of undetected malicious activity. The tracking POST request reveals installation to an attacker-controlled server.
Mitigation Recommendations
Users should avoid installing the typescriptt-cli package, especially version 1.0.0. Since this is a malicious typosquat package, the best mitigation is to verify package names carefully before installation. There is no official patch or fix as this is a malicious package rather than a vulnerability in legitimate software. Remove any installations of typescriptt-cli 1.0.0 and scan affected systems for the downloaded payload. Monitor for suspicious network activity to the hardcoded IP and GitHub URLs.
Malicious code in typescriptt-cli (npm)
Description
The typescriptt-cli npm package is a typosquatting malicious package that executes a postinstall script to download and run a Windows executable from a personal GitHub release. It attempts to break out of Windows Subsystem for Linux (WSL) to execute the payload on the Windows host. The payload download URL and tracking endpoint use hardcoded, obfuscated data with no integrity verification. Only version 1.0.0 is affected.
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 typescriptt-cli package is a typosquat of typescript-cli. Its index.js is empty, but its postinstall.js script XOR-decodes a hardcoded byte array to reconstruct a URL pointing to a GitHub release hosting a Windows executable. Upon npm install, it downloads this executable to the %TEMP% directory and runs it detached and hidden. If running under WSL, it detects this environment and executes a PowerShell command to run the same payload on the Windows host, effectively escaping the WSL sandbox. Before downloading, it sends a JSON platform label to a hardcoded IP address for install tracking. The payload is unsigned and opaque, and no hash or signature verification is performed. The affected version is exactly 1.0.0.
Potential Impact
This malicious package can execute arbitrary code on the host system during installation, potentially leading to full compromise of the Windows environment. The WSL breakout capability increases the attack surface by allowing execution on the Windows host from a Linux subsystem. The lack of payload verification and use of a personal GitHub account for hosting increases risk of undetected malicious activity. The tracking POST request reveals installation to an attacker-controlled server.
Mitigation Recommendations
Users should avoid installing the typescriptt-cli package, especially version 1.0.0. Since this is a malicious typosquat package, the best mitigation is to verify package names carefully before installation. There is no official patch or fix as this is a malicious package rather than a vulnerability in legitimate software. Remove any installations of typescriptt-cli 1.0.0 and scan affected systems for the downloaded payload. Monitor for suspicious network activity to the hardcoded IP and GitHub URLs.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- MAL-2026-14151
- Osv Schema Version
- 1.7.4
- Aliases
- []
- Ecosystems
- ["npm"]
- Database Specific Severity
- null
- Cvss Version
- null
Threat ID: 6a85b4cbacd9273b49252eda
Added to database: 08/19/2026, 13:51:07 UTC
Last enriched: 08/19/2026, 14:56:34 UTC
Last updated: 08/20/2026, 01:06:24 UTC
Views: 8
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.