OpenSSF/OSV advisory MAL-2026-7008 confirms this npm version as malicious. chai-as-const@1.4.5 is a disguised dropper. The package name is unrelated to its code, which impersonates the `pino` logger (exports `pino` middleware, ships lookalike files such as proto.js, redaction.js, transport.js, multistream.js). On first invocation of the exported middleware, index.js spawns a detached background task in lib/initializeCaller.js that (1) base64-decodes a hardcoded endpoint...
A single source file combines environment access, network access, and code or shell execution; review context before blocking.
lib/initializer.jsView on unpkg · L2Source decodes a Base64-obscured HTTP endpoint at runtime.
lib/initializer.jsView on unpkg · L2Package source references a known benign dynamic code generation pattern.
lib/initializer.jsView on unpkg · L12A single source file combines environment access, network access, and code or shell execution; review context before blocking.
lib/initializer.jsView on unpkg · L2Source decodes a Base64-obscured HTTP endpoint at runtime.
lib/initializer.jsView on unpkg · L2Package source references a known benign dynamic code generation pattern.
lib/initializer.jsView on unpkg · L12