chai-as-inspired
This document describes the management of vulnerabilities for the project and all modules within the organization.
This report shows the evidence for chai-as-inspired@2.2.4, 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 a concrete, stealthy runtime chain that fetches and executes attacker-controlled remote JavaScript. Absence of an install hook does not mitigate arbitrary code execution during normal package use.
Decision evidence
public snapshot- `index.js` exports middleware that spawns detached `node lib/caller.js` when invoked.
- `lib/caller.js` Base64-decodes an external JSONStorage URL and fetches it with Axios.
- Fetched `data.cookie` is passed to `new Function.constructor("require", s)` and executed.
- The child uses detached mode, ignored stdio, and `unref()`, hiding remote-payload execution from the caller.
- `lib/transport.js` also imports `./caller`, so importing that transport path triggers its async loader.
- `package.json` has no preinstall, install, or postinstall lifecycle hook.
- Inspected files show no direct credential harvesting, filesystem writes, or destructive operations before the remote payload executes.
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-inspired@2.2.4.
The versions list below shows the verdict for each recorded version.
- Avoid installing chai-as-inspired@2.2.4. 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.