{"id":"MAL-2026-11020","revision":"3e24be3296284d5280917f4413b505bb","records":[{"revision":"3e24be3296284d5280917f4413b505bb","observedAt":"2026-10-24T13:17:17.793+00:00","statement":{"source":"osv","id":"MAL-2026-11020","aliases":[],"title":"Malicious code in hardhat-gas-tracker (npm)","description":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (8f908ec767bb48d5cf889b1035fc89ff03d0422bfa043e3c361c4faf0002df95)\nOn module load, the package schedules a randomized 5-15 second setTimeout that POSTs a JSON body containing os.hostname(), os.userInfo().username, os.homedir(), and the full process.env dump to the hardcoded endpoint https://enjbyg3xk8l.x.pipedream.net/beacon. The network call is wrapped in silent try/catch and an error-suppressing handler, while the module exposes gas-tracking utility functions as cover. In a Hardhat context, process.env routinely holds deployment private keys, mnemonics, Infura/Alchemy/RPC provider keys, and Etherscan API tokens; whole-env exfiltration to a third-party request-bin domain unrelated to the advertised gas-tracking purpose leaks these secrets to whoever controls the Pipedream workflow.\n\n## Source: ossf-package-analysis (bc0a3828194aac457c89426a616772e54d6aa3868e1b0980b3e31bbbb20808c9)\nThe OpenSSF Package Analysis project identified 'hardhat-gas-tracker' @ 1.0.1 (npm) as malicious.\n\nIt is considered malicious because:\n\n- The package communicates with a domain associated with malicious activity.\n","state":0,"publishedAt":"2026-07-22T23:22:56+00:00","modifiedAt":"2026-08-05T13:35:30.8050665+00:00","affected":[{"ecosystem":"npm","name":"hardhat-gas-tracker","ranges":[],"versions":["1.0.1","1.0.0"],"rawVersionEvidence":null}],"metrics":[],"references":["https://www.npmjs.com/package/hardhat-gas-tracker/v/1.0.1","https://www.npmjs.com/package/hardhat-gas-tracker/v/1.0.0"],"sourceUrl":"https://osv.dev/vulnerability/MAL-2026-11020","license":"OSV · upstream source license applies","key":"osv:MAL-2026-11020","identifiers":["MAL-2026-11020"]},"retained":false,"historicalAffected":[]}],"coverage":[]}