{"id":"MAL-2026-12482","summary":"Malicious code in tool-registry-scripts (npm)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (b635b8b6d257c079a0d0a9c06e37910b67f2e75d1e71dced264043624951ce06)\npackage.json declares a preinstall hook that runs index.js on `npm install`. index.js collects host identifiers (os.hostname(), os.userInfo(), homedir, DNS servers, cwd, package.json contents) and reads /etc/passwd and /etc/hosts, then POSTs the resulting JSON over HTTPS to the hardcoded out-of-band collaborator subdomain lsh5x8dwumsekllw37kacgaqxh3cr2fr.oastify.com. The destination is a Burp Collaborator OOB endpoint unrelated to any documented package purpose, and execution is automatic at install time.\n","modified":"2026-08-05T13:36:18.661850920Z","published":"2026-08-05T13:02:45Z","database_specific":{"malicious-packages-origins":[{"sha256":"b635b8b6d257c079a0d0a9c06e37910b67f2e75d1e71dced264043624951ce06","source":"amazon-inspector","versions":["1.0.0"],"id":"IN-MAL-2026-014861","import_time":"2026-08-05T13:08:51.641348023Z","modified_time":"2026-08-05T13:02:45Z"}]},"references":[{"type":"PACKAGE","url":"https://www.npmjs.com/package/tool-registry-scripts/v/1.0.0"}],"affected":[{"package":{"name":"tool-registry-scripts","ecosystem":"npm","purl":"pkg:npm/tool-registry-scripts"},"versions":["1.0.0"],"database_specific":{"cwes":[{"name":"Embedded Malicious Code","cweId":"CWE-506","description":"The product contains code that appears to be malicious in nature."}],"indicators":{"evidence_files":[{"tlsh":"00411199a2d917330de210c06a0c70842359fa777159a8d076cf42969f869f8b7326f3","path":"index.js","sha256":"087dc387251ffb892f0a24089eca2cbe6ec3c358d6e462e66dc36122609a18e0"}]},"source":"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/tool-registry-scripts/MAL-2026-12482.json"}}],"schema_version":"1.8.0","credits":[{"name":"Amazon Inspector","contact":["inspector-research@amazon.com"],"type":"FINDER"}]}