chai-as-reformed
This document describes the management of vulnerabilities for the project and all modules within the organization.
This report shows the evidence for chai-as-reformed@1.2.0, 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 2mo ago · by lpm-firewall-aiSource inspection confirms a concealed remote-response-to-Function execution chain, not merely suspicious primitives. Absence of lifecycle hooks limits the trigger but does not remove the concrete runtime RCE behavior.
Decision evidence
public snapshot- package.json exposes index.js with no lifecycle hook.
- index.js spawns detached lib/caller.js whenever exported middleware is invoked.
- lib/caller.js Base64-decodes a hard-coded api.jsonstorage.net URL.
- lib/caller.js fetches response data.cookie and executes it via Function constructor.
- Remote code receives require, enabling arbitrary local module access.
- No preinstall, install, or postinstall script is declared.
- The remote loader is runtime-triggered rather than install-time.
Source & flagged code
3 flagged · loading sourceSource passes code obtained from a remote response into a dynamic execution sink.
lib/caller.jsView on unpkg · L2Source 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.
Findings
Affected versions and remediation
This report applies to chai-as-reformed@1.2.0.
The versions list below shows the verdict for each recorded version.
- Avoid installing chai-as-reformed@1.2.0. 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.