{"id":"MAL-2026-5986","summary":"Malicious code in npm-sandbox-ping-r9t2 (npm)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (335649d395a44d7de1bc6343dbce1f0459414ef92ab149413a86b47e28f3c7c3)\npackage.json declares a postinstall hook (\"postinstall\": \"node run.js\") that auto-executes on install. The package ships beacon scripts (beacon14.js, beacon_linux.js) that import child_process and http/os, run shell commands such as whoami, read process.env, process.platform, os.hostname(), os.platform(), and transmit the collected host/identity data via http.request GET/POST to a remote endpoint. The data flow (system enumeration -\u003e outbound HTTP) and the install-time auto-execution together constitute a credential/host-info exfiltration beacon. Installer harm: any machine that runs `npm install npm-sandbox-ping-r9t2` will silently execute these beacons and leak local identity/environment information to a remote endpoint.\n\n## Source: ghsa-malware (ad2de245b09aeb12d92a3e2edbe8ca8ecf88e4211ff95cc51355810b57b70aa4)\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-p3jc-qrj7-hj68"],"modified":"2026-06-18T06:01:47.794771619Z","published":"2026-06-17T04:41:46Z","database_specific":{"malicious-packages-origins":[{"import_time":"2026-06-17T05:45:43.134943187Z","source":"amazon-inspector","modified_time":"2026-06-17T04:41:46Z","sha256":"335649d395a44d7de1bc6343dbce1f0459414ef92ab149413a86b47e28f3c7c3","id":"IN-MAL-2026-006898","versions":["1.0.0"]},{"id":"GHSA-p3jc-qrj7-hj68","source":"ghsa-malware","ranges":[{"type":"SEMVER","events":[{"introduced":"0"}]}],"modified_time":"2026-06-18T03:27:54Z","import_time":"2026-06-18T05:54:18.96642242Z","sha256":"ad2de245b09aeb12d92a3e2edbe8ca8ecf88e4211ff95cc51355810b57b70aa4"}]},"references":[{"type":"PACKAGE","url":"https://www.npmjs.com/package/npm-sandbox-ping-r9t2/v/1.0.0"},{"type":"ADVISORY","url":"https://github.com/advisories/GHSA-p3jc-qrj7-hj68"}],"affected":[{"package":{"name":"npm-sandbox-ping-r9t2","ecosystem":"npm","purl":"pkg:npm/npm-sandbox-ping-r9t2"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"}]}],"versions":["1.0.0"],"database_specific":{"source":"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/npm-sandbox-ping-r9t2/MAL-2026-5986.json","indicators":{"evidence_files":[{"tlsh":"4c229806f2612d94669359b4d94a7888342ba30f5e70b9a0f7de4acc1fdc21f92709fd","path":"beacon14.js","sha256":"bb7b836d1fcdb4e22dbca9a8448c57edb9b3af8d6b4eb8d7dc312c11871771ba"},{"tlsh":"5db1b7d6a57b41282bd3b89c679f84061823f217b512d8d0b6dc06248fc7924a1a2ded","path":"beacon_linux.js","sha256":"60a0fbee8014300d0dd230765cbea7b61e9660a1584ad6a265de71927ff04c68"},{"tlsh":"d8f08b949c306e3329d529d80c92694afa344f0b6144b9ae83bb192801dee3634bb28d","path":"package.json","sha256":"248c86f0a720e5b71264093224f5f44d73e3cf503cdf632fac68792e544b5c01"}],"package_integrity":[{"hashes":{"sha1":"6a63b5824848f5ef3ee8af466950087846e8d2f1","sha512_sri":"sha512-Hi7WZLU9dvbl6vGcapqlKkKe0Yb31dNFad5ZyIZBBprbSGFRMa1HI2lCtwhTNHNmMs5iNspUUUWaX9sVkQT3bw=="},"filename":"npm-sandbox-ping-r9t2-1.0.0.tgz"}]},"cwes":[{"cweId":"CWE-506","name":"Embedded Malicious Code","description":"The product contains code that appears to be malicious in nature."},{"cweId":"CWE-506","name":"Embedded Malicious Code","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"}]}