chai-as-promised-plus
Extends Chai with comprehensive promise assertions and testing utilities.
This report shows the evidence for chai-as-promised-plus@6.1.3, the only known version.
This package appears in our research on the fake chai plugin campaign, with how it works, the full package list and what to do if you installed it.
AI Security Review
scanned 3mo ago · by lpm-firewall-aiThe package's real export path introduces obfuscated system reconnaissance and remote-capable execution primitives that are not required for Chai assertions. This is malicious import-time behavior, not a noisy static label.
Decision evidence
public snapshot- `lib/chai-as-promised-plus.js` replaces its export with `./config/config`.
- `lib/config/config.js` is a 3.5 MB obfuscated import-time module.
- `lib/config/config.js` imports `os`, `fs`, `path`, and `child_process` (`execSync`, `spawn`).
- The module collects host, OS, and username data in `Utils.gsi`.
- The module dynamically loads `axios` and `crypto`.
- Obfuscated code invokes the `Function` constructor.
- `package.json` has no `preinstall`, `install`, or `postinstall` lifecycle hook.
- The visible assertion implementation itself is conventional Chai promise support.
Source & flagged code
1 flagged · loading sourcePackage contains source files above the static scanner size ceiling.
lib/config/config.jsView on unpkgFindings
Affected versions and remediation
This report applies to chai-as-promised-plus@6.1.3.
The versions list below shows the verdict for each recorded version.
- Avoid installing chai-as-promised-plus@6.1.3. Remove it from direct dependencies and check your lockfile for transitive copies.
- Choose an independently verified alternative or release. This report does not establish that other versions are safe.
- If this version ran, investigate the affected machine and build environment. Rotate credentials it could access and rebuild from a trusted environment.
Evidence last updated: .
Source advisory published: .
Think this verdict is wrong? Dispute it on GitHub or read how reports are produced.