OpenSSF/OSV advisory MAL-2026-14200 confirms this npm version as malicious. The package advertises itself as a logger (README and type definitions copied wholesale from pinojs/pino) but its exported middleware is a no-op that simply calls next(). index.js unconditionally executes require('./lib/config') at module top level, and lib/config.js is a ~4MB obfuscator.io-style blob (string-array rotate loader, ~24k entries, hex-escaped identifiers) whose only purpose is to run on import...
Source
OpenSSF Malicious Packages via OSV
Summary
Malicious code in chai-as-gateway (npm)
Details
The package advertises itself as a logger (README and type definitions copied wholesale from pinojs/pino) but its exported middleware is a no-op that simply calls next(). index.js unconditionally executes require('./lib/config') at module top level, and lib/config.js is a ~4MB obfuscator.io-style blob (string-array rotate loader, ~24k entries, hex-escaped identifiers) whose only purpose is to run on import. The obfuscated blob contains references to child_process exec/spawn, axios (declared as a runtime dependency in package.json), fs directory traversal via withFileTypes, the path fragment.aws, and the full base64 alphabet — the standard shape of an installer-secret harvester that walks the home directory for AWS credentials and exfiltrates over HTTP. The package name resembles unrelated popular packages, the description string ('vulnerabilities management document') does not match the pino-cloned documentation, and author metadata is a generic hello@jsonspack.com address. Requiring this package auto-executes attacker-controlled code on the installer.
Decision reason
OpenSSF Malicious Packages via OSV confirms chai-as-gateway@7.1.5 as malicious (MAL-2026-14200): Malicious code in chai-as-gateway (npm)