Advisory

MAL-2026-14200

Also known as: None

Malicious package Its source marks this package as malicious: it is not a vulnerability in a legitimate one.

Summary

Malicious code in chai-as-gateway (npm)

Details

---
_-= Per source details. Do not edit below this line.=-_

Source: amazon-inspector (f90afdde9240783f1f869b875b7967490cf579e1bae0986861498f8c98c0d973)
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 [email protected] address. Requiring this package auto-executes attacker-controlled code on the installer.

Severity

Not rated by the source.

Dates

Published
2026-08-19 01:59 UTC
Modified
2026-08-19 02:45 UTC

Affected packages and fixes

chai-as-gateway

npm · All systems

Affected

  • Versions: 7.1.5

Fixed versions

None listed

Fix

No fixed version is listed.

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: OpenSSF Malicious Packages · Apache-2.0

Sources & licences