{"id":"MAL-2026-17759","summary":"Malicious code in @coopeuch/button (npm)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (ee1a3bb0818d46a9c83659ed32f8ab209477970658d5f6f8241a12c96d137c98)\nThe package's postinstall lifecycle script (postinstall.js) runs automatically on `npm install` and harvests installer host identifiers — hostname, username, uid/gid, home directory, non-internal network interfaces with MAC addresses and CIDRs, configured DNS servers, reverse-DNS internal FQDN, CPU/memory, the consumer package name/version/path, CI markers, npm_config_* values, and container runtime indicators — then POSTs the JSON report over HTTPS to the hardcoded host collector.oob.s4yhii.com at /_npm-poc/beacon and issues a DNS lookup for a label-prefixed subdomain of oob.s4yhii.com as an out-of-band beacon. The destination is not the installer's own infrastructure and is not caller-configurable. The `@coopeuch` scope combined with the 1.999.999 version has the shape of dependency-confusion targeting of a specific organization's internal namespace, in which `npm install` resolves this public package in place of an intended internal one and emits the fingerprint to the author's collector.\n","modified":"2026-10-11T14:30:06.712736630Z","published":"2026-10-11T13:51:41Z","database_specific":{"malicious-packages-origins":[{"source":"amazon-inspector","versions":["1.999.999"],"id":"IN-MAL-2026-021386","import_time":"2026-10-11T14:18:01.403405383Z","modified_time":"2026-10-11T13:51:41Z","sha256":"ee1a3bb0818d46a9c83659ed32f8ab209477970658d5f6f8241a12c96d137c98"}]},"references":[{"type":"PACKAGE","url":"https://www.npmjs.com/package/@coopeuch/button/v/1.999.999"}],"affected":[{"package":{"name":"@coopeuch/button","ecosystem":"npm","purl":"pkg:npm/%40coopeuch/button"},"versions":["1.999.999"],"database_specific":{"cwes":[{"description":"The product contains code that appears to be malicious in nature.","name":"Embedded Malicious Code","cweId":"CWE-506"}],"indicators":{"package_integrity":[{"hashes":{"sha1":"61f39ae0da10a23d16e2de630ae0d5ce74568d47","sha512_sri":"sha512-SCbYYuiCW0bOdd4UWw/wU3O5OQlXaFmEYuQTFJjW1n1JEATG2c8uoSp7nnBbrNteRPcxjtIJlrAlGR2O90WjAA=="},"filename":"button-1.999.999.tgz"}],"evidence_files":[{"path":"postinstall.js","sha256":"c859191e9d7e04d59b5d2f566799feb31594a68573350bd17661be469e8663ef","tlsh":"0ae1fa6a05fe1132226235f4694b50156776d1633504fbf4b9dd8280afcf0ba42bb7ed"}]},"source":"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/@coopeuch/button/MAL-2026-17759.json"}}],"schema_version":"1.9.0","credits":[{"name":"Amazon Inspector","contact":["inspector-research@amazon.com"],"type":"FINDER"}]}