Malicious code in @zahlen/checkout-react (npm)
The npm package @zahlen/checkout-react version 0.1.1 contains malicious code that executes on every import or require. It uses unicode-escape obfuscation to hide imports of Node.js built-in modules such as child_process, http, https, zlib, and url. The malicious code queries the Ethereum blockchain to resolve a command-and-control (C2) host, then polls this host for commands which it executes on the affected system using child_process.spawn. This allows a remote attacker to execute arbitrary commands on any developer machine or CI runner that installs or imports this package. The legitimate React checkout code is used as a cover for the malicious prelude. The C2 infrastructure uses on-chain resolution to enable operator infrastructure rotation without republishing the package.
AI Analysis
Technical Summary
The @zahlen/checkout-react npm package version 0.1.1 contains a top-level malicious code block that runs on every import or require. This block uses unicode-escape sequences to obfuscate the import of Node.js built-in modules including child_process, http, https, zlib, and url. It resolves a C2 server by querying Ethereum blockchain state via a specific contract address and a public ETH RPC fallback list. The package then polls endpoints on the resolved C2 host and executes received commands using child_process.spawn, enabling arbitrary command execution on the host system. The malicious code also stores references to require and module globally to facilitate loading additional Node.js modules dynamically. The visible React checkout functionality is a decoy, while the on-chain C2 resolution mechanism allows the attacker to rotate infrastructure without republishing the package.
Potential Impact
This malicious package allows remote attackers to execute arbitrary commands on any system that installs or imports @zahlen/checkout-react version 0.1.1. This includes developer machines and continuous integration environments, potentially leading to full system compromise, data theft, or further malware deployment. The use of blockchain-based C2 resolution provides resilience and stealth to the attacker’s infrastructure.
Mitigation Recommendations
No official patch or remediation is currently documented for this package version. Users should immediately remove and avoid installing or importing @zahlen/checkout-react version 0.1.1. Audit dependency trees for this package and replace it with trusted alternatives. Monitor for any signs of compromise on affected systems. Patch status is not yet confirmed — check the vendor advisory or npm security advisories for updates. Given the malicious nature, removal and avoidance is the primary mitigation.
Malicious code in @zahlen/checkout-react (npm)
Description
The npm package @zahlen/checkout-react version 0.1.1 contains malicious code that executes on every import or require. It uses unicode-escape obfuscation to hide imports of Node.js built-in modules such as child_process, http, https, zlib, and url. The malicious code queries the Ethereum blockchain to resolve a command-and-control (C2) host, then polls this host for commands which it executes on the affected system using child_process.spawn. This allows a remote attacker to execute arbitrary commands on any developer machine or CI runner that installs or imports this package. The legitimate React checkout code is used as a cover for the malicious prelude. The C2 infrastructure uses on-chain resolution to enable operator infrastructure rotation without republishing the package.
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 @zahlen/checkout-react npm package version 0.1.1 contains a top-level malicious code block that runs on every import or require. This block uses unicode-escape sequences to obfuscate the import of Node.js built-in modules including child_process, http, https, zlib, and url. It resolves a C2 server by querying Ethereum blockchain state via a specific contract address and a public ETH RPC fallback list. The package then polls endpoints on the resolved C2 host and executes received commands using child_process.spawn, enabling arbitrary command execution on the host system. The malicious code also stores references to require and module globally to facilitate loading additional Node.js modules dynamically. The visible React checkout functionality is a decoy, while the on-chain C2 resolution mechanism allows the attacker to rotate infrastructure without republishing the package.
Potential Impact
This malicious package allows remote attackers to execute arbitrary commands on any system that installs or imports @zahlen/checkout-react version 0.1.1. This includes developer machines and continuous integration environments, potentially leading to full system compromise, data theft, or further malware deployment. The use of blockchain-based C2 resolution provides resilience and stealth to the attacker’s infrastructure.
Mitigation Recommendations
No official patch or remediation is currently documented for this package version. Users should immediately remove and avoid installing or importing @zahlen/checkout-react version 0.1.1. Audit dependency trees for this package and replace it with trusted alternatives. Monitor for any signs of compromise on affected systems. Patch status is not yet confirmed — check the vendor advisory or npm security advisories for updates. Given the malicious nature, removal and avoidance is the primary mitigation.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- MAL-2026-12333
- Osv Schema Version
- 1.7.4
- Aliases
- []
- Ecosystems
- ["npm"]
- Database Specific Severity
- null
- Cvss Version
- null
Threat ID: 6a73574fbf8831d53915a58e
Added to database: 08/05/2026, 15:31:27 UTC
Last enriched: 08/05/2026, 17:47:04 UTC
Last updated: 08/05/2026, 17:47:04 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.