Malicious code in typscript-core (npm)
typscript-core, a typosquat of the legitimate 'typescript' npm package, contained malicious code in its postinstall script that downloads and executes a binary, exfiltrates system information, and communicates with a command-and-control server.
- Disclosed
- Last updated
- Blast radius
- Any developer or system that installed typscript-core from npm during the malicious period.
- Ecosystems
- Attack vectors
- Affected entities
- typscript-coreTyposquat of 'typescript' package; contains malicious postinstall script
typscript-core is a typosquatting attack targeting developers who may mistype the legitimate 'typescript' package name. The malicious package contains obfuscated code in scripts/postinstall.js that reconstructs shell commands and URLs at runtime using XOR decoding with the key 'stf2026'.
Upon installation, the postinstall script downloads a binary executable to %TEMP%\main.exe and executes it with detached process spawning and hidden window flags on Windows systems. On WSL environments, the same payload is delivered via a PowerShell bridge.
The package also exfiltrates platform information by POSTing to a hardcoded IP endpoint at http://193.70.34.101:20099/vote. The IP address and URLs are obfuscated as byte arrays and reconstructed at runtime to evade static detection and analysis.
This incident was identified and credited to the OpenSSF's malicious-packages repository.
Indicators of compromise
- Packages
- typscript-core
- IPs
- 193.70.34.101
Remediation
- Review the linked advisory; remove or upgrade the affected component and rotate any exposed credentials.
Sources
- GitHub Advisory GHSA-m44j-79hq-7pgc · GitHub Advisory Database
Cite this entry
"Malicious code in typscript-core (npm)." supplychainattack.org, Supply Chain Attack Incident Catalog. Disclosed August 19, 2026; last updated August 19, 2026. https://supplychainattack.org/incident/malicious-code-in-typscript-core-npm-18xexv
Suggest a correction
Found an error or have a newer source? Corrections to factual errors take priority over new entries.
Related incidents
- resolvedcritical
Malicious code in create-coin (npm)
create-coin@20.1.1 on npm contained malicious postinstall code that collected sensitive environment variables, credentials, and host reconnaissance data. The package impersonated an esbuild platform build and exfiltrated data to a hardcoded endpoint.
npmCompromised packageTyposquatting - containedcritical
Malicious code in chai-as-testkit (npm)
The npm package chai-as-testkit is a typosquat/impersonation attack delivering obfuscated malicious code that executes on import. The package falsely claims to be a vulnerability management tool but ships pino library files under a different author, with a synthetic stub that loads a 4MB+ obfuscated bundle containing attacker-controlled code.
npmTyposquattingCompromised package - resolvedcritical
Malicious code in @next-fonts/font (npm)
@next-fonts/font is a typosquat package on npm that executes arbitrary attacker-controlled code via a blockchain-mediated C2 channel when its Inter() function is called. The malicious payload is base64-encoded and executed through Node.js spawn or eval, with no legitimate font functionality.
npmTyposquattingCompromised package - resolvedcritical
Malicious code in chai-as-soul (npm)
chai-as-soul@2.3.5 is a typosquat of the pino logging library containing malicious code that exfiltrates environment variables (including AWS/GCP/CI tokens) and executes arbitrary remote code on installation.
npmTyposquattingCompromised package