Malicious code in typesript-cli (npm)
The 'typesript-cli' npm package version 1.0.0 is a malicious typosquatting package targeting users expecting the legitimate 'typescript' package. Upon installation, it decodes and downloads a Windows executable to the TEMP directory and runs it without verification. It also attempts to detect if running under WSL or virtualized Linux and executes a bridge launcher to run the payload on the Windows host, bypassing the Linux sandbox. Additionally, it sends platform information to a hardcoded IP address as an install beacon.
AI Analysis
Technical Summary
The 'typesript-cli' package is a one-character typo-squatted malicious npm package impersonating the legitimate 'typescript' package. Its post-install script XOR-decodes a GitHub-hosted payload and downloads a Windows PE executable to TEMP\main.exe, which it executes without signature verification. When detected running under Windows Subsystem for Linux (WSL) or virtualized Linux, it further decodes and executes a bridge launcher command to run the payload on the Windows host, effectively crossing sandbox boundaries. The script also exfiltrates platform information to a hardcoded IP address (193.70.34.101) by reconstructing the IP from a string array to evade static detection. This behavior indicates a targeted attempt to infect Windows systems via npm package installation.
Potential Impact
Installation of this package results in execution of an unverified Windows executable, potentially leading to system compromise. The payload crosses sandbox boundaries when run under WSL or virtualized Linux, increasing the attack surface. The beaconing to a hardcoded IP address reveals installation and environment details to an attacker-controlled server, facilitating further malicious activity or tracking. No known exploits in the wild are reported yet, but the malicious behavior poses a high risk to affected systems.
Mitigation Recommendations
No official patch or fix is available since this is a malicious package rather than a vulnerability in legitimate software. Users should avoid installing 'typesript-cli' and verify package names carefully before installation. Remove the package if already installed and scan affected systems for the downloaded payload (TEMP\main.exe). Network monitoring or blocking connections to the IP 193.70.34.101 may help detect or prevent beaconing. Use trusted sources and package integrity verification to prevent typosquatting attacks.
Malicious code in typesript-cli (npm)
Description
The 'typesript-cli' npm package version 1.0.0 is a malicious typosquatting package targeting users expecting the legitimate 'typescript' package. Upon installation, it decodes and downloads a Windows executable to the TEMP directory and runs it without verification. It also attempts to detect if running under WSL or virtualized Linux and executes a bridge launcher to run the payload on the Windows host, bypassing the Linux sandbox. Additionally, it sends platform information to a hardcoded IP address as an install beacon.
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 'typesript-cli' package is a one-character typo-squatted malicious npm package impersonating the legitimate 'typescript' package. Its post-install script XOR-decodes a GitHub-hosted payload and downloads a Windows PE executable to TEMP\main.exe, which it executes without signature verification. When detected running under Windows Subsystem for Linux (WSL) or virtualized Linux, it further decodes and executes a bridge launcher command to run the payload on the Windows host, effectively crossing sandbox boundaries. The script also exfiltrates platform information to a hardcoded IP address (193.70.34.101) by reconstructing the IP from a string array to evade static detection. This behavior indicates a targeted attempt to infect Windows systems via npm package installation.
Potential Impact
Installation of this package results in execution of an unverified Windows executable, potentially leading to system compromise. The payload crosses sandbox boundaries when run under WSL or virtualized Linux, increasing the attack surface. The beaconing to a hardcoded IP address reveals installation and environment details to an attacker-controlled server, facilitating further malicious activity or tracking. No known exploits in the wild are reported yet, but the malicious behavior poses a high risk to affected systems.
Mitigation Recommendations
No official patch or fix is available since this is a malicious package rather than a vulnerability in legitimate software. Users should avoid installing 'typesript-cli' and verify package names carefully before installation. Remove the package if already installed and scan affected systems for the downloaded payload (TEMP\main.exe). Network monitoring or blocking connections to the IP 193.70.34.101 may help detect or prevent beaconing. Use trusted sources and package integrity verification to prevent typosquatting attacks.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- MAL-2026-14154
- Osv Schema Version
- 1.7.4
- Aliases
- []
- Ecosystems
- ["npm"]
- Database Specific Severity
- null
- Cvss Version
- null
Threat ID: 6a85b4cbacd9273b49252ec8
Added to database: 08/19/2026, 13:51:07 UTC
Last enriched: 08/19/2026, 14:54:51 UTC
Last updated: 08/19/2026, 14:54:51 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.