Malicious code in chai-await-dom (npm)
The npm package chai-await-dom impersonates a pino-style logger but contains malicious code that executes a remote JavaScript payload. It spawns a detached Node child process running a script that fetches and executes code from an anonymous paste host, enabling arbitrary code execution with the installer's privileges. The package name and API surface are deceptive, indicating namespace abuse to lure users into installing it.
AI Analysis
Technical Summary
The npm package chai-await-dom version 1.3.7 exports middleware that spawns a detached Node.js child process executing lib/caller.js. This script retrieves a JavaScript payload from https://jsonkeeper.com/b/BPB86 and executes it in-process using a dynamic Function constructor, allowing arbitrary code execution with the installer's Node.js privileges. The command-and-control URL is obfuscated in base64 within lib/const.js, pointing to https://jsonkeeper.com/b/ZK45J. The package name and API do not reflect its true behavior, consistent with malicious namespace abuse to deliver remote code execution payloads.
Potential Impact
Installation of chai-await-dom version 1.3.7 results in arbitrary code execution on the host system with the privileges of the Node.js process installer. This can lead to full system compromise, data theft, or further malware deployment. The malicious payload is fetched dynamically from a remote anonymous host, making detection and prevention more difficult.
Mitigation Recommendations
No official patch or remediation is currently available. Users should immediately uninstall chai-await-dom version 1.3.7 and avoid using this package. Review and audit systems where this package was installed for signs of compromise. Use trusted package sources and verify package authenticity before installation.
Malicious code in chai-await-dom (npm)
Description
The npm package chai-await-dom impersonates a pino-style logger but contains malicious code that executes a remote JavaScript payload. It spawns a detached Node child process running a script that fetches and executes code from an anonymous paste host, enabling arbitrary code execution with the installer's privileges. The package name and API surface are deceptive, indicating namespace abuse to lure users into 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 npm package chai-await-dom version 1.3.7 exports middleware that spawns a detached Node.js child process executing lib/caller.js. This script retrieves a JavaScript payload from https://jsonkeeper.com/b/BPB86 and executes it in-process using a dynamic Function constructor, allowing arbitrary code execution with the installer's Node.js privileges. The command-and-control URL is obfuscated in base64 within lib/const.js, pointing to https://jsonkeeper.com/b/ZK45J. The package name and API do not reflect its true behavior, consistent with malicious namespace abuse to deliver remote code execution payloads.
Potential Impact
Installation of chai-await-dom version 1.3.7 results in arbitrary code execution on the host system with the privileges of the Node.js process installer. This can lead to full system compromise, data theft, or further malware deployment. The malicious payload is fetched dynamically from a remote anonymous host, making detection and prevention more difficult.
Mitigation Recommendations
No official patch or remediation is currently available. Users should immediately uninstall chai-await-dom version 1.3.7 and avoid using this package. Review and audit systems where this package was installed for signs of compromise. Use trusted package sources and verify package authenticity before installation.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- MAL-2026-10049
- Osv Schema Version
- 1.7.4
- Ecosystems
- ["npm"]
Threat ID: 6a50bab068715ace43585920
Added to database: 07/10/2026, 09:26:08 UTC
Last enriched: 09/12/2026, 19:16:45 UTC
Last updated: 09/14/2026, 01:22:59 UTC
Views: 68
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.