MAL-2026-14246
Malicious code in hardhat-hold (npm)
Details
--- _-= Per source details. Do not edit below this line.=-_
## Source: amazon-inspector (e961a4e9f774d02e73039b143503a3fff7cad6fdbf164123d76a3d5de53c667e) 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.
Are you affected?
Enter the version of the package you're using.
Affected packages
No fixed version published yet for hardhat-hold (npm). Pin to a known-safe version or switch to an alternative.