{"id":"MAL-2026-6366","summary":"Malicious code in backpack-ios (npm)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (25f0d7ea98cef4ddcac8af3b854c37c1a8a3246a13357af60cb36589454657b5)\npackage.json declares `\"preinstall\": \"node index.js\"`, causing index.js to execute automatically on `npm install`. The script collects host identifiers (os.hostname, os.userInfo, homedir, DNS servers, cwd, full package.json) and reads /etc/passwd and /etc/hosts via fs.readFileSync, then HTTPS POSTs the JSON payload to xopalguac3nk3bb10x9r4t6q7hdd13ps.oastify.com — a Burp Collaborator (OAST) subdomain used for out-of-band data exfiltration. The package name mirrors Skyscanner's Backpack iOS design-system package while shipping a ~2KB exfil-only payload with empty author/description fields, consistent with a dependency-confusion / typosquat lure. Installing this package directly leaks installer host identity and local user account data to an attacker-controlled endpoint.\n","modified":"2026-06-24T05:01:22.443738738Z","published":"2026-06-24T03:36:34Z","database_specific":{"malicious-packages-origins":[{"id":"IN-MAL-2026-007413","import_time":"2026-06-24T04:54:33.649353188Z","modified_time":"2026-06-24T03:36:34Z","sha256":"25f0d7ea98cef4ddcac8af3b854c37c1a8a3246a13357af60cb36589454657b5","source":"amazon-inspector","versions":["1.0.0"]}]},"references":[{"type":"PACKAGE","url":"https://www.npmjs.com/package/backpack-ios/v/1.0.0"}],"affected":[{"package":{"name":"backpack-ios","ecosystem":"npm","purl":"pkg:npm/backpack-ios"},"versions":["1.0.0"],"database_specific":{"indicators":{"package_integrity":[{"filename":"backpack-ios-1.0.0.tgz","hashes":{"sha512_sri":"sha512-3JzdU1t2XxtpszWxG65kXOYq9m1IIGDwdGokvRMUc/1v556/SLnrHzahoKsND4POCrsR0kUd1vNuIbWaQJDBDQ==","sha1":"f9b4dc07ac098e36764c7724fb33e7481cc5d1d4"}}],"evidence_files":[{"path":"index.js","sha256":"d1174de22a515e493d27d434474050fae71a818cd602901d5d27e1c1992c376a","tlsh":"5841139562da17330dd210c06a0c70c03359f9777159a99076cf42d69f869f8b7316f3"},{"tlsh":"bed0a7744e21653365c146a64c2ba49772618f2f14047c48a7db182c81ce677acff31d","path":"package.json","sha256":"3ba677c5218c63347e32b17a2b5a7565d938458b64a26a7bb76fd3f9bcce7206"}]},"source":"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/backpack-ios/MAL-2026-6366.json","cwes":[{"name":"Embedded Malicious Code","cweId":"CWE-506","description":"The product contains code that appears to be malicious in nature."}]}}],"schema_version":"1.7.5","credits":[{"name":"Amazon Inspector","contact":["inspector-research@amazon.com"],"type":"FINDER"}]}