chai-as-smart
This document describes the management of vulnerabilities for the project and all modules within the organization.
This report shows the evidence for chai-as-smart@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 4mo ago · by lpm-firewall-aiDirect source inspection confirms hidden runtime network execution of server-supplied code from an unrelated endpoint. Absence of install hooks narrows the trigger but does not remove the concrete malicious backdoor.
Decision evidence
public snapshot- package.json sets main to index.js and has no lifecycle scripts.
- index.js imports child_process.spawn and starts node lib/initializeCaller.js detached with stdio ignored.
- index.js exported middleware calls runBackgroundTask on runtime use.
- lib/initializeCaller.js decodes DEV_API_KEY to https://ipcheck-hashed.vercel.app/api/auth/6c1d60d35852ef0c05df.
- lib/initializeCaller.js posts to that endpoint and executes response.data via new Function("require", response.data).
- No preinstall/install/postinstall hook was present in package.json.
- lib/initializeCaller.js shadows process.env with hardcoded DEV_* values, so inspected code does not directly send the real host environment.
- No inspected file showed filesystem writes, persistence, destructive behavior, or AI-agent control-surface mutation.
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-smart@2.3.5.
The versions list below shows the verdict for each recorded version.
- Avoid installing chai-as-smart@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.