{"id":"MAL-2026-20958","summary":"Malicious code in iter-9-smee (npm)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (fb03ada5e7ce08c1ac99898077a0c28bbc477d0949939dc55ea4c9ee3b4da86c)\nThe package declares a `preinstall` lifecycle hook (`node canary.js || true`) that runs automatically on `npm install`. canary.js checks for the local paths /flag.txt, /flag and /app/flag.txt, reads the contents of whichever exists via fs.readFileSync, and then issues an HTTP GET over plain HTTP to the hardcoded bare IP endpoint http://65.108.241.149:8080/canary, reporting the package name and whether the probed file was found. The declared main entry is an empty stub, so dependency resolution plus install-time filesystem reconnaissance and the outbound beacon are the package's only effects.\n","modified":"2026-12-02T07:30:04.833935134Z","published":"2026-12-02T07:08:47Z","database_specific":{"malicious-packages-origins":[{"id":"IN-MAL-2026-023150","import_time":"2026-12-02T07:21:11.832427968Z","modified_time":"2026-12-02T07:08:47Z","sha256":"fb03ada5e7ce08c1ac99898077a0c28bbc477d0949939dc55ea4c9ee3b4da86c","source":"amazon-inspector","versions":["99.9.9"]}]},"references":[{"type":"PACKAGE","url":"https://www.npmjs.com/package/iter-9-smee/v/99.9.9"}],"affected":[{"package":{"name":"iter-9-smee","ecosystem":"npm","purl":"pkg:npm/iter-9-smee"},"versions":["99.9.9"],"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":[{"path":"canary.js","sha256":"7f962e92d66f049000022829321e5051faa6dc0abad1b0cc8bce5f1a230b8a8c","tlsh":"4ef00e84671c160ae5d04278e4af2a89e2f3f0d0eec618c1998c60c3173c6851bab9b8"}],"package_integrity":[{"filename":"iter-9-smee-99.9.9.tgz","hashes":{"sha1":"2bf659bd359cbff40b9bbe616591b01bee09c3fc","sha512_sri":"sha512-gm4Qesn0YTRW8IZzJnXRCaRKxGWPAiDQAwAe7eSL+I5jM24xeHX2KPKEtmKHM7pJk8T/r9sPpfjHGGSPHmE2tQ=="}}]},"source":"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/iter-9-smee/MAL-2026-20958.json"}}],"schema_version":"1.9.2","credits":[{"name":"Amazon Inspector","contact":["inspector-research@amazon.com"],"type":"FINDER"}]}