MAL-2026-4672
Vulnerability from ossf_malicious_packages
Published
2026-05-24 02:14
Modified
2026-05-26 13:23
Summary
Malicious code in solidity-coverage-plus (npm)
Details

-= 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.

CWE
  • CWE-506 - The product contains code that appears to be malicious in nature.
  • CWE-506 - The product contains code that appears to be malicious in nature.
  • CWE-506 - The product contains code that appears to be malicious in nature.
Credits
Amazon Inspector actran@amazon.com

{
  "affected": [
    {
      "database_specific": {
        "cwes": [
          {
            "cweId": "CWE-506",
            "description": "The product contains code that appears to be malicious in nature.",
            "name": "Embedded Malicious Code"
          },
          {
            "cweId": "CWE-506",
            "description": "The product contains code that appears to be malicious in nature.",
            "name": "Embedded Malicious Code"
          },
          {
            "cweId": "CWE-506",
            "description": "The product contains code that appears to be malicious in nature.",
            "name": "Embedded Malicious Code"
          }
        ],
        "indicators": {
          "domains": [
            "coverage.rpc-health-monitor.xyz"
          ],
          "evidence_files": [
            {
              "path": "plugins/hardhat.plugin.js",
              "sha256": "f177c369fe84a3ea98598f7deed13ed4f593ee3eb07f5e4187b1c3f0da995809",
              "tlsh": "e832c51b11fe0c372a531570abebb120b330d2476a15d87c7a5d6318cfc6be542a6bda"
            },
            {
              "path": "lib/badge.js",
              "sha256": "1a10a1b711eb6dc0168b608eb5d1c93002b8c604d4a78431e4ae25415349e937",
              "tlsh": "c871406b24fa251403fbd49ca38fc412b286e143f249e990fa5c95105f9b57c42f69ed"
            }
          ],
          "package_integrity": [
            {
              "filename": "solidity-coverage-plus-1.1.0.tgz",
              "hashes": {
                "sha1": "78c20aee8b98430b6ee975ef9c8f49ab04666701",
                "sha512_sri": "sha512-/QRpMb7Ru8rgOV5tj67qt/BiZn774XYPZ9X8UGpPJ9lKpKG0ljdQpK3pIA86w/BlARXZzwFtITZFlV+T0/6gBw=="
              }
            }
          ]
        }
      },
      "package": {
        "ecosystem": "npm",
        "name": "solidity-coverage-plus"
      },
      "ranges": [
        {
          "events": [
            {
              "introduced": "0"
            }
          ],
          "type": "SEMVER"
        }
      ],
      "versions": [
        "1.1.0",
        "1.0.0"
      ]
    }
  ],
  "aliases": [
    "GHSA-j3fh-3pm4-rw5h"
  ],
  "credits": [
    {
      "contact": [
        "actran@amazon.com"
      ],
      "name": "Amazon Inspector",
      "type": "FINDER"
    }
  ],
  "database_specific": {
    "malicious-packages-origins": [
      {
        "id": "IN-MAL-2026-004599",
        "import_time": "2026-05-26T05:52:55.148404829Z",
        "modified_time": "2026-05-25T08:27:42Z",
        "sha256": "2652225925019da40677d3b3dd05149a0db2e152671efe2720a097d483c13dda",
        "source": "amazon-inspector",
        "versions": [
          "1.1.0"
        ]
      },
      {
        "id": "IN-MAL-2026-004445",
        "import_time": "2026-05-26T05:52:36.923413131Z",
        "modified_time": "2026-05-24T02:14:15Z",
        "sha256": "44e5a7775aa2bbde61d35a548198d976f9bdc6e9b11de33a2e28f6a6a9929de6",
        "source": "amazon-inspector",
        "versions": [
          "1.0.0"
        ]
      },
      {
        "id": "IN-MAL-2026-004600",
        "import_time": "2026-05-26T05:52:55.246004364Z",
        "modified_time": "2026-05-25T08:27:42Z",
        "sha256": "93aa0144f8f7a1a03e381ebe28f753a21f813a0e39fc8a8c7baa065751b77788",
        "source": "amazon-inspector",
        "versions": [
          "1.1.0"
        ]
      },
      {
        "id": "GHSA-j3fh-3pm4-rw5h",
        "import_time": "2026-05-26T13:21:46.732781587Z",
        "modified_time": "2026-05-26T11:56:00Z",
        "ranges": [
          {
            "events": [
              {
                "introduced": "0"
              }
            ],
            "type": "SEMVER"
          }
        ],
        "sha256": "2d7606814c697ba02283baeaeadfd5bbaf282f5850978e54f7b36387d8ad51dc",
        "source": "ghsa-malware"
      }
    ]
  },
  "details": "\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (44e5a7775aa2bbde61d35a548198d976f9bdc6e9b11de33a2e28f6a6a9929de6)\nPackage name impersonates the well-known `solidity-coverage` Hardhat plugin (sc-forks) and ships a verbatim copy of the upstream README. On `require(\u0027solidity-coverage-plus\u0027)` 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 \u2014 the canonical names Hardhat projects use for deployer private keys and wallet seed phrases \u2014 AES-256-GCM-encrypts the values with a key derived from the hardcoded constant `sha256(\u0027sc:\u0027 + 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.\n\n## Source: ghsa-malware (2d7606814c697ba02283baeaeadfd5bbaf282f5850978e54f7b36387d8ad51dc)\nAny 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.\n",
  "id": "MAL-2026-4672",
  "modified": "2026-05-26T13:23:36Z",
  "published": "2026-05-24T02:14:15Z",
  "references": [
    {
      "type": "PACKAGE",
      "url": "https://www.npmjs.com/package/solidity-coverage-plus/v/1.1.0"
    },
    {
      "type": "PACKAGE",
      "url": "https://www.npmjs.com/package/solidity-coverage-plus/v/1.0.0"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/advisories/GHSA-j3fh-3pm4-rw5h"
    }
  ],
  "schema_version": "1.7.4",
  "summary": "Malicious code in solidity-coverage-plus (npm)"
}


Log in or create an account to share your comment.




Tags
Taxonomy of the tags.


Loading…

Loading…

Loading…

Forecast uses a logistic model when the trend is rising, or an exponential decay model when the trend is falling. Fitted via linearized least squares.

Sightings

Author Source Type Date Other

Nomenclature

  • Seen: The vulnerability was mentioned, discussed, or observed by the user.
  • Confirmed: The vulnerability has been validated from an analyst's perspective.
  • Published Proof of Concept: A public proof of concept is available for this vulnerability.
  • Exploited: The vulnerability was observed as exploited by the user who reported the sighting.
  • Patched: The vulnerability was observed as successfully patched by the user who reported the sighting.
  • Not exploited: The vulnerability was not observed as exploited by the user who reported the sighting.
  • Not confirmed: The user expressed doubt about the validity of the vulnerability.
  • Not patched: The vulnerability was not observed as successfully patched by the user who reported the sighting.

Loading…

Detection rules are retrieved from Rulezet.

Loading…

Loading…