MAL-2026-10012: Malicious code in mchain-sdk (npm)
The mchain-sdk npm package version 4.2.5 is a malicious typosquatting package that executes attacker-controlled JavaScript code both during installation and at runtime. It fetches and runs remote code from a mutable anonymous paste URL disguised as an API key, leading to full system compromise. The package mimics a legitimate library to evade detection. Removal alone may not fully remediate the compromise, and all secrets on affected systems should be rotated immediately.
AI Analysis
Technical Summary
The mchain-sdk package (version 4.2.5) is a malicious npm package that contains a postinstall hook executing a top-level async immediately-invoked function expression (IIFE) which base64-decodes a URL stored in its configuration. This URL points to an anonymous paste on jsonkeeper.com, from which it fetches attacker-controlled JavaScript code and executes it in a detached child node process. Additionally, the package's main module imports this malicious code immediately on load, triggering the payload even if npm install is run with --ignore-scripts. The package is a typosquatting repackage of the legitimate uhop/stream-chain library, designed to evade casual review by cloning its API surface and documentation. This results in full compromise of any system that installs or runs this package.
Potential Impact
Systems with mchain-sdk version 4.2.5 installed or running are fully compromised, as the package executes remote attacker-controlled code with the privileges of the user running the package. This can lead to unauthorized access, data exfiltration, and control over the affected system. Secrets and keys stored on the compromised system are at risk and must be considered exposed.
Mitigation Recommendations
There is no official patch or fix available for this malicious package. Immediate removal of the mchain-sdk package version 4.2.5 is required. However, removal alone may not eliminate all malicious artifacts or backdoors installed by the package. It is critical to rotate all secrets, keys, and credentials that were stored or used on the compromised system, using a separate, trusted device. Monitor for any suspicious activity and consider a full system rebuild if compromise is suspected.
MAL-2026-10012: Malicious code in mchain-sdk (npm)
Description
The mchain-sdk npm package version 4.2.5 is a malicious typosquatting package that executes attacker-controlled JavaScript code both during installation and at runtime. It fetches and runs remote code from a mutable anonymous paste URL disguised as an API key, leading to full system compromise. The package mimics a legitimate library to evade detection. Removal alone may not fully remediate the compromise, and all secrets on affected systems should be rotated immediately.
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 mchain-sdk package (version 4.2.5) is a malicious npm package that contains a postinstall hook executing a top-level async immediately-invoked function expression (IIFE) which base64-decodes a URL stored in its configuration. This URL points to an anonymous paste on jsonkeeper.com, from which it fetches attacker-controlled JavaScript code and executes it in a detached child node process. Additionally, the package's main module imports this malicious code immediately on load, triggering the payload even if npm install is run with --ignore-scripts. The package is a typosquatting repackage of the legitimate uhop/stream-chain library, designed to evade casual review by cloning its API surface and documentation. This results in full compromise of any system that installs or runs this package.
Potential Impact
Systems with mchain-sdk version 4.2.5 installed or running are fully compromised, as the package executes remote attacker-controlled code with the privileges of the user running the package. This can lead to unauthorized access, data exfiltration, and control over the affected system. Secrets and keys stored on the compromised system are at risk and must be considered exposed.
Mitigation Recommendations
There is no official patch or fix available for this malicious package. Immediate removal of the mchain-sdk package version 4.2.5 is required. However, removal alone may not eliminate all malicious artifacts or backdoors installed by the package. It is critical to rotate all secrets, keys, and credentials that were stored or used on the compromised system, using a separate, trusted device. Monitor for any suspicious activity and consider a full system rebuild if compromise is suspected.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- MAL-2026-10012
- Osv Schema Version
- 1.7.4
- Aliases
- ["GHSA-frcx-7v83-jfwx"]
- Ecosystems
- ["npm"]
- Database Specific Severity
- null
- Cvss Version
- null
Threat ID: 6a50ba9768715ace435825af
Added to database: 07/10/2026, 09:25:43 UTC
Last enriched: 07/10/2026, 10:10:20 UTC
Last updated: 07/10/2026, 10:10:20 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.