Malicious code in tyepescript-cli (npm)
The npm package 'tyepescript-cli' is a typosquatting malicious package impersonating the legitimate 'typescript' package. Its postinstall script uses XOR obfuscation to decode attacker-controlled URLs and commands. On Windows, it downloads and executes a malicious binary from a suspicious GitHub account. Under Windows Subsystem for Linux (WSL), it uses a PowerShell bridge to execute the same payload on the Windows host. The script also sends an install-time beacon to a hardcoded IP address. This behavior indicates an active attempt to compromise systems during package installation.
AI Analysis
Technical Summary
The 'tyepescript-cli' npm package (version 1.0.0) is a malicious typosquatting package that executes harmful actions during installation. Its 'scripts/postinstall.js' script XOR-decodes obfuscated byte arrays to reveal attacker-controlled URLs and PowerShell commands. On Windows, it downloads 'main.exe' from a non-legitimate GitHub repository and executes it detached in the temporary directory. When installed under WSL, it executes a PowerShell bridge command to run the same binary on the Windows host. Additionally, it sends a JSON beacon with host information to a hardcoded numeric IP address. The use of obfuscation and the unrelated GitHub release path confirm the malicious intent of this package.
Potential Impact
Systems that install 'tyepescript-cli' version 1.0.0 risk executing attacker-controlled binaries and commands, potentially leading to system compromise. The malicious binary is downloaded and executed without user consent, and the package also communicates with a remote server, possibly for command and control or data exfiltration. This can result in unauthorized code execution and loss of system integrity on affected Windows hosts, including those running WSL.
Mitigation Recommendations
Users and organizations should avoid installing the 'tyepescript-cli' package, as it is a malicious typosquat of the legitimate 'typescript' package. There is no official patch or fix since this is a malicious package rather than a vulnerability in legitimate software. Security teams should audit their dependency trees to ensure this package is not present and remove it if found. Use trusted package sources and verify package names carefully to prevent typosquatting attacks.
Malicious code in tyepescript-cli (npm)
Description
The npm package 'tyepescript-cli' is a typosquatting malicious package impersonating the legitimate 'typescript' package. Its postinstall script uses XOR obfuscation to decode attacker-controlled URLs and commands. On Windows, it downloads and executes a malicious binary from a suspicious GitHub account. Under Windows Subsystem for Linux (WSL), it uses a PowerShell bridge to execute the same payload on the Windows host. The script also sends an install-time beacon to a hardcoded IP address. This behavior indicates an active attempt to compromise systems during package installation.
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 'tyepescript-cli' npm package (version 1.0.0) is a malicious typosquatting package that executes harmful actions during installation. Its 'scripts/postinstall.js' script XOR-decodes obfuscated byte arrays to reveal attacker-controlled URLs and PowerShell commands. On Windows, it downloads 'main.exe' from a non-legitimate GitHub repository and executes it detached in the temporary directory. When installed under WSL, it executes a PowerShell bridge command to run the same binary on the Windows host. Additionally, it sends a JSON beacon with host information to a hardcoded numeric IP address. The use of obfuscation and the unrelated GitHub release path confirm the malicious intent of this package.
Potential Impact
Systems that install 'tyepescript-cli' version 1.0.0 risk executing attacker-controlled binaries and commands, potentially leading to system compromise. The malicious binary is downloaded and executed without user consent, and the package also communicates with a remote server, possibly for command and control or data exfiltration. This can result in unauthorized code execution and loss of system integrity on affected Windows hosts, including those running WSL.
Mitigation Recommendations
Users and organizations should avoid installing the 'tyepescript-cli' package, as it is a malicious typosquat of the legitimate 'typescript' package. There is no official patch or fix since this is a malicious package rather than a vulnerability in legitimate software. Security teams should audit their dependency trees to ensure this package is not present and remove it if found. Use trusted package sources and verify package names carefully to prevent typosquatting attacks.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- MAL-2026-14143
- Osv Schema Version
- 1.7.4
- Aliases
- []
- Ecosystems
- ["npm"]
- Database Specific Severity
- null
- Cvss Version
- null
Threat ID: 6a85b4cbacd9273b49252eee
Added to database: 08/19/2026, 13:51:07 UTC
Last enriched: 08/19/2026, 14:57:44 UTC
Last updated: 08/19/2026, 16:48:35 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.