chai-as-format
This document describes the management of vulnerabilities for the project and all modules within the organization.
This report shows the evidence for chai-as-format@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 runtime entrypoint loads a concealed payload with command-execution and outbound-request primitives that are not package-aligned. Lack of an install hook does not mitigate import-time execution.
Decision evidence
public snapshot- index.js imports ./lib/config on every package load.
- lib/config.js is a 4 MB heavily obfuscated executable payload.
- Decoded source imports fs, child_process execSync/spawn, axios, and crypto.
- Payload contains an axios request assembling message, level, data, and timestamp fields.
- Payload contains dynamic Function construction and process manipulation.
- package.json has no preinstall, install, or postinstall hook.
- index.js exposes only a no-op middleware wrapper.
Source & flagged code
4 flagged · loading sourceSource downloads or fetches remote code and executes it.
lib/config.jsView on unpkg · L1A package entrypoint or install-time lifecycle script reaches a source file with blocking dangerous behavior.
lib/config.jsView on unpkg · L1Findings
Affected versions and remediation
This report applies to chai-as-format@2.3.5.
The versions list below shows the verdict for each recorded version.
- Avoid installing chai-as-format@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: .
Source advisory published: .
Think this verdict is wrong? Dispute it on GitHub or read how reports are produced.