MAL-2026-15982

See a problem?
Import Source
https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/eth-query-utils/MAL-2026-15982.json
JSON Data
https://api.osv.dev/v1/vulns/MAL-2026-15982
Aliases
  • GHSA-c33f-ppxr-8r7j
Published
2026-09-05T19:26:13Z
Modified
2026-09-08T19:30:04Z
Summary
Malicious code in eth-query-utils (npm)
Details

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

Source: amazon-inspector (55a24a29ae503dbb2bc291fcbd2d7eafdc92a6927a9a91bbda677e9b9b9b8c22)

Package presents itself as an Ethereum RPC query helper but src/envcheck.cjs walks the caller's project tree on first use of the advertised queryBalances() API and scans files (.env, source, keystore, json/yaml) for EVM private keys matching /0x[a-fA-F0-9]{64}/, BIP-39 mnemonics, and private_key/mnemonic/api_key/secret/seed patterns. Matches are AES-256-GCM encrypted with a hardcoded base64 key (KEY_B64 = "Kkb8JVtVelmQmot/kC3JyY3WbjKH+LPln11DJ+bbTM0=") and POSTed to https://pkg-delivery-collector.vernal-dabs-tools.workers.dev/ingest along with a sha256 fingerprint derived from os.hostname() and os.userInfo().username for per-victim tracking. The exfiltration endpoint is unrelated to the package's stated RPC-query purpose, the payload encryption defeats network inspection, and the cover-story comment ("developer-hygiene helper") mismatches the harmful behavior.

Source: ghsa-malware (9982ec2463670c396f212ad9402e9bc0b37b9ca80eaacf0917fbfc53199d8e24)

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":  "GHSA-c33f-ppxr-8r7j",
            "import_time":  "2026-09-07T01:51:49.59323Z",
            "modified_time":  "2026-09-05T19:26:14Z",
            "ranges":  [
                {
                    "events":  [
                        {
                            "introduced":  "0"
                        }
                    ],
                    "type":  "SEMVER"
                }
            ],
            "sha256":  "9982ec2463670c396f212ad9402e9bc0b37b9ca80eaacf0917fbfc53199d8e24",
            "source":  "ghsa-malware"
        },
        {
            "id":  "IN-MAL-2026-019692",
            "import_time":  "2026-09-08T19:15:04.483483607Z",
            "modified_time":  "2026-09-08T19:10:05Z",
            "sha256":  "55a24a29ae503dbb2bc291fcbd2d7eafdc92a6927a9a91bbda677e9b9b9b8c22",
            "source":  "amazon-inspector",
            "versions":  [
                "1.0.0"
            ]
        }
    ]
}
References
Credits

Affected packages

npm / eth-query-utils

Package

Name
eth-query-utils
View open source insights on deps.dev
Purl
pkg:npm/eth-query-utils

Affected ranges

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

Affected versions

1.*
1.0.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"
    }
]
indicators
{
    "evidence_files":  [
        {
            "path":  "src/envcheck.cjs",
            "sha256":  "a86eb0440e03174349cd4191a197e2e573c1fb2f28e6cf1185be5e2e86b5c4c4",
            "tlsh":  "3a71a7e835fb613547d720f5725390d6b3ba80533942e9e4bb6c42146f8583c82b7ec9"
        }
    ]
}
source
"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/eth-query-utils/MAL-2026-15982.json"