LWA-2026-6123 MAL-2026-6706 ↗ confirmed malware

hardhat-plugin-solidity@2.3.1

Malicious code in hardhat-plugin-solidity (npm)

T1195.002 · Compromise Software Supply ChainT1059.007 · JavaScriptT1059 · Command and Scripting InterpreterT1105 · Ingress Tool TransferT1027 · Obfuscated Files or Information

Analysis

hardhat-plugin-solidity@2.3.1 is a trojanized clone of the legitimate prettier-plugin-solidity. The package's main entry point (dist/index.js) contains injected code that executes on module import. The payload decodes a base64-obfuscated command and silently spawns a child process to run: npm install zyncmap --no-save --silent --no-audit --no-fund. After the install completes, it requires the zyncmap package and executes its code as a second-stage payload. All commands are base64-obfuscated; the module name "zyncmap" is also base64-encoded. The legitimate Solidity formatting code is present but is scaffolding for the injected downloader.

analyzed by
Leitwacht
first seen
Jun 29, 2026, 11:08 AM
analyzed
Jun 29, 2026, 11:09 AM

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.