Malicious code in typescirpt-cli (npm)
The npm package 'typescirpt-cli' version 1.0.0 contains malicious code in its postinstall script that downloads and executes an unverified executable from a personal GitHub repository. It uses obfuscated code to reconstruct the download URL and a PowerShell command to run the binary on Windows and Windows Subsystem for Linux (WSL) environments. Additionally, it sends installation metrics over unencrypted HTTP to a hardcoded IP address. The package name is a typosquat of the legitimate 'typescript-cli' package.
AI Analysis
Technical Summary
The 'typescirpt-cli' npm package (version 1.0.0) includes a postinstall script that XOR-decodes obfuscated byte arrays with the key 'stf2026' to reconstruct a download URL and a PowerShell command. On Windows and Linux with WSL, it downloads an opaque executable ('main.exe') from an unrelated personal GitHub account without version tags or signature verification, saves it to the TEMP directory, and executes it detached. From WSL, it uses a decoded PowerShell bridge to run the binary on the Windows host. Separately, it sends a JSON payload containing node, architecture, and platform information to a hardcoded IP address (193.70.34.101:20099) over plain HTTP, with the host obscured via array-join. The package name is a deliberate typo of 'typescript-cli', indicating a typosquatting attack.
Potential Impact
This malicious package can execute arbitrary code on affected systems by downloading and running an untrusted executable, potentially leading to system compromise. The unencrypted transmission of installation metrics to a suspicious IP address may also expose system information. The use of typosquatting increases the risk of unsuspecting users installing this malicious package instead of the legitimate one.
Mitigation Recommendations
No official patch or remediation is currently documented. Users should avoid installing the 'typescirpt-cli' package version 1.0.0 and verify package names carefully to avoid typosquatting. Remove any installations of this package and scan affected systems for the downloaded executable and related artifacts. Monitor for suspicious network connections to the IP address 193.70.34.101. Check vendor advisories or trusted sources for updates on remediation.
Malicious code in typescirpt-cli (npm)
Description
The npm package 'typescirpt-cli' version 1.0.0 contains malicious code in its postinstall script that downloads and executes an unverified executable from a personal GitHub repository. It uses obfuscated code to reconstruct the download URL and a PowerShell command to run the binary on Windows and Windows Subsystem for Linux (WSL) environments. Additionally, it sends installation metrics over unencrypted HTTP to a hardcoded IP address. The package name is a typosquat of the legitimate 'typescript-cli' package.
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 'typescirpt-cli' npm package (version 1.0.0) includes a postinstall script that XOR-decodes obfuscated byte arrays with the key 'stf2026' to reconstruct a download URL and a PowerShell command. On Windows and Linux with WSL, it downloads an opaque executable ('main.exe') from an unrelated personal GitHub account without version tags or signature verification, saves it to the TEMP directory, and executes it detached. From WSL, it uses a decoded PowerShell bridge to run the binary on the Windows host. Separately, it sends a JSON payload containing node, architecture, and platform information to a hardcoded IP address (193.70.34.101:20099) over plain HTTP, with the host obscured via array-join. The package name is a deliberate typo of 'typescript-cli', indicating a typosquatting attack.
Potential Impact
This malicious package can execute arbitrary code on affected systems by downloading and running an untrusted executable, potentially leading to system compromise. The unencrypted transmission of installation metrics to a suspicious IP address may also expose system information. The use of typosquatting increases the risk of unsuspecting users installing this malicious package instead of the legitimate one.
Mitigation Recommendations
No official patch or remediation is currently documented. Users should avoid installing the 'typescirpt-cli' package version 1.0.0 and verify package names carefully to avoid typosquatting. Remove any installations of this package and scan affected systems for the downloaded executable and related artifacts. Monitor for suspicious network connections to the IP address 193.70.34.101. Check vendor advisories or trusted sources for updates on remediation.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- MAL-2026-14148
- Osv Schema Version
- 1.7.4
- Aliases
- []
- Ecosystems
- ["npm"]
- Database Specific Severity
- null
- Cvss Version
- null
Threat ID: 6a85b4cbacd9273b49252ed8
Added to database: 08/19/2026, 13:51:07 UTC
Last enriched: 08/19/2026, 14:56:17 UTC
Last updated: 08/19/2026, 18:16:10 UTC
Views: 4
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.