chai-as-deployer
Affected
- introduced
0(semver)
Fixed versions
None listed
Fix
No fixed version is listed.
Advisory
Also known as: GHSA-6q3r-v92v-89p4, GHSA-7qqp-m577-rp2w, SNYK-JS-CHAIASDEPLOYER-18609744
Malicious package Its source marks this package as malicious: it is not a vulnerability in a legitimate one.
Malicious code in chai-as-deployer (npm)
---
_-= Per source details. Do not edit below this line.=-_
Source: amazon-inspector (c4da130c2818dc609c23c93511a70a6c207cf19cdf9fdd937e369e07b5f1e492)
The package is published as chai-as-deployer but its tarball contains verbatim pino README/docs/type-definitions while the advertised chai plugin is a no-op Express middleware (return (_req,_res,next) => { next(); }). index.js unconditionally executes require('./lib/config') at module top level, loading a ~3.5MB single-line obfuscator.io-style bundle (rotated string array, decoder functions, hex-escaped identifiers) that has no relationship to pino or the advertised functionality. The obfuscated body contains require, exec, spawn, and axios tokens, indicating the decoded code drives child-process execution and outbound HTTP requests. Any consumer that imports chai-as-deployer triggers this payload with no further action. Author metadata is generic (Harrison Thorn <[email protected]>, bugs URL harrisonthorn.com) and the package description is unrelated boilerplate. The combination of cover-story impersonation, no legitimate functionality, top-level require of a heavily obfuscated bundle, and shell+network primitives inside that bundle is the canonical shape of an import-time stealer/loader.
Source: ghsa-malware (cb63584d83487c7d7ce3b9d031d79502412fd048c2260a05b0a8ef98aa23ef59)
Any computer that has this package installed or running should be considered fully compromised. All secrets and keys stored on that computer should be rotated immediately from a different computer. The package should be removed, but as full control of the computer may have been given to an outside entity, there is no guarantee that removing the package will remove all malicious software resulting from installing it.
Not rated by the source.
0 (semver)None listed
No fixed version is listed.
Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.
Check your own computer: guard packages check
Source: OpenSSF Malicious Packages · Apache-2.0