Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…

Malicious code in typescipt-cli (npm)

0
Critical
Published: 08/18/2026 (08/18/2026, 23:19:49 UTC)
Source: GCVE Database
Product: typescipt-cli

Description

The typescipt-cli npm package version 1.0.0 contains malicious code that executes during installation. It sends the installer's platform information to a command-and-control server, downloads a binary payload without verification, and executes it on Windows systems, including via WSL. The malicious payload is XOR-encoded and dynamically reconstructed at runtime to evade detection.

Affected software

npmghsa
typescipt-cli
Affected versions
=1.0.0

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

AILast updated: 08/19/2026, 14:57:24 UTC

Technical Analysis

The typescipt-cli package (version 1.0.0) is a typosquatting malicious npm package targeting users who mistakenly install it instead of the legitimate 'typescript' package. Its postinstall script performs three main malicious actions: (1) it sends a JSON payload containing the installer's platform label to a remote IP address (193.70.34.101) on port 20099, obfuscated by splitting the IP into a string array; (2) it XOR-decodes a hardcoded URL pointing to a binary executable hosted on GitHub, downloads this binary to the Windows temporary directory as 'main.exe', and launches it in a hidden detached process without any hash or signature verification; (3) on Windows Subsystem for Linux (WSL), it decodes and executes a PowerShell bridge command to perform the same download and execution on the host Windows system. All URLs, commands, and the C2 IP are stored as encoded byte arrays and reconstructed at runtime to avoid detection.

Potential Impact

Successful installation of this package results in execution of a potentially malicious binary on the victim's Windows system without user consent or verification. This can lead to unauthorized remote code execution, potential system compromise, and data exfiltration. The attacker gains control via a command-and-control server, with no integrity checks on the downloaded payload, increasing risk of persistent compromise.

Mitigation Recommendations

Users should avoid installing the 'typescipt-cli' package, as it is a known typosquatting malicious package. Remove any installations of version 1.0.0 immediately. Since no official fix or patch is available, remediation involves uninstalling the package and scanning affected systems for the downloaded payload and any signs of compromise. Monitor for and block network connections to the IP 193.70.34.101 and the GitHub URL hosting the malicious binary. Exercise caution when installing similarly named packages and verify package authenticity before installation.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Gcve Source
db.gcve.eu
Osv Id
MAL-2026-14146
Osv Schema Version
1.7.4
Aliases
[]
Ecosystems
["npm"]
Database Specific Severity
null
Cvss Version
null

Threat ID: 6a85b4cbacd9273b49252eec

Added to database: 08/19/2026, 13:51:07 UTC

Last enriched: 08/19/2026, 14:57:24 UTC

Last updated: 08/19/2026, 18:16:07 UTC

Views: 6

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

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

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses