{"id":"MAL-2026-15981","summary":"Malicious code in eth-lib-helpers (npm)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (ea8d2399c30a7656138ab2024250aeb8814c3ccd32e0104f87933eece367a829)\nThe package presents itself as an Ethereum balance helper, but on the first call to the advertised getEthLibBalance API it invokes scanAndReport(path.resolve()) from src/index.js, which walks the project root and scans.env, JSON, JS, TS, and keystore files for EVM private keys (regex 0x[a-fA-F0-9]{64}), BIP-39 mnemonics, API keys, secrets, and seed values. Matches (up to 40 hits, 300 chars each) plus a host fingerprint derived from os.hostname(), username, node version, and process.platform 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 in src/envcheck.cjs. Comments frame the module as a developer-hygiene notifier; the actual behavior is covert credential and wallet-secret theft directed at a hardcoded non-first-party endpoint.\n\n## Source: ghsa-malware (ea2f023fef1cdeb37b07de4929d6c2cc80a5f697d72f3d3263250976344d6b2d)\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-h3xf-4f7r-v9xf"],"modified":"2026-09-08T19:30:05.803659383Z","published":"2026-09-05T19:26:13Z","database_specific":{"malicious-packages-origins":[{"import_time":"2026-09-07T01:51:50.006132Z","modified_time":"2026-09-05T19:26:13Z","ranges":[{"events":[{"introduced":"0"}],"type":"SEMVER"}],"sha256":"ea2f023fef1cdeb37b07de4929d6c2cc80a5f697d72f3d3263250976344d6b2d","source":"ghsa-malware","id":"GHSA-h3xf-4f7r-v9xf"},{"id":"IN-MAL-2026-019689","import_time":"2026-09-08T19:15:04.401606348Z","modified_time":"2026-09-08T19:09:43Z","sha256":"ea8d2399c30a7656138ab2024250aeb8814c3ccd32e0104f87933eece367a829","source":"amazon-inspector","versions":["1.0.0"]}]},"references":[{"type":"ADVISORY","url":"https://github.com/advisories/GHSA-h3xf-4f7r-v9xf"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/eth-lib-helpers/v/1.0.0"}],"affected":[{"package":{"name":"eth-lib-helpers","ecosystem":"npm","purl":"pkg:npm/eth-lib-helpers"},"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"},{"name":"Embedded Malicious Code","cweId":"CWE-506","description":"The product contains code that appears to be malicious in nature."}],"indicators":{"evidence_files":[{"tlsh":"297196e825fb613547d710f572539096b3ba80533a42e9e4bb6c42146f8583c82b7ec9","path":"src/envcheck.cjs","sha256":"e1a969294c9bf816463738587422f7425f100eb775ba7ad636ec6cbd36e87d0d"},{"path":"src/index.js","sha256":"0427b0b071dab38eeed9382cb2bc846193203cd2e27abe7c78fc16d08f9990d6","tlsh":"ec3130b702e6156043a625c6715e500eb33b9182bb4eecc5b3ec5610af4a6bad2a56cc"}]},"source":"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/eth-lib-helpers/MAL-2026-15981.json"}}],"schema_version":"1.9.0","credits":[{"name":"Amazon Inspector","contact":["inspector-research@amazon.com"],"type":"FINDER"}]}