{"id":"MAL-2026-15982","summary":"Malicious code in eth-query-utils (npm)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (55a24a29ae503dbb2bc291fcbd2d7eafdc92a6927a9a91bbda677e9b9b9b8c22)\nPackage 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.\n\n## Source: ghsa-malware (9982ec2463670c396f212ad9402e9bc0b37b9ca80eaacf0917fbfc53199d8e24)\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","aliases":["GHSA-c33f-ppxr-8r7j"],"modified":"2026-09-08T19:30:04.729614171Z","published":"2026-09-05T19:26:13Z","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"},{"source":"amazon-inspector","versions":["1.0.0"],"id":"IN-MAL-2026-019692","import_time":"2026-09-08T19:15:04.483483607Z","modified_time":"2026-09-08T19:10:05Z","sha256":"55a24a29ae503dbb2bc291fcbd2d7eafdc92a6927a9a91bbda677e9b9b9b8c22"}]},"references":[{"type":"ADVISORY","url":"https://github.com/advisories/GHSA-c33f-ppxr-8r7j"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/eth-query-utils/v/1.0.0"}],"affected":[{"package":{"name":"eth-query-utils","ecosystem":"npm","purl":"pkg:npm/eth-query-utils"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"}]}],"versions":["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"}}],"schema_version":"1.9.0","credits":[{"name":"Amazon Inspector","contact":["inspector-research@amazon.com"],"type":"FINDER"}]}