{"id":"MAL-2026-6264","summary":"Malicious code in search-from-feed (npm)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (c9291507e6e48bff8b92fcd9dd1f51345077f59aae2692f3d7ca84a8c0581b04)\nsearch-from-feed@999.0.0 is a dependency-confusion attack package. package.json declares both `preinstall` and `postinstall` as `node callback.js`, so the payload fires automatically on every `npm install`. callback.js (lines 12-15 require https/http/os/child_process) collects the installer's username, uid/gid, homedir, hostname, cwd, local IP and external IP (queried from https://api.ipify.org), along with CI environment variables (GITHUB_TOKEN/GITHUB_REPOSITORY/GITHUB_ACTOR, GITLAB_*, JENKINS, BUILD_NUMBER, etc.), and POSTs the collected data to a hardcoded Discord webhook (`https://discord.com/api/webhooks/1516163806559076442/...`). It additionally probes for AWS_ACCESS_KEY_ID, GITHUB_TOKEN, NPM_TOKEN and DOCKER_PASSWORD and reports the presence of these secrets to the same webhook, flagging which CI runners are worth pivoting into. The 999.0.0 version is the canonical dependency-confusion shape, designed to outrank an organization's internal package of the same name during public-registry resolution. The package's own source comments self-describe it as a 'Dependency Confusion PoC,' but the install-time beacon to an attacker-controlled webhook with CI-secret enumeration is an active supply-chain attack regardless of framing.\n","modified":"2026-06-22T16:46:23.592168237Z","published":"2026-06-22T16:27:22Z","database_specific":{"malicious-packages-origins":[{"id":"IN-MAL-2026-007108","import_time":"2026-06-22T16:36:58.697573991Z","modified_time":"2026-06-22T16:27:22Z","sha256":"c9291507e6e48bff8b92fcd9dd1f51345077f59aae2692f3d7ca84a8c0581b04","source":"amazon-inspector","versions":["999.0.0"]}]},"references":[{"type":"PACKAGE","url":"https://www.npmjs.com/package/search-from-feed/v/999.0.0"}],"affected":[{"package":{"name":"search-from-feed","ecosystem":"npm","purl":"pkg:npm/search-from-feed"},"versions":["999.0.0"],"database_specific":{"source":"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/search-from-feed/MAL-2026-6264.json","indicators":{"package_integrity":[{"filename":"search-from-feed-999.0.0.tgz","hashes":{"sha512_sri":"sha512-ncTIsh/wR/pVoYwI/el3Bx8XZaEQizTUKcV8nh2XArVxssnL7zpi6PQNOchmKelhopl6e2UJPM6qIXzVlhF+SA==","sha1":"9d3e2081a3c3fa6a15eb3282d0ee8c0e90815107"}}],"evidence_files":[{"path":"callback.js","sha256":"2b8885a395ea80e415c7d5dcdecc357ba5ffc63758f00b98ef493ec11616964a","tlsh":"4712d7a556b1561005e347902a0fa416327af1672756deb0bb9c43182fd0b3c93f2efa"},{"sha256":"568ef9bac99ab88e75fe45f8b7e4c65f756df94380804e6eb0081bf8e0721163","tlsh":"56e0c01458155f333ce0cfeb052262552420de07141c3e0d3b5b4198935efb756fb69e","path":"package.json"}]},"cwes":[{"description":"The product contains code that appears to be malicious in nature.","name":"Embedded Malicious Code","cweId":"CWE-506"}]}}],"schema_version":"1.7.5","credits":[{"name":"Amazon Inspector","contact":["inspector-research@amazon.com"],"type":"FINDER"}]}