Malicious code in postcss-theme-provider (npm)
The postcss-theme-provider npm package version 1.0.2 contains malicious code that executes upon requiring the package. This code queries public Ethereum RPC endpoints for a transaction from a hardcoded attacker wallet, extracts IP addresses from the transaction data, fetches XOR-encrypted JavaScript payloads from these IPs, decrypts and evaluates them, and then spawns a detached Node.js process to run the payload. The malicious code uses Unicode escapes to obfuscate critical strings such as module names and method calls. The attacker can rotate the command-and-control server by posting new Ethereum transactions, enabling dynamic payload updates.
AI Analysis
Technical Summary
The postcss-theme-provider package version 1.0.2 includes a top-level asynchronous immediately-invoked function expression (IIFE) that runs on package import. It contacts public Ethereum RPC endpoints to retrieve the latest transaction from a specific attacker-controlled wallet. From this transaction, it decodes two IPv4 addresses embedded in the 'to' field bytes. It then fetches XOR-encrypted JavaScript payloads from these IP addresses over HTTPS, decrypts the payloads, and executes them using eval. Additionally, it spawns a detached Node.js child process to run the decrypted payload. The code is obfuscated using Unicode escape sequences to hide critical strings such as 'require', 'child_process.spawn', and the attacker wallet address. This Ethereum-based dead-drop mechanism allows the attacker to dynamically update the payload host by posting new transactions, making the malicious payload dynamically controlled and rotated.
Potential Impact
This malicious package executes arbitrary JavaScript code fetched from attacker-controlled servers every time it is imported, enabling remote code execution on the host system. The attacker can dynamically update the payload by changing the Ethereum transaction data, potentially leading to persistent and stealthy compromise of systems using this package. The use of eval and spawning detached Node.js processes increases the risk of executing arbitrary commands and code, which can lead to full system compromise or further malicious activities.
Mitigation Recommendations
No official patch or remediation is currently documented. Users should immediately stop using postcss-theme-provider version 1.0.2 and remove it from their projects. Verify dependencies for this package and replace it with a trusted alternative. Monitor for any unexpected child processes or network connections to suspicious IP addresses. Since the malicious code is embedded in the package itself, remediation requires removing the compromised package version. Patch status is not yet confirmed — check the vendor advisory or trusted security sources for updates.
Malicious code in postcss-theme-provider (npm)
Description
The postcss-theme-provider npm package version 1.0.2 contains malicious code that executes upon requiring the package. This code queries public Ethereum RPC endpoints for a transaction from a hardcoded attacker wallet, extracts IP addresses from the transaction data, fetches XOR-encrypted JavaScript payloads from these IPs, decrypts and evaluates them, and then spawns a detached Node.js process to run the payload. The malicious code uses Unicode escapes to obfuscate critical strings such as module names and method calls. The attacker can rotate the command-and-control server by posting new Ethereum transactions, enabling dynamic payload updates.
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-theme-provider package version 1.0.2 includes a top-level asynchronous immediately-invoked function expression (IIFE) that runs on package import. It contacts public Ethereum RPC endpoints to retrieve the latest transaction from a specific attacker-controlled wallet. From this transaction, it decodes two IPv4 addresses embedded in the 'to' field bytes. It then fetches XOR-encrypted JavaScript payloads from these IP addresses over HTTPS, decrypts the payloads, and executes them using eval. Additionally, it spawns a detached Node.js child process to run the decrypted payload. The code is obfuscated using Unicode escape sequences to hide critical strings such as 'require', 'child_process.spawn', and the attacker wallet address. This Ethereum-based dead-drop mechanism allows the attacker to dynamically update the payload host by posting new transactions, making the malicious payload dynamically controlled and rotated.
Potential Impact
This malicious package executes arbitrary JavaScript code fetched from attacker-controlled servers every time it is imported, enabling remote code execution on the host system. The attacker can dynamically update the payload by changing the Ethereum transaction data, potentially leading to persistent and stealthy compromise of systems using this package. The use of eval and spawning detached Node.js processes increases the risk of executing arbitrary commands and code, which can lead to full system compromise or further malicious activities.
Mitigation Recommendations
No official patch or remediation is currently documented. Users should immediately stop using postcss-theme-provider version 1.0.2 and remove it from their projects. Verify dependencies for this package and replace it with a trusted alternative. Monitor for any unexpected child processes or network connections to suspicious IP addresses. Since the malicious code is embedded in the package itself, remediation requires removing the compromised package version. Patch status is not yet confirmed — check the vendor advisory or trusted security sources for updates.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- MAL-2026-13518
- Osv Schema Version
- 1.7.4
- Aliases
- []
- Ecosystems
- ["npm"]
- Database Specific Severity
- null
- Cvss Version
- null
Threat ID: 6a75f712bf8831d53984fc27
Added to database: 08/07/2026, 15:17:38 UTC
Last enriched: 08/07/2026, 15:49:16 UTC
Last updated: 08/07/2026, 18:45:34 UTC
Views: 6
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.