chai-as-doc
This document describes the management of vulnerabilities for the project and all modules within the organization.
This report shows the evidence for chai-as-doc@2.3.5, 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 contains an explicit detached remote-code loader activated by normal middleware use. Absence of an install hook does not mitigate runtime arbitrary code execution.
Decision evidence
public snapshot- `index.js` spawns detached `lib/initializeCaller.js` when middleware is invoked.
- `lib/initializeCaller.js` POSTs to a Base64-obscured external endpoint.
- The response body is executed with `new Function("require", response.data)`.
- The child process is detached and unrefed, hiding it from the caller lifecycle.
- Package contents and README imitate unrelated Pino/Chai functionality.
- `package.json` has no preinstall, install, or postinstall lifecycle hook.
- The child shadows `process.env`, so the POST body is embedded values rather than host environment variables.
Source & flagged code
7 flagged · loading sourceSource spawns a local helper that also contains network and dynamic execution context; review data flow before blocking.
index.jsView on unpkg · L3Findings
Affected versions and remediation
This report applies to chai-as-doc@2.3.5.
The versions list below shows the verdict for each recorded version.
- Avoid installing chai-as-doc@2.3.5. 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.