Malicious code in chain-analyze (npm)
--- _-= Per source details. Do not edit below this line.=-_ ## Source: amazon-inspector (eb22a3b9c64598bc202456844105c3e3e7f7e7185abe335b2694d85deb1b6c9d) The published tarball's dist bundles (dist/sigchain-js.cjs.js, dist/sigchain-js.esm.js, dist/sigchain-js.umd.js) execute at module load: they read an encrypted blob from the sibling dependency 'chain-manager' (either imported as `desKey` or read from a file under node_modules/chain-manager via fs.readFileSync), DES-decrypt it with a hardcoded PASSWORD, then invoke child_process.spawn('node', [], { detached: true,... }) and pipe the decrypted script into the child's stdin — running attacker-controlled Node.js code on the installer's machine on any require()/import of the package. The dropper code is present only in dist/; the src/ tree contains no reference to 'chain-manager' or to spawn('node'), and package.json's declared main 'dist/chain-analyze.cjs.js' is not shipped — only the tampered dist/sigchain-js.* bundles are, so consumers resolve to the malicious build while source reviewers see a clean Theta blockchain SDK. package.json declares author 'Theta Labs' and describes itself as a JavaScript library for the Theta blockchain, impersonating the official @thetalabs/theta-js SDK, and pins 'chain-manager' ^1.0.9 which supplies the encrypted payload — a split-package design that hides the executable code from scanners inspecting only this tarball. ## Source: ghsa-malware (c36bbf5095bf780a61e33774d81ded0ffe9f5cfd2288bae3433a657fe7213c7b) Any computer that has this package installed or running should be considered fully compromised. All secrets and keys stored on that computer should be rotated immediately from a different computer. The package should be removed, but as full control of the computer may have been given to an outside entity, there is no guarantee that removing the package will remove all malicious software resulting from installing it.
AI Analysis
Technical Summary
The 'chain-analyze' npm package version 1.0.2 is a malicious package that executes attacker-controlled code upon import. Its distributed bundles (dist/sigchain-js.*) decrypt an encrypted payload from the 'chain-manager' dependency using a hardcoded password and spawn a detached Node.js process to run this payload. The source code and main entry point appear clean to evade detection, while the malicious code is hidden in the distributed bundles. This split-package design conceals the malicious payload from scanners inspecting only the 'chain-analyze' tarball. The package impersonates the official Theta Labs SDK, misleading users and reviewers. Any system with this package installed should be considered fully compromised.
Potential Impact
Systems that install or run 'chain-analyze' version 1.0.2 are fully compromised, as attacker-controlled code executes with the privileges of the importing process. This can lead to complete system takeover, exposure of secrets and keys, and persistent unauthorized access. The compromise is severe enough that all secrets and keys stored on the affected system should be rotated from a different, trusted machine.
Mitigation Recommendations
No official patch or fix is currently available. Immediate removal of the 'chain-analyze' package version 1.0.2 is strongly recommended. However, because the attacker may have established persistent control, removing the package alone may not fully remediate the compromise. All secrets and keys on the affected system should be rotated from a secure, uncompromised environment. Monitor for any suspicious activity and consider rebuilding the affected system if possible.
Malicious code in chain-analyze (npm)
Description
--- _-= Per source details. Do not edit below this line.=-_ ## Source: amazon-inspector (eb22a3b9c64598bc202456844105c3e3e7f7e7185abe335b2694d85deb1b6c9d) The published tarball's dist bundles (dist/sigchain-js.cjs.js, dist/sigchain-js.esm.js, dist/sigchain-js.umd.js) execute at module load: they read an encrypted blob from the sibling dependency 'chain-manager' (either imported as `desKey` or read from a file under node_modules/chain-manager via fs.readFileSync), DES-decrypt it with a hardcoded PASSWORD, then invoke child_process.spawn('node', [], { detached: true,... }) and pipe the decrypted script into the child's stdin — running attacker-controlled Node.js code on the installer's machine on any require()/import of the package. The dropper code is present only in dist/; the src/ tree contains no reference to 'chain-manager' or to spawn('node'), and package.json's declared main 'dist/chain-analyze.cjs.js' is not shipped — only the tampered dist/sigchain-js.* bundles are, so consumers resolve to the malicious build while source reviewers see a clean Theta blockchain SDK. package.json declares author 'Theta Labs' and describes itself as a JavaScript library for the Theta blockchain, impersonating the official @thetalabs/theta-js SDK, and pins 'chain-manager' ^1.0.9 which supplies the encrypted payload — a split-package design that hides the executable code from scanners inspecting only this tarball. ## Source: ghsa-malware (c36bbf5095bf780a61e33774d81ded0ffe9f5cfd2288bae3433a657fe7213c7b) Any computer that has this package installed or running should be considered fully compromised. All secrets and keys stored on that computer should be rotated immediately from a different computer. The package should be removed, but as full control of the computer may have been given to an outside entity, there is no guarantee that removing the package will remove all malicious software resulting from installing it.
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 'chain-analyze' npm package version 1.0.2 is a malicious package that executes attacker-controlled code upon import. Its distributed bundles (dist/sigchain-js.*) decrypt an encrypted payload from the 'chain-manager' dependency using a hardcoded password and spawn a detached Node.js process to run this payload. The source code and main entry point appear clean to evade detection, while the malicious code is hidden in the distributed bundles. This split-package design conceals the malicious payload from scanners inspecting only the 'chain-analyze' tarball. The package impersonates the official Theta Labs SDK, misleading users and reviewers. Any system with this package installed should be considered fully compromised.
Potential Impact
Systems that install or run 'chain-analyze' version 1.0.2 are fully compromised, as attacker-controlled code executes with the privileges of the importing process. This can lead to complete system takeover, exposure of secrets and keys, and persistent unauthorized access. The compromise is severe enough that all secrets and keys stored on the affected system should be rotated from a different, trusted machine.
Mitigation Recommendations
No official patch or fix is currently available. Immediate removal of the 'chain-analyze' package version 1.0.2 is strongly recommended. However, because the attacker may have established persistent control, removing the package alone may not fully remediate the compromise. All secrets and keys on the affected system should be rotated from a secure, uncompromised environment. Monitor for any suspicious activity and consider rebuilding the affected system if possible.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- MAL-2026-11133
- Osv Schema Version
- 1.7.4
- Aliases
- ["GHSA-vmj5-cm6w-jrgj"]
- Ecosystems
- ["npm"]
- Database Specific Severity
- null
- Cvss Version
- null
Threat ID: 6a6ae50b9c2644c7f897f8e8
Added to database: 07/30/2026, 05:45:47 UTC
Last enriched: 07/30/2026, 05:47:49 UTC
Last updated: 07/30/2026, 05:48:42 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.