Malicious code in post-css-transfer (npm)
The npm package post-css-transfer version 0.0.1 is a typosquatting malicious package that appends obfuscated code to the legitimate postcss module. This code fetches command-and-control IP addresses by reading Ethereum blockchain transactions, retrieves an XOR-encrypted payload from those hosts, decrypts it, and executes it via a detached Node.js child process. The malicious code is heavily obfuscated to evade detection.
AI Analysis
Technical Summary
post-css-transfer is a typosquat of the legitimate postcss npm package. Its main entry file (lib/postcss.js) contains an appended obfuscated Immediately Invoked Function Expression (IIFE) that, upon require or import, reads transactions from a specific Ethereum address using public RPC endpoints and the eth.blockscout.com API. It decodes two IPv4 addresses from transaction recipient bytes, fetches an XOR-encrypted payload over HTTP from those IPs delivered in a custom header, decrypts the payload, and executes it using eval() and a detached 'node -e' child process. The code uses Unicode escapes and whitespace padding to hide network, execution, and identifier primitives, making casual review difficult.
Potential Impact
The malicious code enables remote command execution on systems that install and run the post-css-transfer package version 0.0.1. This can lead to arbitrary code execution, potential system compromise, and unauthorized network communications with attacker-controlled infrastructure. The obfuscation and use of blockchain-based command-and-control mechanisms complicate detection and analysis.
Mitigation Recommendations
Users should avoid installing or using the post-css-transfer package version 0.0.1. Since this is a typosquat package, ensure that dependencies reference the legitimate 'postcss' package. There is no official patch or fix available for post-css-transfer, as it is a malicious package rather than a legitimate software component. Remove any instances of post-css-transfer from projects and dependency trees immediately.
Malicious code in post-css-transfer (npm)
Description
The npm package post-css-transfer version 0.0.1 is a typosquatting malicious package that appends obfuscated code to the legitimate postcss module. This code fetches command-and-control IP addresses by reading Ethereum blockchain transactions, retrieves an XOR-encrypted payload from those hosts, decrypts it, and executes it via a detached Node.js child process. The malicious code is heavily obfuscated to evade detection.
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
post-css-transfer is a typosquat of the legitimate postcss npm package. Its main entry file (lib/postcss.js) contains an appended obfuscated Immediately Invoked Function Expression (IIFE) that, upon require or import, reads transactions from a specific Ethereum address using public RPC endpoints and the eth.blockscout.com API. It decodes two IPv4 addresses from transaction recipient bytes, fetches an XOR-encrypted payload over HTTP from those IPs delivered in a custom header, decrypts the payload, and executes it using eval() and a detached 'node -e' child process. The code uses Unicode escapes and whitespace padding to hide network, execution, and identifier primitives, making casual review difficult.
Potential Impact
The malicious code enables remote command execution on systems that install and run the post-css-transfer package version 0.0.1. This can lead to arbitrary code execution, potential system compromise, and unauthorized network communications with attacker-controlled infrastructure. The obfuscation and use of blockchain-based command-and-control mechanisms complicate detection and analysis.
Mitigation Recommendations
Users should avoid installing or using the post-css-transfer package version 0.0.1. Since this is a typosquat package, ensure that dependencies reference the legitimate 'postcss' package. There is no official patch or fix available for post-css-transfer, as it is a malicious package rather than a legitimate software component. Remove any instances of post-css-transfer from projects and dependency trees immediately.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- MAL-2026-12417
- Osv Schema Version
- 1.7.4
- Ecosystems
- ["npm"]
Threat ID: 6a735746bf8831d539159f88
Added to database: 08/05/2026, 15:31:18 UTC
Last enriched: 08/05/2026, 17:28:17 UTC
Last updated: 09/15/2026, 02:20:44 UTC
Views: 18
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.