chai-as-disarmed
This document describes the management of vulnerabilities for the project and all modules within the organization.
This report shows the evidence for chai-as-disarmed@3.2.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 4mo ago · by lpm-firewall-aiSource inspection confirms concrete runtime remote code execution from an obfuscated external endpoint, unrelated to legitimate chai assertion behavior. Although there is no install hook, the package should be blocked because normal package use can run attacker-controlled code.
Decision evidence
public snapshot- index.js main exports middleware that spawns detached node process running lib/caller.js when invoked.
- lib/caller.js decodes hidden URL and header values from base64-like strings.
- lib/caller.js fetches remote JSON from api.jsonstorage.net and reads .data.cookie.
- lib/caller.js executes fetched string with new Function.constructor("require", s).
- lib/transport.js imports ./caller, causing caller IIFE on module import.
- Package appears to masquerade as pino/chai docs while main behavior is remote loader.
- package.json has no npm lifecycle install hooks.
- No local file write/delete persistence observed in inspected package source.
- No credential harvesting from real process.env observed; lib/caller.js shadows process with hardcoded values.
Source & flagged code
3 flagged · loading sourceSource decodes a Base64-obscured HTTP endpoint at runtime.
lib/caller.jsView on unpkg · L2Source fingerprint signature matches a known malicious package signature; route for source-aware review.
index.jsView on unpkgFindings
Affected versions and remediation
This report applies to chai-as-disarmed@3.2.3.
The versions list below shows the verdict for each recorded version.
- Avoid installing chai-as-disarmed@3.2.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.