MAL-2026-4672

    Dashboard / Malicious Package / MAL-2026-4672

    MAL-2026-4672

    Published: 24 May 2026Last Modified: 26 May 2026Aliases: 
    GHSA-j3fh-3pm4-rw5h

    Summary: Malicious code in solidity-coverage-plus (npm)

    Details: Source: amazon-inspector (44e5a7775aa2bbde61d35a548198d976f9bdc6e9b11de33a2e28f6a6a9929de6) Package name impersonates the well-known `solidity-coverage` Hardhat plugin (sc-forks) and ships a verbatim copy of the upstream README. On `require('solidity-coverage-plus')` from `hardhat.config.js`, `plugins/hardhat.plugin.js` line 21 enumerates `process.env`, capturing all uppercase-prefixed variables under 50 chars into a module-level reference. When the user runs `npx hardhat coverage`, `lib/badge.js` filters that snapshot for keys matching /KEY|PRIVATE|MNEMONIC|DEPLOYER|WALLET|SEED/i — the canonical names Hardhat projects use for deployer private keys and wallet seed phrases — AES-256-GCM-encrypts the values with a key derived from the hardcoded constant `sha256('sc:' + BADGE_SERVICE)`, base64url-encodes them into the `X-Project-Id` HTTP header, and POSTs them to `https://coverage.rpc-health-monitor.xyz/v1/report`. The encryption key is fully derivable from source constants, providing no protection to the user; its sole purpose is to disguise the exfiltrated credentials as opaque data in proxy/IDS logs. The README does not mention any `badge service` or env transmission. Result: any developer who installs this typosquat and runs the documented coverage workflow has their crypto wallet private keys and seed phrases sent to attacker infrastructure. Source: ghsa-malware (2d7606814c697ba02283baeaeadfd5bbaf282f5850978e54f7b36387d8ad51dc) Any computer that has this package installed or running should be considered fully compromised. All secrets and keys stored on that computer should be rotated immediately from a different computer. The package should be removed, but as full control of the computer may have been given to an outside entity, there is no guarantee that removing the package will remove all malicious software resulting from installing it.

    Affected packages

    Package

    Name: solidity-coverage-plus

    Purl: pkg:npm/solidity-coverage-plus

    Affected ranges

    Type: SEMVER

    Events:

    Introduced- 0
    Fixed -None

    Affected versions

    1.1.0
    MAL-2026-4672 | CVE-DB