truffle-kit@3.3.2
OpenSSF/OSV malicious advisory
published · by OpenSSF/OSVOpenSSF/OSV advisory MAL-2026-20293 confirms this npm version as malicious.
Advisory
MAL-2026-20293
Source
OpenSSF Malicious Packages via OSV
Summary
Malicious code in truffle-kit (npm)
Details
Package presents itself as a pino-style logging middleware (keywords 'fast, logger, stream, json', exports as `pino`), but the advertised middleware is a dropper. The main entry index.js exports a middleware factory that spawns a detached `node lib/caller.js` child with `stdio: 'ignore'` and `child.unref()`, hiding the child from the parent. lib/caller.js base64-decodes a hardcoded URL (https://iphub-encrypted.vercel.app/api/auth/f1f097d93c318c92f0c5), POSTs to it with axios, and passes the response body to `new Function.constructor('require', s)` then invokes it with the real `require`, granting the remote endpoint arbitrary code execution with full Node privileges on the installer's host. Package metadata (bugs URL at jsonspack.com, description text unrelated to logging) is inconsistent with the advertised pino-logger purpose, consistent with impersonation/typosquat cover for the dropper.
References