{"id":"MAL-2026-4807","summary":"Malicious code in shop-minis (npm)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (6e9e3e4e8e9e12bac20967fa551c549a93915b33007d7e54f8bfe0eed26a216e)\nOn `npm install`, the package's postinstall script (`postinstall.js`, run via `scripts.postinstall = 'node postinstall.js'`) collects host identity — `whoami`, `id`, `os.hostname()`, `os.platform()`, current working directory, and the env vars `CI`, `GITHUB_REPOSITORY`, `NODE_ENV` — and sends them to the hardcoded attacker-controlled host `svr57aylqme3zald4p0psi1hw827q1eq.oastify.com` (a Burp Collaborator / OAST canary domain) via both `https.get` and DNS lookup. The package name `shop-minis` and self-described 'Security research canary — shopify' impersonate Shopify's Shop Minis platform, so any developer expecting that namespace would unwittingly leak host recon to the canary operator's collaborator instance. The package ships no real functionality matching its name; the only effect of installation is the exfiltration beacon.\n\n## Source: ghsa-malware (15ec57895cae37229f449175b247b9d216d8b9e6f7d521341cfa6ffee413b07e)\nAny computer that has this package installed or running should be considered fully compromised. All secrets and keys stored on that computer should be rotated immediately from a different computer. The package should be removed, but as full control of the computer may have been given to an outside entity, there is no guarantee that removing the package will remove all malicious software resulting from installing it.\n","aliases":["GHSA-ghv6-vv2r-5f8v"],"modified":"2026-05-27T13:46:42.842366182Z","published":"2026-05-26T12:07:26Z","database_specific":{"malicious-packages-origins":[{"source":"amazon-inspector","modified_time":"2026-05-26T12:07:26Z","import_time":"2026-05-26T13:32:46.607776866Z","sha256":"6e9e3e4e8e9e12bac20967fa551c549a93915b33007d7e54f8bfe0eed26a216e","versions":["2.0.5"],"id":"IN-MAL-2026-004905"},{"source":"amazon-inspector","modified_time":"2026-05-26T12:07:27Z","import_time":"2026-05-26T13:32:46.72409743Z","sha256":"7366059c37dc67acd2988ef814e67556fc226b983668520a41518ca39c14902e","versions":["2.0.5"],"id":"IN-MAL-2026-004906"},{"modified_time":"2026-05-27T13:25:15Z","source":"ghsa-malware","import_time":"2026-05-27T13:34:11.952502482Z","ranges":[{"events":[{"introduced":"0"}],"type":"SEMVER"}],"sha256":"15ec57895cae37229f449175b247b9d216d8b9e6f7d521341cfa6ffee413b07e","id":"GHSA-ghv6-vv2r-5f8v"}]},"references":[{"type":"PACKAGE","url":"https://www.npmjs.com/package/shop-minis/v/2.0.5"},{"type":"ADVISORY","url":"https://github.com/advisories/GHSA-ghv6-vv2r-5f8v"}],"affected":[{"package":{"name":"shop-minis","ecosystem":"npm","purl":"pkg:npm/shop-minis"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"}]}],"versions":["2.0.5"],"database_specific":{"source":"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/shop-minis/MAL-2026-4807.json","cwes":[{"description":"The product contains code that appears to be malicious in nature.","cweId":"CWE-506","name":"Embedded Malicious Code"},{"description":"The product contains code that appears to be malicious in nature.","cweId":"CWE-506","name":"Embedded Malicious Code"}],"indicators":{"evidence_files":[{"tlsh":"050141a463f4e6b444f31dc0e2158c17b067e0103301bae07cec8354ab85ab445b5ced","sha256":"7fc4ea8b86c27e4111b2dc03ad327de9dc80ee686f0443edc0171645f46f6bbb","path":"postinstall.js"},{"tlsh":"35d05e2058625773b8d90aae0c369148daa24d1b5244ec3817e721c4871a27a957b36a","sha256":"43c55e42e821f4f501fa424379a65296edc45f351bdeda3d0d9e99d5f979996b","path":"package.json"}],"domains":["svr57aylqme3zald4p0psi1hw827q1eq.oastify.com","scan.svr57aylqme3zald4p0psi1hw827q1eq.oastify.com"],"package_integrity":[{"hashes":{"sha1":"f556b4533e1bcc01f0a1bc5f7af50eba85ad4303","sha512_sri":"sha512-N3ej+GGqFOLiOSNFvxkdwTXwY4M1b1cKQMhqN0BClUlWWfqvjUHGsbpUSue9yrAsnZTxDZbMDw1f7hkcaBsB+g=="},"filename":"shop-minis-2.0.5.tgz"}]}}}],"schema_version":"1.7.5","credits":[{"name":"Amazon Inspector","contact":["actran@amazon.com"],"type":"FINDER"}]}