Malicious npm package truffle-kit v3.3.2 poses as pino logger, drops remote code execution payload
Severity: critical · Patch status: no-fix-needed · Since 2026-11-20
The npm package truffle-kit version 3.3.2 was identified as malware impersonating a pino-style logging middleware. Its main entry spawns a detached, hidden child process (node lib/caller.js with stdio ignored and unref), which base64-decodes a hardcoded URL (iphub-encrypted.vercel.app), POSTs to it via axios, and executes the response body via new Function.constructor('require', ...) with the real require — granting the remote endpoint arbitrary code execution with full Node privileges on the host. Inconsistent metadata (bugs URL at jsonspack.com, unrelated description) suggests typosquat/impersonation cover. Anyone installing or depending on truffle-kit 3.3.2 is affected. No patched version exists; the package should be removed entirely.
What to do
- Remove truffle-kit 3.3.2 from all projects and lockfiles immediately
- Audit hosts where it was installed for compromise; rotate credentials, tokens, and secrets accessible to Node processes
- Check CI/CD logs and dependency trees for truffle-kit or unexpected node lib/caller.js executions
- Block the C2 endpoint iphub-encrypted.vercel.app and review egress for connections to it
- Replace with the legitimate pino logger if logging middleware is needed
Sources
All live incidents on Threat Watch