Malicious code in sigchain-js (npm)
The npm package sigchain-js versions 1.0.0 and 1.0.1 contain malicious code in their published distribution bundles. These bundles include top-level code that decrypts an encrypted payload from companion packages and executes it via a spawned detached Node.js child process. This behavior enables arbitrary code execution on the host machine when the package is imported or required. The malicious payload is split across cooperating packages, including a dependency named thedata and a transitively included package tchain-api, which mimics an official SDK. Additionally, the package pins a non-existent axios version, redirecting installs to a squatted package. This threat does not have a known patch or fix at this time.
AI Analysis
Technical Summary
The sigchain-js npm package versions 1.0.0 and 1.0.1 contain malicious code embedded only in the published distribution bundles (dist/sigchain-js.cjs.js, dist/sigchain-js.esm.js, dist/sigchain-js.umd.js). This code reads an encrypted payload from companion packages (thedata and tchain-api), decrypts it using a hardcoded DES password "hydra", and executes the decrypted code by spawning a detached Node.js child process and piping the payload into its stdin. The malicious code is absent from the source tree and only present in the distributed bundles, indicating post-source tampering or supply chain compromise. The package also pins [email protected], a version that does not exist in the official axios release history, causing the installer to fetch a malicious squatted package. This results in arbitrary code execution on any system that installs or imports sigchain-js, controlled by whoever maintains the companion packages.
Potential Impact
Importing or requiring sigchain-js versions 1.0.0 or 1.0.1 leads to arbitrary code execution on the host system. The executed code is controlled by the attacker who publishes updates to the companion packages thedata and tchain-api. This can lead to full compromise of the host environment where the package is installed or used. The malicious axios dependency further increases risk by redirecting to a malicious package, potentially affecting other dependencies or code.
Mitigation Recommendations
No official patch or remediation is currently available for sigchain-js versions 1.0.0 and 1.0.1. Users should immediately avoid installing or importing this package and remove any existing installations. Verify dependencies carefully and avoid packages with suspicious or squatted dependencies such as [email protected]. Monitor vendor advisories or trusted sources for updates or official fixes. Consider using package integrity verification tools and supply chain security measures to detect tampered packages.
Malicious code in sigchain-js (npm)
Description
The npm package sigchain-js versions 1.0.0 and 1.0.1 contain malicious code in their published distribution bundles. These bundles include top-level code that decrypts an encrypted payload from companion packages and executes it via a spawned detached Node.js child process. This behavior enables arbitrary code execution on the host machine when the package is imported or required. The malicious payload is split across cooperating packages, including a dependency named thedata and a transitively included package tchain-api, which mimics an official SDK. Additionally, the package pins a non-existent axios version, redirecting installs to a squatted package. This threat does not have a known patch or fix at this time.
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 sigchain-js npm package versions 1.0.0 and 1.0.1 contain malicious code embedded only in the published distribution bundles (dist/sigchain-js.cjs.js, dist/sigchain-js.esm.js, dist/sigchain-js.umd.js). This code reads an encrypted payload from companion packages (thedata and tchain-api), decrypts it using a hardcoded DES password "hydra", and executes the decrypted code by spawning a detached Node.js child process and piping the payload into its stdin. The malicious code is absent from the source tree and only present in the distributed bundles, indicating post-source tampering or supply chain compromise. The package also pins [email protected], a version that does not exist in the official axios release history, causing the installer to fetch a malicious squatted package. This results in arbitrary code execution on any system that installs or imports sigchain-js, controlled by whoever maintains the companion packages.
Potential Impact
Importing or requiring sigchain-js versions 1.0.0 or 1.0.1 leads to arbitrary code execution on the host system. The executed code is controlled by the attacker who publishes updates to the companion packages thedata and tchain-api. This can lead to full compromise of the host environment where the package is installed or used. The malicious axios dependency further increases risk by redirecting to a malicious package, potentially affecting other dependencies or code.
Mitigation Recommendations
No official patch or remediation is currently available for sigchain-js versions 1.0.0 and 1.0.1. Users should immediately avoid installing or importing this package and remove any existing installations. Verify dependencies carefully and avoid packages with suspicious or squatted dependencies such as [email protected]. Monitor vendor advisories or trusted sources for updates or official fixes. Consider using package integrity verification tools and supply chain security measures to detect tampered packages.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- MAL-2026-11146
- Osv Schema Version
- 1.7.4
- Aliases
- []
- Ecosystems
- ["npm"]
- Database Specific Severity
- null
- Cvss Version
- null
Threat ID: 6a73851ebf8831d5394ef785
Added to database: 08/05/2026, 18:46:54 UTC
Last enriched: 08/05/2026, 23:18:35 UTC
Last updated: 08/05/2026, 23:18:35 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.