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

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

Description

The npm package 'typescirpt-core' is a malicious typosquatting package targeting 'typescript'. Upon installation, it executes a postinstall script that sends a beacon to a hardcoded IP address and downloads a Windows executable to the temporary directory, running it stealthily. It also contains logic to detect Windows Subsystem for Linux (WSL) and pivots execution back to Windows using a PowerShell launcher. The malicious payload and commands are XOR-encoded to evade static detection.

Affected software

npmghsa
typescirpt-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:55:49 UTC

Technical Analysis

The 'typescirpt-core' package is a malicious npm package designed to impersonate the legitimate 'typescript' package via typosquatting. Its postinstall.js script automatically runs on npm install, sending a JSON beacon to a hardcoded IP endpoint (http://193.70.34.101:20099/vote). It decodes an embedded integer array using XOR with key 'stf2026' to reconstruct a URL from which it downloads a Windows executable to %TEMP%/main.exe and executes it detached and hidden. Additionally, it detects if running under Windows Subsystem for Linux (WSL) and uses XOR-decoded PowerShell scripts to pivot execution back to the Windows host environment. The use of XOR encoding for URLs and commands is intended to evade static analysis and detection.

Potential Impact

Installation of this package results in silent execution of a remote Windows executable, potentially leading to system compromise. The package also exfiltrates information via a beacon to a remote IP. The WSL detection and pivoting capability allow the malware to bypass Linux environment isolation and execute on the Windows host. This behavior can lead to unauthorized code execution, data exfiltration, and persistence on affected systems.

Mitigation Recommendations

Avoid installing the 'typescirpt-core' package, as it is a malicious typosquat of 'typescript'. There is no official patch or fix since this is a malicious package rather than a vulnerability in legitimate software. Users should verify package names carefully before installation and rely on official package sources. Remove any installations of 'typescirpt-core' immediately and scan affected systems for the downloaded payload and related artifacts.

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-14149
Osv Schema Version
1.7.4
Aliases
[]
Ecosystems
["npm"]
Database Specific Severity
null
Cvss Version
null

Threat ID: 6a85b4cbacd9273b49252ed2

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

Last enriched: 08/19/2026, 14:55:49 UTC

Last updated: 08/19/2026, 18:16:09 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