Malicious code in postcss-initial-provider (npm)
The postcss-initial-provider npm package version 3.0.4 contains malicious code that executes arbitrary attacker-controlled payloads on any host that installs it. The package includes obfuscated code that queries Ethereum public RPC endpoints for transactions from a hardcoded wallet address, extracts IP addresses from the transaction data, fetches an XOR-encrypted payload from those IPs, decrypts it, and executes it both in-process and as a detached Node.js process. This behavior is unrelated to the package's legitimate functionality and represents a supply-chain compromise.
AI Analysis
Technical Summary
The postcss-initial-provider npm package version 3.0.4 includes a malicious code block in its index.js file that is obfuscated using unicode escapes to evade detection. Upon requiring the package, it queries multiple public Ethereum RPC endpoints for the latest transaction of a specific hardcoded wallet address. It parses the transaction's destination address bytes as two IPv4 addresses, then fetches an XOR-encrypted payload from these IPs over HTTP. The payload is decrypted and executed both via eval() within the process and by spawning a detached Node.js process with the payload as code. This allows arbitrary code execution controlled by the attacker, with the command-and-control (C2) infrastructure dynamically controlled via on-chain Ethereum transactions. The malicious behavior is unrelated to the package's intended PostCSS plugin functionality, indicating a supply-chain compromise.
Potential Impact
Any system that installs postcss-initial-provider version 3.0.4 is at risk of arbitrary code execution by an attacker. This can lead to full compromise of the host environment, unauthorized access, data theft, or further malware deployment. The attacker can dynamically change the C2 servers by updating the Ethereum blockchain transactions, making detection and mitigation more difficult. This supply-chain attack affects all users of this specific package version.
Mitigation Recommendations
No official patch or remediation is currently documented for this malicious package version. Users should immediately remove and avoid installing postcss-initial-provider version 3.0.4. Audit and verify dependencies in your supply chain to exclude this compromised package. Monitor for any signs of compromise if this package was previously installed. Check vendor advisories or trusted security sources for updates or official fixes.
Malicious code in postcss-initial-provider (npm)
Description
The postcss-initial-provider npm package version 3.0.4 contains malicious code that executes arbitrary attacker-controlled payloads on any host that installs it. The package includes obfuscated code that queries Ethereum public RPC endpoints for transactions from a hardcoded wallet address, extracts IP addresses from the transaction data, fetches an XOR-encrypted payload from those IPs, decrypts it, and executes it both in-process and as a detached Node.js process. This behavior is unrelated to the package's legitimate functionality and represents a supply-chain compromise.
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
The postcss-initial-provider npm package version 3.0.4 includes a malicious code block in its index.js file that is obfuscated using unicode escapes to evade detection. Upon requiring the package, it queries multiple public Ethereum RPC endpoints for the latest transaction of a specific hardcoded wallet address. It parses the transaction's destination address bytes as two IPv4 addresses, then fetches an XOR-encrypted payload from these IPs over HTTP. The payload is decrypted and executed both via eval() within the process and by spawning a detached Node.js process with the payload as code. This allows arbitrary code execution controlled by the attacker, with the command-and-control (C2) infrastructure dynamically controlled via on-chain Ethereum transactions. The malicious behavior is unrelated to the package's intended PostCSS plugin functionality, indicating a supply-chain compromise.
Potential Impact
Any system that installs postcss-initial-provider version 3.0.4 is at risk of arbitrary code execution by an attacker. This can lead to full compromise of the host environment, unauthorized access, data theft, or further malware deployment. The attacker can dynamically change the C2 servers by updating the Ethereum blockchain transactions, making detection and mitigation more difficult. This supply-chain attack affects all users of this specific package version.
Mitigation Recommendations
No official patch or remediation is currently documented for this malicious package version. Users should immediately remove and avoid installing postcss-initial-provider version 3.0.4. Audit and verify dependencies in your supply chain to exclude this compromised package. Monitor for any signs of compromise if this package was previously installed. Check vendor advisories or trusted security sources for updates or official fixes.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- MAL-2026-13696
- Osv Schema Version
- 1.7.4
- Aliases
- []
- Ecosystems
- ["npm"]
- Database Specific Severity
- null
- Cvss Version
- null
Threat ID: 6a79f0d3bf8831d539f6105a
Added to database: 08/10/2026, 15:40:03 UTC
Last enriched: 08/10/2026, 15:56:32 UTC
Last updated: 08/10/2026, 15:56:32 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.