{"id":"MAL-2026-5782","summary":"Malicious code in token-prices-cron (npm)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (10adc862166a2dbaf26f3dc56b4c1dfa0fd45e625f713380564d0b18fb07088d)\nOn `npm install`, the preinstall lifecycle script in postinstall.js enumerates process.env, filters keys matching a broad credential regex (key|secret|token|pass|private|ssh|deploy|auth|api|rpc|wallet|sentry|docker|graph|slack|host), and bundles them with hostname, username, cwd, and npm registry/prefix metadata. The collected payload is POSTed over the network to a hardcoded bare IP at 185.130.46.35:8443 — no domain, no TLS verification context, no documented purpose. The package itself is a hollow shell: index.js is `module.exports = {}`, the description is 'Internal package', and the version is 999.0.0 — the canonical dependency-confusion shape designed to win resolution against a private-registry package of the same name and trigger the credential harvester on corporate build machines. A source comment confirms intent ('Exfil CI environment variables on install').\n","aliases":["GHSA-qp5c-f568-8r3h"],"modified":"2026-09-01T11:31:27.718462535Z","published":"2026-06-15T15:09:45Z","database_specific":{"malicious-packages-origins":[{"source":"amazon-inspector","versions":["999.0.0"],"id":"IN-MAL-2026-006488","import_time":"2026-06-15T15:30:22.236685127Z","modified_time":"2026-06-15T15:09:45Z","sha256":"10adc862166a2dbaf26f3dc56b4c1dfa0fd45e625f713380564d0b18fb07088d"},{"import_time":"2026-07-20T13:14:52.511683238Z","modified_time":"2026-07-20T11:01:54Z","sha256":"4a954a389bc1824fc62d6c5ef00a5ff54be8c8ddee281993de6ee66e6529b003","source":"reversing-labs","versions":["999.0.0"],"id":"RLMA-2026-05634"},{"id":"RLUA-2026-06523","import_time":"2026-09-01T11:18:25.951803417Z","modified_time":"2026-08-24T17:14:13Z","sha256":"a62f9e29307888b74d76a2e97f81cc86bf9ed97a59eada8b35b774e2cb2ce2bf","source":"reversing-labs"}]},"references":[{"type":"PACKAGE","url":"https://www.npmjs.com/package/token-prices-cron/v/999.0.0"},{"type":"ADVISORY","url":"https://github.com/advisories/GHSA-qp5c-f568-8r3h"}],"affected":[{"package":{"name":"token-prices-cron","ecosystem":"npm","purl":"pkg:npm/token-prices-cron"},"versions":["999.0.0"],"database_specific":{"cwes":[{"name":"Embedded Malicious Code","cweId":"CWE-506","description":"The product contains code that appears to be malicious in nature."}],"indicators":{"evidence_files":[{"path":"postinstall.js","sha256":"d64656e6553409a54557222ecca0d2d914ac89afab42f95780168653327962f3","tlsh":"ef0141f884ed95a226e797d8f117901761bbd2323d0678b0baa842851fcc27485f2cf2"},{"path":"package.json","sha256":"d8ab6665415cb285e69ab885ed074b75b04e9e3226e749f0ea6f0ad3077d8cb7","tlsh":"f8c080348d255f7318c40bd565a3860576f21d3b5144785857c3149443ef77748bb71e"}],"package_integrity":[{"hashes":{"sha1":"51adffb553e2f3a7c8e084d1fbe01fb23c3062ba","sha512_sri":"sha512-kgvVSiTU8lSJCnloKwtJphtiSkWoL1bGamb2R+E8HgOhC6Qv45p39Lr6Ev2jjT1p0AaPDe8AdzXN31wVsAnX6g=="},"filename":"token-prices-cron-999.0.0.tgz"}]},"source":"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/token-prices-cron/MAL-2026-5782.json"}}],"schema_version":"1.9.0","credits":[{"name":"Amazon Inspector","contact":["inspector-research@amazon.com"],"type":"FINDER"},{"name":"ReversingLabs","contact":["https://www.reversinglabs.com"],"type":"FINDER"}]}