{"id":"MAL-2026-5762","summary":"Malicious code in npm-sandbox-research-e9f0 (npm)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (a18a9932f78294e22aa0a85077b9318233ab0952bc8788ae8987fce3e5002c93)\nPackage declares a postinstall hook (\"postinstall\": \"node run.js\") that executes automatically on npm install. The tarball ships beacon scripts (beacon13.js, beacon_linux.js) that combine require('child_process'), require('os'), and require('http')/http.request to gather host identifiers (os.hostname(), os.platform()) and transmit them via HTTP POST/GET requests. This is the canonical install-time host-recon and exfiltration shape: lifecycle hook auto-execution, host enumeration via the os module, command execution capability via child_process, and outbound HTTP. Installing this package causes immediate disclosure of host metadata and provides a code-execution surface on the installer's machine.\n\n## Source: ghsa-malware (4aa60d0ef029a2e212e9f2dbce05f3e633c9019086e4a75f5102c93724784161)\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-76w8-rxxx-vjcg"],"modified":"2026-06-18T06:01:48.666629584Z","published":"2026-06-14T07:30:49Z","database_specific":{"malicious-packages-origins":[{"id":"IN-MAL-2026-006471","modified_time":"2026-06-14T07:30:50Z","versions":["1.0.0"],"source":"amazon-inspector","sha256":"1356b7c33d092b4655a20e28a21ddd3e6894a0168cf4c03ca3faf91d4535d0ef","import_time":"2026-06-14T07:43:28.482323692Z"},{"versions":["1.0.0"],"source":"amazon-inspector","sha256":"a18a9932f78294e22aa0a85077b9318233ab0952bc8788ae8987fce3e5002c93","import_time":"2026-06-14T07:43:28.442812708Z","id":"IN-MAL-2026-006470","modified_time":"2026-06-14T07:30:49Z"},{"sha256":"4aa60d0ef029a2e212e9f2dbce05f3e633c9019086e4a75f5102c93724784161","import_time":"2026-06-18T05:54:18.948351909Z","id":"GHSA-76w8-rxxx-vjcg","modified_time":"2026-06-18T03:27:53Z","ranges":[{"type":"SEMVER","events":[{"introduced":"0"}]}],"source":"ghsa-malware"}]},"references":[{"type":"PACKAGE","url":"https://www.npmjs.com/package/npm-sandbox-research-e9f0/v/1.0.0"},{"type":"ADVISORY","url":"https://github.com/advisories/GHSA-76w8-rxxx-vjcg"}],"affected":[{"package":{"name":"npm-sandbox-research-e9f0","ecosystem":"npm","purl":"pkg:npm/npm-sandbox-research-e9f0"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"}]}],"versions":["1.0.0"],"database_specific":{"cwes":[{"cweId":"CWE-506","description":"The product contains code that appears to be malicious in nature.","name":"Embedded Malicious Code"},{"name":"Embedded Malicious Code","cweId":"CWE-506","description":"The product contains code that appears to be malicious in nature."}],"indicators":{"evidence_files":[{"path":"beacon13.js","sha256":"5b1aa71a5bc3362de0ebea12fc6a2ffca3644c45642286c51e56c26768faf498","tlsh":"a702b521e6125da4a65299ecd94ab9483827e10f7d20faa0fb8d118c1fdc11fc270afd"},{"tlsh":"5db1b7d6a57b41282bd3b89c679f84061823f217b512d8d0b6dc06248fc7924a1a2ded","path":"beacon_linux.js","sha256":"60a0fbee8014300d0dd230765cbea7b61e9660a1584ad6a265de71927ff04c68"},{"path":"package.json","sha256":"5f60a51ea05b33c768c7cb5c220c2c5ee58cf6d9a76dbaa422e11696e3944e52","tlsh":"dc01dd049c305c3369c12de50ca59d9da734cf0e6544bd7e427b593852eee3935ba26c"}],"ips":["10.1.0.2","173.255.233.239","104.16.0.34"],"package_integrity":[{"filename":"npm-sandbox-research-e9f0-1.0.0.tgz","hashes":{"sha512_sri":"sha512-DddwwdddZ5lB+lSAjUKC5bo0Za+oZjNxj+w6PvO22mcQ8G8v+dBQ+4ejD7CuHYWFt81W4mXuJt2sbYGAl5xhUA==","sha1":"419fb4482840ae778bbfe4ef39190fc44eeb22dd"}}]},"source":"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/npm-sandbox-research-e9f0/MAL-2026-5762.json"}}],"schema_version":"1.7.5","credits":[{"name":"Amazon Inspector","contact":["inspector-research@amazon.com"],"type":"FINDER"}]}