OpenSSF/OSV advisory MAL-2026-14246 confirms this npm version as malicious. The package's main entry index.js unconditionally requires./lib/config, which is a ~4MB obfuscator.io-style blob (string array of ~23,981 entries with a rotating decoder and hex-escaped literals)...
Source
OpenSSF Malicious Packages via OSV
Summary
Malicious code in hardhat-hold (npm)
Details
The package's main entry index.js unconditionally requires./lib/config, which is a ~4MB obfuscator.io-style blob (string array of ~23,981 entries with a rotating decoder and hex-escaped literals). The readable identifiers inside that payload include execSync (child_process) and axios (HTTP client) — the local-execution and outbound-network primitives used by droppers and exfiltration stagers — and the payload runs at import time via a top-level IIFE. The wrapper index.js copies the pino logger API surface but never uses the config export; its only effect is to force the obfuscated blob to load on require(). The package name hardhat-hold is a one-token variant of the Ethereum tooling package hardhat, while the README impersonates the pino logger (including shields.io badges that still point at pino's repository), and package.json carries an unrelated boilerplate description about vulnerability management. The combination of name/README/description mismatch with an obfuscated import-time payload carrying shell-exec + HTTP primitives is the canonical typosquat-dropper shape.
Decision reason
OpenSSF Malicious Packages via OSV confirms hardhat-hold@2.0.1 as malicious (MAL-2026-14246): Malicious code in hardhat-hold (npm)