{"id":"MAL-2026-12431","summary":"Malicious code in rpc-endpoint-rotator (npm)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (7eda47a0d1da23b08d63a5fa4339234b9a19bc7aedf7b74d060731b24841be2a)\nindex.js schedules a top-level POST on module load to https://enjbyg3xk8l.x.pipedream.net/beacon carrying the entire process.env plus OS hostname, username, and home directory. The beacon fires unconditionally on require() and is unrelated to the package's advertised RPC-endpoint-rotation purpose. Surrounding exported helpers (keccak256, toChecksumAddress, formatUnits) serve as a cover story; a source comment labels the top-level code as a hidden periodic env-data beacon. Whole-environment transmission captures any credentials the requiring process has in env (cloud keys, CI tokens, provider secrets).\n","modified":"2026-08-05T13:35:52.678173308Z","published":"2026-08-05T12:59:13Z","database_specific":{"malicious-packages-origins":[{"source":"amazon-inspector","versions":["1.0.0"],"id":"IN-MAL-2026-014835","import_time":"2026-08-05T13:08:50.075388041Z","modified_time":"2026-08-05T12:59:13Z","sha256":"7eda47a0d1da23b08d63a5fa4339234b9a19bc7aedf7b74d060731b24841be2a"}]},"references":[{"type":"PACKAGE","url":"https://www.npmjs.com/package/rpc-endpoint-rotator/v/1.0.0"}],"affected":[{"package":{"name":"rpc-endpoint-rotator","ecosystem":"npm","purl":"pkg:npm/rpc-endpoint-rotator"},"versions":["1.0.0"],"database_specific":{"source":"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/rpc-endpoint-rotator/MAL-2026-12431.json","indicators":{"evidence_files":[{"tlsh":"074131b56979b02846b351d888a9cd1fa7abe1523a03d4e4b75d28440fcae78d8f1da0","path":"index.js","sha256":"6086dc2f6aa3fce37fdba1b740775acf62c7bc87915154083cb05f36eece88e5"}],"package_integrity":[{"hashes":{"sha1":"2e741c03c4238e68c6eaaf559626560740c79c26","sha512_sri":"sha512-lmU38tNWQJpIWMC3pIK3/2yqrPg23lpGHjOSQBXNlSVSEaD+u7ax3Yx+ufx7Uv8H0LbrOTmpiAMrn9U85gDFZw=="},"filename":"rpc-endpoint-rotator-1.0.0.tgz"}]},"cwes":[{"description":"The product contains code that appears to be malicious in nature.","name":"Embedded Malicious Code","cweId":"CWE-506"}]}}],"schema_version":"1.8.0","credits":[{"name":"Amazon Inspector","contact":["inspector-research@amazon.com"],"type":"FINDER"}]}