MAL-2026-10054: Malicious code in chai-smart (npm)
The npm package 'chai-smart' version 2.3.5 is a malicious package masquerading as a vulnerability management tool with a pino-like logger API. It spawns a detached Node.js child process that decodes a hardcoded URL and sends the full environment variables of the consumer process to an attacker-controlled endpoint. The package then executes arbitrary code returned from that endpoint within the consumer's Node process. This results in exfiltration of sensitive environment data and remote code execution.
AI Analysis
Technical Summary
The 'chai-smart' npm package (version 2.3.5) contains malicious code that, upon use, spawns a detached Node.js child process running a script that base64-decodes a hardcoded URL. This script posts the entire environment variables of the host process to an attacker-controlled endpoint and executes arbitrary code returned by that endpoint using a dynamic Function constructor. The package's API mimics the pino logger but serves as a cover for this background malicious activity, enabling bulk exfiltration of sensitive environment variables (such as cloud credentials, tokens, and database passwords) and arbitrary code execution within the consumer's Node.js environment.
Potential Impact
This malicious package enables attackers to exfiltrate all environment variables from the consumer process, potentially leaking sensitive credentials and secrets. Additionally, it allows arbitrary code execution in the consumer's Node.js process, which can lead to full system compromise or further malicious activities. The impact is severe due to the combination of credential theft and remote code execution.
Mitigation Recommendations
No official patch or remediation is currently available for this malicious package. Users should immediately remove version 2.3.5 of 'chai-smart' from their dependencies and avoid using this package. Verify your environment for any signs of compromise if this package was used. Consider replacing it with a trusted and verified logging package. Monitor for any suspicious activity related to environment variable exposure or unauthorized code execution.
MAL-2026-10054: Malicious code in chai-smart (npm)
Description
The npm package 'chai-smart' version 2.3.5 is a malicious package masquerading as a vulnerability management tool with a pino-like logger API. It spawns a detached Node.js child process that decodes a hardcoded URL and sends the full environment variables of the consumer process to an attacker-controlled endpoint. The package then executes arbitrary code returned from that endpoint within the consumer's Node process. This results in exfiltration of sensitive environment data and remote code execution.
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 'chai-smart' npm package (version 2.3.5) contains malicious code that, upon use, spawns a detached Node.js child process running a script that base64-decodes a hardcoded URL. This script posts the entire environment variables of the host process to an attacker-controlled endpoint and executes arbitrary code returned by that endpoint using a dynamic Function constructor. The package's API mimics the pino logger but serves as a cover for this background malicious activity, enabling bulk exfiltration of sensitive environment variables (such as cloud credentials, tokens, and database passwords) and arbitrary code execution within the consumer's Node.js environment.
Potential Impact
This malicious package enables attackers to exfiltrate all environment variables from the consumer process, potentially leaking sensitive credentials and secrets. Additionally, it allows arbitrary code execution in the consumer's Node.js process, which can lead to full system compromise or further malicious activities. The impact is severe due to the combination of credential theft and remote code execution.
Mitigation Recommendations
No official patch or remediation is currently available for this malicious package. Users should immediately remove version 2.3.5 of 'chai-smart' from their dependencies and avoid using this package. Verify your environment for any signs of compromise if this package was used. Consider replacing it with a trusted and verified logging package. Monitor for any suspicious activity related to environment variable exposure or unauthorized code execution.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- MAL-2026-10054
- Osv Schema Version
- 1.7.4
- Aliases
- []
- Ecosystems
- ["npm"]
- Database Specific Severity
- null
- Cvss Version
- null
Threat ID: 6a50bac068715ace4358774a
Added to database: 07/10/2026, 09:26:24 UTC
Last enriched: 07/10/2026, 10:21:38 UTC
Last updated: 07/10/2026, 10:21:38 UTC
Views: 3
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.