{"id":"MAL-2026-20625","summary":"Malicious code in global-error-handling (npm)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (d849db4ee159bcf193d6c33967a3ad197579ed55cdceb7efb78cc676fb68ae35)\npackage.json declares a postinstall script that executes index.js on `npm install`. index.js reads os.hostname() and process.cwd() and POSTs them, along with a generated test identifier, to a hardcoded https://webhook.site/0a4d6535-e2dd-46b7-aff7-8af65c145c50 collector. webhook.site is a public third-party request-capture service that is commonly used as an install-time beacon sink. The behavior fires automatically on default install, is directed at a third-party endpoint unrelated to any declared publisher infrastructure, and discloses the installer's machine hostname and current working directory to whoever controls the webhook.site token. Self-descriptive strings in the payload (`event: \"authorized-poc-test\"`) are author-controlled and do not change the behavior: the shipped code performs unsolicited outbound exfiltration of host identifiers on every install.\n","modified":"2026-11-25T23:45:04.258719749Z","published":"2026-11-25T23:15:16Z","database_specific":{"malicious-packages-origins":[{"import_time":"2026-11-25T23:36:07.057694999Z","modified_time":"2026-11-25T23:15:16Z","sha256":"405257f11a91ae463bc310fe6faa11e725afe8be91a3cc2c8a24c0cb16db9119","source":"amazon-inspector","versions":["1.1.0"],"id":"IN-MAL-2026-023127"},{"id":"IN-MAL-2026-023128","import_time":"2026-11-25T23:36:07.112029600Z","modified_time":"2026-11-25T23:15:27Z","sha256":"d849db4ee159bcf193d6c33967a3ad197579ed55cdceb7efb78cc676fb68ae35","source":"amazon-inspector","versions":["1.0.0"]}]},"references":[{"type":"PACKAGE","url":"https://www.npmjs.com/package/global-error-handling/v/1.1.0"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/global-error-handling/v/1.0.0"}],"affected":[{"package":{"name":"global-error-handling","ecosystem":"npm","purl":"pkg:npm/global-error-handling"},"versions":["1.1.0","1.0.0"],"database_specific":{"indicators":{"evidence_files":[{"path":"index.js","sha256":"069f01e68bd9908d4478495200207a08cb4b0935af62c8b215637d6dcc210817","tlsh":"3d01ab9568fb6a3136e691d5662394223667ce1b2412de01b38d02781fc8498c17a3ed"}],"package_integrity":[{"filename":"global-error-handling-1.1.0.tgz","hashes":{"sha512_sri":"sha512-uEzSS0i2Kd237q6je8lTAwxF1FoS23virQytEflrcwu43AeTHbGYGmIt7N+Vjb4FsTbEpj8SiHjcHF7ifqaRWQ==","sha1":"aabb2eea14154cea48b722bf962b4c68a1c33441"}}]},"cwes":[{"description":"The product contains code that appears to be malicious in nature.","name":"Embedded Malicious Code","cweId":"CWE-506"},{"name":"Embedded Malicious Code","cweId":"CWE-506","description":"The product contains code that appears to be malicious in nature."}],"source":"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/global-error-handling/MAL-2026-20625.json"}}],"schema_version":"1.9.2","credits":[{"name":"Amazon Inspector","contact":["inspector-research@amazon.com"],"type":"FINDER"}]}