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 tyepescript-core (npm)

0
Critical
Published: 08/18/2026 (08/18/2026, 23:20:15 UTC)
Source: GCVE Database
Product: tyepescript-core

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

npmghsa
tyepescript-core
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:56:45 UTC

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.

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-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 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