solidity-coverage-plus
Affected
- introduced
0(semver)
Fixed versions
None listed
Fix
No fixed version is listed.
Advisory
Also known as: GHSA-j3fh-3pm4-rw5h
Malicious package Its source marks this package as malicious: it is not a vulnerability in a legitimate one.
Malicious code in solidity-coverage-plus (npm)
---
_-= Per source details. Do not edit below this line.=-_
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.
Not rated by the source.
0 (semver)None listed
No fixed version is listed.
Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.
Check your own computer: guard packages check
Source: OpenSSF Malicious Packages · Apache-2.0