MAL-2026-14246

See a problem?
Import Source
https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/hardhat-hold/MAL-2026-14246.json
JSON Data
https://api.osv.dev/v1/vulns/MAL-2026-14246
Aliases
  • GHSA-f33v-qqxm-m6m9
Published
2026-08-19T03:54:07Z
Modified
2026-09-23T01:00:13Z
Summary
Malicious code in hardhat-hold (npm)
Details

-= Per source details. Do not edit below this line.=-

Source: amazon-inspector (e961a4e9f774d02e73039b143503a3fff7cad6fdbf164123d76a3d5de53c667e)

The package's main entry index.js unconditionally requires./lib/config, which is a ~4MB obfuscator.io-style blob (string array of ~23,981 entries with a rotating decoder and hex-escaped literals). The readable identifiers inside that payload include execSync (child_process) and axios (HTTP client) — the local-execution and outbound-network primitives used by droppers and exfiltration stagers — and the payload runs at import time via a top-level IIFE. The wrapper index.js copies the pino logger API surface but never uses the config export; its only effect is to force the obfuscated blob to load on require(). The package name hardhat-hold is a one-token variant of the Ethereum tooling package hardhat, while the README impersonates the pino logger (including shields.io badges that still point at pino's repository), and package.json carries an unrelated boilerplate description about vulnerability management. The combination of name/README/description mismatch with an obfuscated import-time payload carrying shell-exec + HTTP primitives is the canonical typosquat-dropper shape.

Source: ghsa-malware (6af89091e813fad5ea479c91ae40ac8fbfc58c677be758b0faa8d0c4926cb9cd)

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.

Database specific
{
    "malicious-packages-origins":  [
        {
            "id":  "IN-MAL-2026-018343",
            "import_time":  "2026-08-19T04:18:13.617667117Z",
            "modified_time":  "2026-08-19T03:54:07Z",
            "sha256":  "cc09d295042df8d7132dc5b79ae9d32ab77630db037521b333a44988aed7fac1",
            "source":  "amazon-inspector",
            "versions":  [
                "2.0.1"
            ]
        },
        {
            "id":  "IN-MAL-2026-018344",
            "import_time":  "2026-08-19T04:18:13.651642008Z",
            "modified_time":  "2026-08-19T03:54:20Z",
            "sha256":  "e961a4e9f774d02e73039b143503a3fff7cad6fdbf164123d76a3d5de53c667e",
            "source":  "amazon-inspector",
            "versions":  [
                "2.21.0"
            ]
        },
        {
            "id":  "GHSA-f33v-qqxm-m6m9",
            "import_time":  "2026-09-23T00:57:12.949793296Z",
            "modified_time":  "2026-09-23T00:09:33Z",
            "ranges":  [
                {
                    "events":  [
                        {
                            "introduced":  "0"
                        }
                    ],
                    "type":  "SEMVER"
                }
            ],
            "sha256":  "6af89091e813fad5ea479c91ae40ac8fbfc58c677be758b0faa8d0c4926cb9cd",
            "source":  "ghsa-malware"
        }
    ]
}
References
Credits

Affected packages

npm / hardhat-hold

Package

Affected ranges

Type
SEMVER
Events
Introduced
0 Unknown introduced version / All previous versions are affected

Affected versions

2.*
2.0.1
2.21.0

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
{
    "evidence_files":  [
        {
            "path":  "index.js",
            "sha256":  "0d4838d9e98f1870b3c44eadb1d0fd94e71526004752160f9db4c7d065e63874",
            "tlsh":  "5a21f1a125d6608f8938dad0f5306516acd7c677260752b2b9fc97ca27860080161fba"
        },
        {
            "path":  "package.json",
            "sha256":  "6660bc17b196b541c78c33c69bcb8bbc9489bec99b93eebe6287a0f5d6ccee09",
            "tlsh":  "e101dd30ceb89e2301ed2552482a0603b2658c4b4528fc2833dba11c4fad1fb11ff21c"
        }
    ],
    "package_integrity":  [
        {
            "filename":  "hardhat-hold-2.0.1.tgz",
            "hashes":  {
                "sha1":  "26bac4bcd58fd6e6c0a92c85f19a72ad8d9c9e1f",
                "sha512_sri":  "sha512-BeCODNp9zLmbSG/N132Yun5P2bkCxzBtfblEsj8E2kLN2XKsYkOZZtE5OeHRvVAEPYTBPKCks6XU1b8YYZCIVA=="
            }
        }
    ]
}
source
"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/hardhat-hold/MAL-2026-14246.json"