{"id":"MAL-2026-14134","summary":"Malicious code in @mohamed_nowisar/depconf-canary-test (npm)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (078a8dc3351eb44ee9ff0d5992b9082b726d7fbce0152ae2d44595a9e279ef82)\nOn `npm install`, the package's preinstall hook runs `node beacon.js`, which collects host identity (os.hostname(), os.userInfo().username, process.cwd(), platform, arch, Node version) and CI-detection environment variables (GITLAB_CI, GITHUB_ACTIONS, YANDEX_CI, and others) and POSTs them as JSON to the hardcoded endpoint https://webhook.site/3687e44a-4e97-43c4-84c9-e6c93d4b2fbc. The package name and self-description frame this as a dependency-confusion canary, but the beacon fires automatically on install without opt-in and sends installer-side data to an author-controlled webhook.site collector.\n","modified":"2026-08-18T23:15:11.595022248Z","published":"2026-08-18T23:05:52Z","database_specific":{"malicious-packages-origins":[{"id":"IN-MAL-2026-018178","import_time":"2026-08-18T23:09:42.036525821Z","modified_time":"2026-08-18T23:05:52Z","sha256":"078a8dc3351eb44ee9ff0d5992b9082b726d7fbce0152ae2d44595a9e279ef82","source":"amazon-inspector","versions":["0.0.1"]}]},"references":[{"type":"PACKAGE","url":"https://www.npmjs.com/package/@mohamed_nowisar/depconf-canary-test/v/0.0.1"}],"affected":[{"package":{"name":"@mohamed_nowisar/depconf-canary-test","ecosystem":"npm","purl":"pkg:npm/%40mohamed_nowisar/depconf-canary-test"},"versions":["0.0.1"],"database_specific":{"cwes":[{"cweId":"CWE-506","description":"The product contains code that appears to be malicious in nature.","name":"Embedded Malicious Code"}],"indicators":{"evidence_files":[{"sha256":"167a36231c590174e7081a5ab2820fde2f87d6a3ce9a004c447afe749dd3f049","tlsh":"463120b9c36848710af507e1b76c2407a67af0763b8679b0b13662447fcc2b9013e1ab","path":"beacon.js"}],"package_integrity":[{"filename":"depconf-canary-test-0.0.1.tgz","hashes":{"sha1":"2fe30f89b365d0aac6c552e60d62a9ee6af15aa8","sha512_sri":"sha512-/Ux9gijFl8yZheojZVcG0QPHC81uMefGX5hhnDS1AAFizsUl051hBIDAhLkNet1uZpjqDYsRGcM/uJRAdulqOQ=="}}]},"source":"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/@mohamed_nowisar/depconf-canary-test/MAL-2026-14134.json"}}],"schema_version":"1.9.0","credits":[{"name":"Amazon Inspector","contact":["inspector-research@amazon.com"],"type":"FINDER"}]}