Malicious code in chalk-util (npm)
The npm package [email protected] is a typosquatting malicious package that executes harmful code during installation. Its postinstall script decodes and downloads a binary from an attacker-controlled URL, saving it as main.exe on Windows or executing it via PowerShell on Linux. It also sends a beacon with platform information to a hardcoded IP address over unencrypted HTTP. The package exports an empty object, with all malicious activity triggered by the postinstall lifecycle hook.
AI Analysis
Technical Summary
[email protected] is a typosquatting package mimicking the legitimate chalk package. Its index.js exports an empty object, but its postinstall.js script executes automatically upon installation. This script XOR-decodes an obfuscated URL pointing to a GitHub asset, downloads the binary to %TEMP%\main.exe on Windows or executes it via a PowerShell bridge on Linux (detected via /proc/version), and runs it detached with a hidden window. Additionally, it reconstructs and contacts the IP 193.70.34.101 over HTTP, sending a JSON payload with platform details as an install beacon. The fetched binary is attacker-controlled and unverified, posing a risk of arbitrary code execution. Multiple byte-array constants are XOR-decoded at runtime to conceal URLs and shell commands.
Potential Impact
Installation of [email protected] results in automatic execution of attacker-controlled code, potentially leading to arbitrary code execution on the affected system. The package also leaks platform information to a remote server via an unencrypted HTTP POST request. The malicious binary is downloaded and executed without verification, increasing risk of compromise. There is no indication of active exploitation in the wild at this time.
Mitigation Recommendations
Avoid installing the chalk-util package, as it is a malicious typosquat. Remove any installations of [email protected] from your environment. Use the legitimate chalk package instead. Since no official patch or fix exists for chalk-util (it is a malicious package, not a legitimate product), remediation involves removing the package and scanning affected systems for the downloaded binary and any persistence mechanisms. Monitor for network connections to 193.70.34.101 and block if possible. Patch status is not applicable; this is a malicious package rather than a vulnerability in legitimate software.
Malicious code in chalk-util (npm)
Description
The npm package [email protected] is a typosquatting malicious package that executes harmful code during installation. Its postinstall script decodes and downloads a binary from an attacker-controlled URL, saving it as main.exe on Windows or executing it via PowerShell on Linux. It also sends a beacon with platform information to a hardcoded IP address over unencrypted HTTP. The package exports an empty object, with all malicious activity triggered by the postinstall lifecycle hook.
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
[email protected] is a typosquatting package mimicking the legitimate chalk package. Its index.js exports an empty object, but its postinstall.js script executes automatically upon installation. This script XOR-decodes an obfuscated URL pointing to a GitHub asset, downloads the binary to %TEMP%\main.exe on Windows or executes it via a PowerShell bridge on Linux (detected via /proc/version), and runs it detached with a hidden window. Additionally, it reconstructs and contacts the IP 193.70.34.101 over HTTP, sending a JSON payload with platform details as an install beacon. The fetched binary is attacker-controlled and unverified, posing a risk of arbitrary code execution. Multiple byte-array constants are XOR-decoded at runtime to conceal URLs and shell commands.
Potential Impact
Installation of [email protected] results in automatic execution of attacker-controlled code, potentially leading to arbitrary code execution on the affected system. The package also leaks platform information to a remote server via an unencrypted HTTP POST request. The malicious binary is downloaded and executed without verification, increasing risk of compromise. There is no indication of active exploitation in the wild at this time.
Mitigation Recommendations
Avoid installing the chalk-util package, as it is a malicious typosquat. Remove any installations of [email protected] from your environment. Use the legitimate chalk package instead. Since no official patch or fix exists for chalk-util (it is a malicious package, not a legitimate product), remediation involves removing the package and scanning affected systems for the downloaded binary and any persistence mechanisms. Monitor for network connections to 193.70.34.101 and block if possible. Patch status is not applicable; this is a malicious package rather than a vulnerability in legitimate software.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- MAL-2026-14168
- Osv Schema Version
- 1.7.4
- Aliases
- []
- Ecosystems
- ["npm"]
- Database Specific Severity
- null
- Cvss Version
- null
Threat ID: 6a85b4caacd9273b49252bad
Added to database: 08/19/2026, 13:51:06 UTC
Last enriched: 08/19/2026, 14:48:52 UTC
Last updated: 08/19/2026, 14:48:52 UTC
Views: 2
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.