nullsub@1.11.15
Malicious code in nullsub (npm)
Analysis
nullsub ships a single 1.3 MB unsigned Windows PE, NULLSUB.exe, with no JavaScript and no install hooks; package.json pins os to win32 and the README tells users to fetch the binary and double-click it. It is described as a "portable Windows activator" for desktop AI apps, i.e. a licence-bypass tool, but the binary is built to hide from inspection. It imports IsDebuggerPresent, CheckRemoteDebuggerPresent and NtQueryInformationProcess/NtQueryInformationThread, scans for debugger windows and processes (ollydbg, x64dbg/x32dbg, windbg/windbgx, dnspy, ImmunityDebugger, ida/ida64, radare2) and for virtualisation via the CPUID hypervisor bit, SMBIOS, system firmware tables, and the processes and drivers of VMware, VirtualBox, QEMU, Parallels, Xen and Hyper-V (vmtoolsd, VBoxService, qemu-ga, prl_tools, xenservice, vmusrvc and their .sys drivers). It contains a manual in-memory PE loader - diagnostic strings for header copy, section mapping, relocation, import/IAT fixup, TLS callback invocation and memory-protection changes ("[ldr] hdr copied", "[ldr] reloc delta", "[ldr] imports ok iat", "[ldr] prot ok") plus CRYPT_TRACE/"[sec]" markers and FindResourceW/LockResource/SizeofResource - and builds a path with GetTempPathW that it launches via CreateProcessW/ShellExecuteW ("[temp] launched %ls"), consistent with an embedded encrypted payload being unpacked to a temporary file and executed as a second stage. The binary also creates, writes and deletes registry keys (RegCreateKeyExW/RegSetValueExW/RegDeleteTreeW), enumerates processes and network adapters (Process32First/Next, GetAdaptersAddresses) and reads host fingerprint data (GetSystemFirmwareTable, GlobalMemoryStatusEx, GetVolumeInformationW, GetComputerNameW). No plaintext C2 host, IP, URL or credential-store path appears in the outer binary; any command-and-control would reside in the encrypted embedded stage. Observed artifacts: download URL hxxps://cdn[.]jsdelivr[.]net/npm/nullsub/NULLSUB[.]exe and homepage hxxps://nullsub[.]ink.
- analyzed by
- Leitwacht
- first seen
- Nov 6, 2026, 04:05 PM
- analyzed
- Nov 6, 2026, 04:07 PM
Related advisories
- nullsub@1.11.16 same package
- @kahitsan/plugin-sdk@0.10.0-staging.59
- cwao@0.5.6
- teahy-znrpz-util@1.0.0
- stellarfixer@1.0.0
- basic-vite@1.0.0
- env-config-f281@1.0.0
- claude-desktop-setup@1.0.2
Independently detected by the Leitwacht supply-chain probe. IOCs are defanged. Published CC0. Think this is a mistake? See the dispute policy.