Skip to main content

Malicious code in chalk-core (npm)

0
High
Published: 08/18/2026 (08/18/2026, 23:58:41 UTC)
Source: GCVE Database
Product: chalk-core

Description

The chalk-core npm package version 1.0.0 is a typosquatting malicious package that does not provide any chalk functionality. Instead, its postinstall script executes automatically upon installation, decoding a hidden URL to download and run an unsigned executable on Windows systems. It also performs platform tracking by sending data to a remote server and uses advanced techniques to execute payloads in Windows Subsystem for Linux (WSL) environments. This package poses a significant risk due to its silent execution of potentially harmful code without verification.

Affected software

npmghsa
chalk-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:49:21 UTC

Technical Analysis

[email protected] is a malicious npm package that impersonates the popular chalk package but exports no functionality. Its postinstall.js script runs automatically on npm install and XOR-decodes a hidden URL to download an executable payload to the Windows temporary directory, which it then launches detached without any signature or hash verification. On WSL, it detects virtualization and executes a bridge command to fetch and run the same payload on the Windows host. Additionally, it sends platform information to a remote server at IP 193.70.34.101 on port 20099, acting as an install tracker or kill-switch beacon. The package uses multiple XOR-encoded constants to obfuscate URLs and commands, complicating casual inspection.

Potential Impact

The malicious package can execute arbitrary code on the victim's machine without user consent or verification, potentially leading to system compromise. It can run unsigned executables, evade detection by running detached and hidden, and communicate with a remote server to report installation and possibly receive commands. The WSL-specific behavior extends the attack surface to Linux environments running on Windows. This can lead to unauthorized access, data theft, or further malware deployment.

Mitigation Recommendations

Users should avoid installing [email protected] and verify package names carefully to prevent typosquatting attacks. Since no official patch or fix is available, removal of this package and scanning for the downloaded payload (%TEMP%\main.exe) is recommended. Use trusted sources and package registries, and consider employing tools that detect typosquatting or malicious packages. Monitor for suspicious postinstall scripts in npm packages. Patch status is not yet confirmed — check the vendor advisory or npm security advisories 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-14165
Osv Schema Version
1.7.4
Ecosystems
["npm"]

Threat ID: 6a85b4caacd9273b49252bb1

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

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

Last updated: 10/02/2026, 13:52:51 UTC

Views: 29

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