MAL-2026-17659 Malicious code in hardhat-deep (npm)
Malicious package
Published
MAL-2026-17659 is a malicious package: hardhat-deep (npm). Every version was published to cause harm.
Task:
1. Search this repository's dependency manifests and lockfiles for the package, including transitive dependencies.
2. If it is present, remove it, regenerate the lockfile with the project's package manager, and replace whatever it was used for.
3. List any CI runners, developer machines or containers that installed it, so their secrets can be rotated.
4. If the package is not used anywhere, say so and change nothing.
Reference: https://insights.sbomify.com/MAL-2026-17659/ (Markdown: https://insights.sbomify.com/MAL-2026-17659/index.md)
- Package
- hardhat-deep
- Registry
- npm
What is MAL-2026-17659?
MAL-2026-17659 is a malicious package in hardhat-deep, published on 8 Oct 2026.
Official description
The npm package [email protected] is a trojanised shell. Its tarball copies the pino logger source tree (README, SECURITY.md, index.d.ts, lib/proto.js, lib/transport.js, lib/worker.js, lib/levels.js, lib/multistream.js, etc.) verbatim, while the package name and manifest description target the Hardhat ecosystem. The only novel file is lib/config.js, a single-line 4,499,968-byte obfuscator.io bundle with a 26,234-entry rotated string array, two decoder functions, hex-encoded strings and control-flow flattening. The package's top-level index.js is modified from pino's original to unconditionally
require('./lib/config'), so any consumer that requires or imports hardhat-deep executes this opaque payload inside the installer's Node process. The exported middleware is a no-op cover with no logger functionality, so running the obfuscated blob is the only effect of installing or loading the package. The author identity (Robert King <[email protected]>, jsonspack.com) is unrelated to either Hardhat or pinojs.What should I do about MAL-2026-17659?
Remove the package from your dependencies and lockfiles, then rotate any secrets on machines where it was installed.