Malicious code in chain-chai-await (npm)
The npm package 'chain-chai-await' versions 1.3.5, 1.3.6, and 1.3.7 is a malicious dropper disguised as a pino-compatible logger. It executes arbitrary remote code by fetching JavaScript code from a public paste-like service and running it with full access to Node's require function. This allows complete compromise of the consumer's Node.js process.
AI Analysis
Technical Summary
The 'chain-chai-await' package mimics the legitimate pino logger's file structure and API but is unrelated to the real pino package. When used, it spawns a detached Node subprocess that fetches JavaScript code from https://jsonkeeper.com/b/K80JD and executes it via a new Function constructor, enabling arbitrary remote code execution with full require access. It retries the fetch up to five times and uses a base64-encoded backup URL and secret header key/value to support this behavior. This design indicates a deliberate dropper mechanism hidden behind a logging library facade.
Potential Impact
Consumers of the affected 'chain-chai-await' package versions are subject to arbitrary remote code execution within their Node.js environment. This can lead to full compromise of the application and potentially the host system, as the malicious code runs with the privileges of the Node process and has unrestricted access to require modules.
Mitigation Recommendations
No official patch or remediation is currently documented. Users should immediately remove and replace the 'chain-chai-await' package from their dependencies. Avoid using this package entirely and verify the authenticity of logging libraries. Monitor for any unexpected network requests to jsonkeeper.com or similar endpoints from Node.js processes. Patch status is not yet confirmed — check the vendor advisory for current remediation guidance.
Malicious code in chain-chai-await (npm)
Description
The npm package 'chain-chai-await' versions 1.3.5, 1.3.6, and 1.3.7 is a malicious dropper disguised as a pino-compatible logger. It executes arbitrary remote code by fetching JavaScript code from a public paste-like service and running it with full access to Node's require function. This allows complete compromise of the consumer's Node.js process.
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-chai-await' package mimics the legitimate pino logger's file structure and API but is unrelated to the real pino package. When used, it spawns a detached Node subprocess that fetches JavaScript code from https://jsonkeeper.com/b/K80JD and executes it via a new Function constructor, enabling arbitrary remote code execution with full require access. It retries the fetch up to five times and uses a base64-encoded backup URL and secret header key/value to support this behavior. This design indicates a deliberate dropper mechanism hidden behind a logging library facade.
Potential Impact
Consumers of the affected 'chain-chai-await' package versions are subject to arbitrary remote code execution within their Node.js environment. This can lead to full compromise of the application and potentially the host system, as the malicious code runs with the privileges of the Node process and has unrestricted access to require modules.
Mitigation Recommendations
No official patch or remediation is currently documented. Users should immediately remove and replace the 'chain-chai-await' package from their dependencies. Avoid using this package entirely and verify the authenticity of logging libraries. Monitor for any unexpected network requests to jsonkeeper.com or similar endpoints from Node.js processes. Patch status is not yet confirmed — check the vendor advisory for current remediation guidance.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- MAL-2026-10056
- Osv Schema Version
- 1.7.4
- Ecosystems
- ["npm"]
Threat ID: 6a50ba9768715ace435825d9
Added to database: 07/10/2026, 09:25:43 UTC
Last enriched: 09/12/2026, 19:31:35 UTC
Last updated: 09/13/2026, 05:45:54 UTC
Views: 88
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.
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.