Skip to main content

Malicious code in typscript-core (npm)

0
High
Published: 08/18/2026 (08/18/2026, 23:21:45 UTC)
Source: GCVE Database
Product: typscript-core

Description

The typscript-core npm package is a typosquatting malicious package impersonating the legitimate 'typescript' package. Its postinstall script decodes and reconstructs obfuscated commands to download and execute a binary named main.exe on Windows systems. It also sends platform information to a hardcoded IP address. This behavior indicates an attempt to stealthily install and run potentially harmful code during package installation.

Affected software

npmghsa
typscript-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:54:21 UTC

Technical Analysis

The typscript-core package (version 1.0.0) is a typosquatting malicious npm package that mimics the legitimate 'typescript' package name. Its postinstall.js script reconstructs a GitHub download URL and shell commands by XOR-decoding byte arrays with the key 'stf2026'. It downloads a binary to the %TEMP%\main.exe path and executes it detached with windowsHide:true on Windows, or via a PowerShell bridge on Windows Subsystem for Linux (WSL). Additionally, it sends platform information via an HTTP POST request to a hardcoded IP address (http://193.70.34.101:20099/vote), with the IP address obfuscated as a four-element string array to evade static detection. The URLs, commands, and destination IP are all obfuscated and reconstructed at runtime to avoid detection.

Potential Impact

Installation of this package results in the execution of a downloaded binary on the victim's machine, which could lead to unauthorized code execution, potential system compromise, and data exfiltration through the POST request to the attacker-controlled IP. The obfuscation and runtime reconstruction of commands increase the difficulty of detection and analysis.

Mitigation Recommendations

Users should avoid installing the typscript-core package, as it is a malicious typosquat of the legitimate 'typescript' package. Since no patch or official fix exists, remediation involves removing this package if installed and verifying the integrity of dependencies. Use trusted package names and verify package authenticity before installation. Monitor for any unexpected network connections to the indicated IP address. Patch status is not yet confirmed — check vendor advisories or npm security notices for updates.

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-14157
Osv Schema Version
1.7.4
Ecosystems
["npm"]

Threat ID: 6a85b4cbacd9273b49252eae

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

Last enriched: 08/19/2026, 14:54:21 UTC

Last updated: 10/02/2026, 13:53:02 UTC

Views: 24

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