{"id":"MAL-2026-5982","summary":"Malicious code in metrics-probe-77d4 (npm)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (1d079b30dbb30db1a61acddcd094d2e7e67e7ef466d624e4ad2392edc9d9203e)\nOn install, package.json runs `postinstall: node run.js`. run.js imports os, fs, http, https, and child_process and at runtime collects host identifiers (os.hostname(), os.platform()) and reads files from the filesystem (fs.existsSync / fs.readFileSync), then issues outbound HTTP/HTTPS requests including POST calls (run.js lines 322, 329) and GET / http.get fetches (lines 38, 190). The postinstall lifecycle hook causes this code to execute automatically on `npm install` without consumer interaction, exposing installer host information and local file contents to attacker-controlled network destinations. The package name (random suffix `-77d4`) and the absence of any documented purpose are consistent with a disposable exfiltration lure rather than a legitimate library.\n\n## Source: ghsa-malware (52d1d3e23a5ff1effade9c537dc09744ccceaa12c6cd344a0627d1513be34899)\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-94g9-7rch-xv9j"],"modified":"2026-06-18T06:01:49.884134480Z","published":"2026-06-17T04:43:34Z","database_specific":{"malicious-packages-origins":[{"sha256":"1d079b30dbb30db1a61acddcd094d2e7e67e7ef466d624e4ad2392edc9d9203e","versions":["1.0.0"],"modified_time":"2026-06-17T04:43:34Z","source":"amazon-inspector","id":"IN-MAL-2026-006902","import_time":"2026-06-17T05:45:43.380174521Z"},{"sha256":"52d1d3e23a5ff1effade9c537dc09744ccceaa12c6cd344a0627d1513be34899","modified_time":"2026-06-18T03:27:55Z","ranges":[{"type":"SEMVER","events":[{"introduced":"0"}]}],"source":"ghsa-malware","id":"GHSA-94g9-7rch-xv9j","import_time":"2026-06-18T05:54:18.957318732Z"}]},"references":[{"type":"PACKAGE","url":"https://www.npmjs.com/package/metrics-probe-77d4/v/1.0.0"},{"type":"ADVISORY","url":"https://github.com/advisories/GHSA-94g9-7rch-xv9j"}],"affected":[{"package":{"name":"metrics-probe-77d4","ecosystem":"npm","purl":"pkg:npm/metrics-probe-77d4"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"}]}],"versions":["1.0.0"],"database_specific":{"indicators":{"evidence_files":[{"sha256":"57ca0bcff5a61cb4ff7da366fc8df23e35074d39d673e3311838a34c3f52151e","tlsh":"21e022189c20393369c02aaa0ca2925ba6708f1b2014396c92bb2928429bb7a747b51d","path":"package.json"},{"sha256":"f139736230fff6fd52e561779e183eedda17ab5d3842a9ec6bad4b68c0460b00","tlsh":"7362e77619f74a2439a3ea9d971fa4016423f1177a55ede0f28c76200fcf528d1a2ef8","path":"run.js"}],"package_integrity":[{"filename":"metrics-probe-77d4-1.0.0.tgz","hashes":{"sha1":"615d6e0a4b868515e834d525fcb6d40d0cd65e72","sha512_sri":"sha512-jl19Ah541DVC7oOlbmezYRBa43lNnpQswa3CnmsppIS34A4ZDbgfK49zGzQ3OvMJ2XQSSRfV3noVIIZQk1aVCg=="}}]},"source":"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/metrics-probe-77d4/MAL-2026-5982.json","cwes":[{"name":"Embedded Malicious Code","cweId":"CWE-506","description":"The product contains code that appears to be malicious in nature."},{"name":"Embedded Malicious Code","description":"The product contains code that appears to be malicious in nature.","cweId":"CWE-506"}]}}],"schema_version":"1.7.5","credits":[{"name":"Amazon Inspector","contact":["inspector-research@amazon.com"],"type":"FINDER"}]}