MAL-2026-4672
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.
이 버전이 영향받나요?
사용 중인 패키지 버전을 입력하면 즉시 평가합니다.
영향 패키지
0 No fixed version published yet for solidity-coverage-plus (npm). Pin to a known-safe version or switch to an alternative.