Malicious code in tyepescript-core (npm)
The npm package 'tyepescript-core' is a typosquatting malicious package impersonating 'typescript'. It contains a post-install script that decodes and downloads a Windows executable to the installer's temporary directory and executes it silently. Additionally, it sends a beacon with platform information to attacker-controlled infrastructure. This results in arbitrary code execution on the machine during 'npm install'.
AI Analysis
Technical Summary
The 'tyepescript-core' npm package (version 1.0.0) is a typosquatting malicious package designed to execute attacker-controlled code during installation. Its postinstall.js script XOR-decodes byte arrays to reconstruct a download URL and shell command, downloads an opaque Windows binary to %TEMP%\main.exe, and executes it detached with ignored stdio. On WSL or virtualized Linux hosts, it executes an additional XOR-decoded 'bridge' command to interact with the Windows host. The package also sends a JSON POST request containing the resolved platform label to an attacker-controlled IP address assembled at runtime to evade detection. This behavior enables arbitrary code execution on the installer's machine at install time and establishes a beacon to attacker infrastructure.
Potential Impact
This package enables arbitrary attacker-controlled code execution on the machine where 'npm install' is run, potentially compromising the system. The beaconing behavior also leaks platform information to the attacker. The malicious payload targets Windows environments and attempts to bridge to Windows hosts from WSL or virtualized Linux environments, increasing the attack surface.
Mitigation Recommendations
No official patch or remediation is currently documented. Users should avoid installing the 'tyepescript-core' package and verify package names carefully to prevent typosquatting attacks. Use trusted package sources and consider implementing package name allowlists or scanning tools to detect malicious packages. Monitor for suspicious post-install scripts in npm packages.
Malicious code in tyepescript-core (npm)
Description
The npm package 'tyepescript-core' is a typosquatting malicious package impersonating 'typescript'. It contains a post-install script that decodes and downloads a Windows executable to the installer's temporary directory and executes it silently. Additionally, it sends a beacon with platform information to attacker-controlled infrastructure. This results in arbitrary code execution on the machine during 'npm install'.
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-core' npm package (version 1.0.0) is a typosquatting malicious package designed to execute attacker-controlled code during installation. Its postinstall.js script XOR-decodes byte arrays to reconstruct a download URL and shell command, downloads an opaque Windows binary to %TEMP%\main.exe, and executes it detached with ignored stdio. On WSL or virtualized Linux hosts, it executes an additional XOR-decoded 'bridge' command to interact with the Windows host. The package also sends a JSON POST request containing the resolved platform label to an attacker-controlled IP address assembled at runtime to evade detection. This behavior enables arbitrary code execution on the installer's machine at install time and establishes a beacon to attacker infrastructure.
Potential Impact
This package enables arbitrary attacker-controlled code execution on the machine where 'npm install' is run, potentially compromising the system. The beaconing behavior also leaks platform information to the attacker. The malicious payload targets Windows environments and attempts to bridge to Windows hosts from WSL or virtualized Linux environments, increasing the attack surface.
Mitigation Recommendations
No official patch or remediation is currently documented. Users should avoid installing the 'tyepescript-core' package and verify package names carefully to prevent typosquatting attacks. Use trusted package sources and consider implementing package name allowlists or scanning tools to detect malicious packages. Monitor for suspicious post-install scripts in npm packages.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- MAL-2026-14144
- Osv Schema Version
- 1.7.4
- Aliases
- []
- Ecosystems
- ["npm"]
- Database Specific Severity
- null
- Cvss Version
- null
Threat ID: 6a85b4cbacd9273b49252edc
Added to database: 08/19/2026, 13:51:07 UTC
Last enriched: 08/19/2026, 14:56:45 UTC
Last updated: 08/19/2026, 15:58:44 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.