{"id":"MAL-2026-17760","summary":"Malicious code in @coopeuch/common (npm)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (887c41c0805d7d223c499e702796cf46727b0be152b7c8a65607907afb3b5d59)\n@coopeuch/common@1.999.999 publishes to the public npm registry under a scope the publisher does not own, using an inflated version (1.999.999) consistent with the dependency-confusion technique that outranks internal-registry versions. The package's declared postinstall script (postinstall.js) runs automatically on npm install and collects installer-side host and network data — hostname, username, uid/gid, home directory, non-internal network interface addresses with MAC/CIDR, DNS resolver addresses, reverse-DNS internal FQDN, container markers, CI environment-variable presence, npm_config_registry, and the consuming project's package name/version/declared range — then POSTs it as JSON to the hardcoded author-controlled endpoint https://collector.oob.s4yhii.com/_npm-poc/beacon. A secondary DNS beacon is emitted via dns.lookup to a subdomain of oob.s4yhii.com. Any build that resolves @coopeuch/common from the public registry (including internal builds referencing the @coopeuch scope) will auto-exfiltrate internal hostnames, MAC addresses, usernames, internal registry URLs, and project identity to a third-party collector at install time. The package's README self-labels this as a coordinated-disclosure proof of concept; the harvesting and off-host upload nonetheless occur without installer opt-in.\n","modified":"2026-10-11T14:30:08.606792282Z","published":"2026-10-11T13:58:48Z","database_specific":{"malicious-packages-origins":[{"versions":["1.999.999"],"id":"IN-MAL-2026-021433","import_time":"2026-10-11T14:18:05.240602486Z","modified_time":"2026-10-11T13:58:48Z","sha256":"887c41c0805d7d223c499e702796cf46727b0be152b7c8a65607907afb3b5d59","source":"amazon-inspector"}]},"references":[{"type":"PACKAGE","url":"https://www.npmjs.com/package/@coopeuch/common/v/1.999.999"}],"affected":[{"package":{"name":"@coopeuch/common","ecosystem":"npm","purl":"pkg:npm/%40coopeuch/common"},"versions":["1.999.999"],"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":"postinstall.js","sha256":"c859191e9d7e04d59b5d2f566799feb31594a68573350bd17661be469e8663ef","tlsh":"0ae1fa6a05fe1132226235f4694b50156776d1633504fbf4b9dd8280afcf0ba42bb7ed"},{"tlsh":"1ee02230c5314f33a4d829a90d37264660aa296387083c2863eb426c4bdc77b88ff32d","path":"package.json","sha256":"0460202496c4e21d871ff51598019aeb1d27b5083ebf22611dc5456a64d0dbaa"}],"package_integrity":[{"hashes":{"sha512_sri":"sha512-aVYGJ0N6KMZH6QKeZwlw88VVV1+9Nh1lLGmbI/R7fCWJvnLnoiBRe7op2ptvfDIokoyiyPKyCuvJmvfs33mT0Q==","sha1":"f1278ee12b8adc385a28b5847ebbaef5f4e41be7"},"filename":"common-1.999.999.tgz"}]},"source":"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/@coopeuch/common/MAL-2026-17760.json"}}],"schema_version":"1.9.0","credits":[{"name":"Amazon Inspector","contact":["inspector-research@amazon.com"],"type":"FINDER"}]}