MAL-2026-6497: Malicious code in chai-as-synced (npm)
The npm package 'chai-as-synced' is a malicious package impersonating the legitimate 'chai-as-promised'. When required, it spawns a detached Node.js child process that fetches and executes obfuscated JavaScript code from a remote URL. This code runs with full access to Node's require function, enabling potentially harmful actions. The package's declared dependencies and keywords do not align with its advertised purpose, indicating deceptive intent.
AI Analysis
Technical Summary
The 'chai-as-synced' package (version 6.0.3) is a malicious npm package designed to impersonate the legitimate 'chai-as-promised' package. Upon being required, it executes a detached, stdio-ignored Node.js child process running a script that decodes a base64-obfuscated URL and a secret key stored in a fake local environment object. It performs an HTTPS GET request to this URL, retrieves a 'cookie' field containing JavaScript code, and executes it using the Function constructor with require injected. This fetched code runs within the installer's Node process with full require access, allowing it to load and execute arbitrary modules. The use of obfuscation, detached child processes, and hidden stdio streams indicates a covert loader mechanism. The package's declared dependencies (sqlite3, request, axios) and keywords do not match its advertised functionality, further evidencing malicious intent.
Potential Impact
The malicious code executes within the Node.js process of the user installing or requiring the package, with full access to the require function. This enables arbitrary code execution, potentially allowing attackers to run any code, access sensitive data, or compromise the host system. The covert nature of the loader and obfuscation techniques make detection difficult. There are no known exploits in the wild reported yet.
Mitigation Recommendations
No official patch or remediation is currently available for this package. Users should avoid installing or using 'chai-as-synced' version 6.0.3. Verify package authenticity before installation, prefer official and well-maintained packages, and remove any instances of this malicious package from projects. Monitor dependency sources carefully to prevent supply chain compromise.
MAL-2026-6497: Malicious code in chai-as-synced (npm)
Description
The npm package 'chai-as-synced' is a malicious package impersonating the legitimate 'chai-as-promised'. When required, it spawns a detached Node.js child process that fetches and executes obfuscated JavaScript code from a remote URL. This code runs with full access to Node's require function, enabling potentially harmful actions. The package's declared dependencies and keywords do not align with its advertised purpose, indicating deceptive intent.
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-as-synced' package (version 6.0.3) is a malicious npm package designed to impersonate the legitimate 'chai-as-promised' package. Upon being required, it executes a detached, stdio-ignored Node.js child process running a script that decodes a base64-obfuscated URL and a secret key stored in a fake local environment object. It performs an HTTPS GET request to this URL, retrieves a 'cookie' field containing JavaScript code, and executes it using the Function constructor with require injected. This fetched code runs within the installer's Node process with full require access, allowing it to load and execute arbitrary modules. The use of obfuscation, detached child processes, and hidden stdio streams indicates a covert loader mechanism. The package's declared dependencies (sqlite3, request, axios) and keywords do not match its advertised functionality, further evidencing malicious intent.
Potential Impact
The malicious code executes within the Node.js process of the user installing or requiring the package, with full access to the require function. This enables arbitrary code execution, potentially allowing attackers to run any code, access sensitive data, or compromise the host system. The covert nature of the loader and obfuscation techniques make detection difficult. There are no known exploits in the wild reported yet.
Mitigation Recommendations
No official patch or remediation is currently available for this package. Users should avoid installing or using 'chai-as-synced' version 6.0.3. Verify package authenticity before installation, prefer official and well-maintained packages, and remove any instances of this malicious package from projects. Monitor dependency sources carefully to prevent supply chain compromise.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- MAL-2026-6497
- Osv Schema Version
- 1.7.4
- Aliases
- []
- Ecosystems
- ["npm"]
- Database Specific Severity
- null
- Cvss Version
- null
Threat ID: 6a3ef7c927e9c7971900024d
Added to database: 06/26/2026, 22:06:01 UTC
Last enriched: 06/26/2026, 22:36:16 UTC
Last updated: 06/26/2026, 22:36:16 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.