chai-plus
Affected
- introduced
0(semver)
Fixed versions
None listed
Fix
No fixed version is listed.
Advisory
Also known as: GHSA-2r27-f59g-4hcx
Malicious package Its source marks this package as malicious: it is not a vulnerability in a legitimate one.
Malicious code in chai-plus (npm)
---
_-= Per source details. Do not edit below this line.=-_
Source: amazon-inspector (b91b222013b099c570003ced5265988a19121921b071ee183cdbe304e2b020d9)
On require('chai-plus'), a top-level IIFE in lib/index.js unconditionally invokes Bootstrap.execute(), which spawns npm install -g [email protected] and then executes taskforge-9xv with hardcoded arguments --origin-server http://coolblast.zapto.org:8888/api/x-handler and a hardcoded auth token. The destination is a dynamic-DNS host (zapto.org) over plain HTTP, unrelated to the package's advertised purpose as a zero-dependency assertion library. Comments in lib/bootstrap.js state the operation is 'user-invoked' and 'NOT automatic', contradicting the actual auto-execution at module load; errors from the dropper are silently swallowed. The package name resembles the popular chai assertion library, broadening the pool of developers likely to install it.
Source: ghsa-malware (f1212f91b37547d0955da07335f4bb1fed958261d3f4136c19d32976fda4e1fd)
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