Malicious code in test1sdsd2 (npm)
Description
--- -= Per source details. Do not edit below this line.=-
Source: amazon-inspector (3c7bd7c5932337e17adaf4900cb7e29766fe6b5307bd170b38660dd05497ebdc)
Package test1sdsd2@99.99.99 declares preinstall and postinstall hooks in package.json that execute index.js on npm install. index.js performs an HTTP GET to the hardcoded bare IP 128.199.122.145?test1sdsd2, embedding the package name in the query string, which confirms code execution on the installer's machine and leaks install-signal (package name, implicit source IP, timing) to an attacker-controlled endpoint. The version number 99.99.99 combined with the beacon shape is the canonical dependency-confusion probe pattern used to detect resolution of an internal package name against a public registry. The package ships no legitimate library functionality.