chai-as-stringify
This document describes the management of vulnerabilities for the project and all modules within the organization.
This report shows the evidence for chai-as-stringify@7.0.2, 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-aiThis is unrelated to the declared middleware behavior and executes without user invocation beyond importing the package. Obfuscation, host collection, outbound transmission, and command execution establish malicious behavior.
Decision evidence
public snapshot- package.json loads index.js with no lifecycle hook.
- index.js imports ./lib/config at module load.
- lib/config.js is a 4 MB obfuscated import-time payload.
- lib/config.js loads fs, os, child_process execSync/spawn, axios, and crypto.
- lib/config.js builds host, OS, and username data then sends it with axios.
- lib/config.js contains multiple execSync paths, including a dependency-install fallback.
- index.js exports a no-op Express-style middleware.
- No npm preinstall, install, or postinstall hook is declared.
Source & flagged code
4 flagged · loading sourceSource downloads or fetches remote code and executes it.
lib/config.jsView on unpkg · L1A package entrypoint or install-time lifecycle script reaches a source file with blocking dangerous behavior.
Findings
Affected versions and remediation
This report applies to chai-as-stringify@7.0.2.
The versions list below shows the verdict for each recorded version.
- Avoid installing chai-as-stringify@7.0.2. 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: .
Think this verdict is wrong? Dispute it on GitHub or read how reports are produced.