chai-logger
This report shows the evidence for chai-logger@3.0.2, 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.
OpenSSF/OSV Malicious Advisory
imported 1mo ago · by OpenSSF/OSVOpenSSF/OSV advisory MAL-2026-16380 confirms this npm version as malicious.
Independent LPM AI assessment
SuspiciousIndependent AI assessment: suspicious. LPM AI assessed this version as suspicious; the assessments disagree.
The package exposes concealed import-time process and network-capable behavior unrelated to its middleware export. No install lifecycle hook or confirmed malicious sink was found, so blocking is not justified.
Independent scan evidence
public snapshot- The declared main entrypoint imports lib/query.js during package import.
- lib/query.js is a 4 MB single-line obfuscated payload that loads OS, filesystem, and child-process capabilities at top level.
- The obfuscated payload contains a fallback execSync invocation and also loads axios and crypto, preventing a safe determination of its command and network behavior.
- package.json has no preinstall, install, or postinstall lifecycle hook.
- The exported middleware only calls next() after imports complete.
Source & flagged code
7 flagged · loading sourceSource downloads or fetches remote code and executes it.
lib/query.jsView on unpkg · L1A package entrypoint or install-time lifecycle script reaches a source file with blocking dangerous behavior.
lib/query.jsView on unpkg · L1A bounded semantic-analysis stage reached its safety limit; remaining detectors completed, but this package requires AI review.
lib/query.jsView on unpkgSource fingerprint signature matches a known malicious package signature; route for source-aware review.
lib/tools.jsView on unpkgThe declared main entrypoint imports lib/query.js during package import.
package.jsonView on unpkg · L5Findings
Affected versions and remediation
This report applies to chai-logger@3.0.2.
The versions list below shows the verdict for each recorded version.
- Avoid installing chai-logger@3.0.2. 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.