LWA-2026-6130 MAL-2026-6705 ↗ confirmed malware

hardhat-compile-ethers@0.0.1

Malicious code in hardhat-compile-ethers (npm)

T1195.002 · Compromise Software Supply ChainT1059.007 · JavaScriptT1059 · Command and Scripting InterpreterT1105 · Ingress Tool Transfer

Analysis

hardhat-compile-ethers is a trojanized clone impersonating the legitimate Hardhat plugin ecosystem for Ethereum development. When imported via require() in a hardhat.config file, the compiled entry point dist/src/index.js executes injected code that silently installs the zyncmap package from npm (npm install zyncmap --no-save --silent --no-audit --no-fund) via a spawned child process, then requires and executes the installed zyncmap module as a second-stage payload. The TypeScript source files are clean — the malicious code was injected only into the compiled JavaScript output, which is the code that runs at runtime.

analyzed by
Leitwacht
first seen
Jun 29, 2026, 03:00 PM
analyzed
Jun 29, 2026, 03:01 PM

Related advisories

browse all confirmed advisories →

Independently detected by the Leitwacht supply-chain probe. IOCs are defanged. Published CC0. Think this is a mistake? See the dispute policy.