Opens in a new tab
PexLens logo
PexLens logo
Pricing
Add your offcanvas content in here
Add your offcanvas content in here
NULLSUB on npm: A Fake AI-Subscription Activator That Delivers Rifle RAT

NULLSUB on npm: A Fake AI-Subscription Activator That Delivers Rifle RAT

nullsub, a malicious npm package, delivers a fake AI-subscription activator that bypasses UAC, blinds AMSI and ETW, and installs Rifle RAT. Full analysis, IOCs and detection guidance.

PPexLens Research TeamNovember 15, 2026

Executive Summary

PexLens Supplytrust flagged the npm package nullsub as malicious. Package versions 1.11.15 and 1.11.16 ship an initial Windows downloader that fetches the real lure, NULLSUB-clean.exe, from ohnonoway[.]lol. That .NET program claims to be a free “activator” for paid AI, creative and developer subscriptions: ChatGPT, Claude, Claude Code, Cursor, Gemini, Copilot, Midjourney, Figma, Canva and about 30 more. While it was live, the package drew 472 weekly downloads; it has since been removed from the official npm registry.

The activator is fake. While its interface plays a scripted “patching” log and shows fake “activated” check marks next to each service, a background thread drops a second-stage loader, elevates it without a UAC prompt through the ms-settings / computerdefaults.exe hijack, and runs it. The loader blinds AMSI and ETW, fingerprints virtual machines, debuggers and sandboxes, then decrypts and launches the final payload: Rifle RAT, a backdoor that persists through Run keys and reports to a command-and-control (C2) server in South Korea.

The package has no install scripts and no JavaScript, so lifecycle-script scanners see nothing to block. The target audience is developers and AI power users who try to pirate AI tools. With a remote backdoor on such a machine, the operator can reach AI-service accounts, API keys and session tokens. Any machine that ran the package’s executable should be treated as fully compromised.

We analysed two builds of the NULLSUB .NET dropper: v1.13.2, which embeds the loader and works offline, and v1.11.14, which fetches it from ohnonoway[.]lol. Over the course of the campaign the dropper has handed out at least seven stage-2 loader builds, numbered Build_[14]_clr.exe through Build_[20]_clr.exe. In our sandbox the loader declined to decrypt its payload, but further analysis recovered it and identified the final payload as Rifle RAT, a backdoor first compiled in 2015 that is now delivered through a 2026 loader chain.

Key Findings

  • npm as a malware shelf. nullsub 1.11.15 and 1.11.16 contain a Windows PE but no install script, bin entry or JavaScript entry point. Nothing runs on npm install, so tools that only inspect preinstall/postinstall hooks miss it. It reached 472 weekly downloads before npm removed it. When run, the PE downloads the .NET lure NULLSUB-clean.exe from hxxps://ohnonoway[.]lol/downloads/.
  • AI-tool piracy is the lure. The GUI detects which of ~35 AI and developer services are installed and pretends to unlock them. Its help text tells victims to ignore antivirus and SmartScreen warnings.
  • Silent elevation. The dropper hijacks HKCU\Software\Classes\ms-settings\Shell\Open\command and launches computerdefaults.exe, so the payload starts at high integrity with no UAC prompt. The key is deleted about 12 seconds later.
  • Two delivery modes. v1.13.2 decrypts an embedded 1.25 MB resource (NullSub.blob, 16-byte XOR key) and needs no network. v1.11.14 fetches an encrypted control file from ohnonoway[.]lol that names the current payload URL and its SHA-256, so the operator can swap payloads without rebuilding the dropper.
  • A professional second stage. The dropped loader (posing as “Archive Helper 1.4 / Orbis Toolkit”) patches AMSI and ETW, checks for VMs, debuggers and sandbox clock skew, decrypts a ChaCha20-style payload and runs it in memory through a CLR host or donut shellcode, with Ekko sleep masking.
  • Rotating, numbered loader builds. The dropper has delivered stage-2 loaders from Build_[14]_clr.exe up to Build_[20]_clr.exe. The numbered Build_[N]_clr naming points to a crypter or loader build system that is rebuilt and rotated regularly, typical of a loader-as-a-service operation.
  • Fast release cadence. New dropper builds shipped on 2026-11-06 and 2026-11-09. Each new version re-triggers the drop on machines that ran an older one.
  • Rifle RAT as the final payload. In our sandbox the loader crashed before decryption, consistent with environment-keyed decryption. Further analysis recovered the third stage: Rifle RAT, a backdoor first compiled in December 2015 that talks to 175.117.144[.]67:556 over raw TCP and persists through Run keys disguised as “Window Update”. The operator pairs this old backdoor with a new loader that supplies elevation and evasion.

Technical Analysis

NULLSUB is a multi-stage chain: an initial downloader shipped in the npm package, then the .NET WinForms lure-and-dropper NULLSUB-clean.exe (stage 1), a native x64 loader (stage 2), and Rifle RAT, a remote access trojan, as the final payload (stage 3). The diagram below shows the flow; each stage is explained after it.

NULLSUB infection chain: npm package nullsub ships a downloader that fetches NULLSUB-clean.exe, which drops or downloads the Archive Helper loader, elevates it through the ms-settings UAC bypass and finally runs Rifle RAT
The NULLSUB infection chain: six stages and two delivery modes, ending in Rifle RAT.

Both dropper builds converge on the same UAC bypass and the same stage-2 loader; only the way the loader arrives differs.

The npm package

PackageVersionsContentsInstall scriptsDownloads
nullsub (npm)1.11.15, 1.11.16Initial Windows downloader (PE)Nonehxxps://ohnonoway[.]lol/downloads/NULLSUB-clean[.]exe

The executable in the package is only an initial downloader. When run, it fetches the .NET lure-and-dropper NULLSUB-clean.exe (stage 1), which then drops or downloads the stage-2 loader. Across the campaign the operator has served loader builds Build_[14]_clr.exe to Build_[20]_clr.exe; the build analysed in this post is Build_[20]_clr.exe.

Registry status. While nullsub was live on the npm registry it recorded 472 weekly downloads. It has since been removed from the official registry, so npm install nullsub no longer resolves. Copies can still sit in local npm caches, private registry mirrors and the node_modules folders of machines that installed it. npm download counts also include automated mirrors and security scanners, so 472 is an upper bound on real installs, not a victim count.

The version numbers of the NULLSUB program itself (1.11.14 and 1.13.2 in the samples below) are the lure’s own build numbers and are unrelated to the npm package versions.

Samples

SampleVersionSizeTypeCompiled (UTC)Stage 2 delivery
Dropper ANULLSUB 1.13.21,395,200 BPE32 .NET 4.0 WinForms, unsigned2026-11-09 11:58Embedded, XOR-encrypted resource
Dropper BNULLSUB 1.11.14142,336 BPE32 .NET 4.0 WinForms, unsigned2026-11-06 08:28Downloaded from C2
Stage 2 loaderBuild_[20]_clr.exe1,252,224 BPE32+ x64, MinGW, 11 sections2026-03-19 04:51Dropped by A or B
SampleSHA-256ImpHash
Dropper Abbacf67f2914d0098a078a8ad8a749043b22d4607e2af353a043ba7ae7f0c588f34d5f2d4577ed6d9ceec516c1f5a744
Dropper Ba8f05cc72ee6258a432c0b90f2c4810ebed22a26d862f572441cfcbcacdd53b7f34d5f2d4577ed6d9ceec516c1f5a744
Stage 2 loader6fa2c177d6fef3efb1704d4fd375c617498313d5b62f2545c39578bd86993c36d8c88bbb18ac12b5b94168affce6516f

The droppers are not packed or obfuscated, so class names and strings decompile cleanly. All evasion lives in stage 2.

Stage 1: the .NET lure and dropper (NULLSUB-clean.exe)

1.1 Lure interface

Det.Scan() enumerates running processes and the three Uninstall registry hives to show which AI services are installed. Clicking a service only plays a scripted log (“seeding identity… entitlement granted… ACTIVE”). Nothing is unlocked.

The config header says leaving relay_url empty keeps the tool offline, and the help text claims everything happens on the local PC. Both are false: the payload thread runs regardless of configuration.

ArtefactValuePurpose
MutexNullSub.<version>Single instance per build
Window messageNULLSUB_SHOWRe-activates the first window on a second launch
Config filenullsub.cfg beside the exeOverrides payload source, keys, delay and clean-up
Fake licenceNS2K4-9QX7M-4F19C-0DEAC-TV000Pre-filled with a “GEN” button and fake HWID binding
Help text“it is unsigned, allow it”; “SmartScreen: More info, Run anyway”Pre-empts antivirus and SmartScreen warnings

1.2 Background payload thread

About four seconds after launch (payload_delay=4), SchedulePayload starts RunPayloadOnce in the background.

ControlLocationBehaviour
payload.flag%LOCALAPPDATA%\nullsub\Stamped with the dropper version, so every new build runs the payload again
payload.try%LOCALAPPDATA%\nullsub\Limits retries to once per hour
--payload switchCommand lineBypasses both guards
payload_keep=0nullsub.cfgDeletes the dropped payload 25 seconds after it starts
Decompiled payload routine of NULLSUB-clean.exe showing the payload.flag check, payload.try throttle, embedded drop and control-file fallback
Decompiled payload routine of NULLSUB-clean.exe. It exits if the current build has already run (payload.flag), retries at most once per hour (payload.try), drops the embedded stage-2 loader, and otherwise falls back to the endpoint.txt control file on the C2 server.

1.3 Stage 2 delivery

ModeUsed bySourceDecryptionNotes
Embedded dropv1.13.2 (default)Manifest resource NullSub.blob, 1,252,224 BXOR, 16-byte key 3d06a73c50937da7422fceb90833664f; must start with MZNo network needed
Control filev1.11.14; v1.13.2 fallbackhxxps://ohnonoway[.]lol/ctl/endpoint[.]txtHex text, XOR key 7d9b59c2cce54c0e5e3223a8, yields url|sha256Operator can rotate the payload URL without a rebuild
Direct URLFallbackhxxps://ohnonoway[.]lol/dl/upd[.]binXOR key 3d06a73c...664f, optional SHA-256 pinStaged as a .part file

Requests use a hard-coded Chrome 131 User-Agent with the site origin as Referer. The payload is written to %LOCALAPPDATA%\nullsub\runtime\ under a service-like name such as host-9d2d.exe.

Through this delivery channel the operator has served successive loader builds, from Build_[14]_clr.exe up to Build_[20]_clr.exe, without changing the dropper. Each build carries the same loader design with a fresh encrypted payload resource.

Decoding the control file. The body of endpoint.txt is a hex string. Converting it to bytes and XORing them with key 7d9b59c2cce54c0e5e3223a8 gives the next-stage URL, hxxps://ohnonoway[.]lol/dl/upd[.]bin, followed by the SHA-256 the dropper expects that file to have: 6FA2C177D6FEF3EFB1704D4FD375C617498313D5B62F2545C39578BD86993C36.

The pinned hash belongs to Build_[20]_clr.exe, the loader analysed in this post. The copy of upd.bin we retrieved is 1,308,968 bytes, larger than that build’s 1,252,224 bytes, so the server had most likely already moved on to a newer loader build. It XOR-decrypts with key 3d06a73c50937da7422fceb90833664f into a Windows executable with a valid MZ header.

1.4 UAC bypass launch

LaunchElevated runs the payload at high integrity without a UAC prompt:

  1. Writes the payload path as the default value of HKCU\Software\Classes\ms-settings\Shell\Open\command and sets an empty DelegateExecute value.
  2. Starts computerdefaults.exe hidden. This Microsoft binary auto-elevates and follows the hijacked handler.
  3. Waits 8 + 4 seconds, then deletes the registry key.
  4. If that fails, tries the runas verb, then explorer.exe.

A helper can also strip the :Zone.Identifier stream (Mark-of-the-Web). The bypass works only when the user is a local administrator with UAC at its default level.

Stage 2: the “Archive Helper” native loader

2.1 File profile

PropertyValue
Original nameBuild_[20]_clr.exe (dropped as host-<4 hex>.exe)
CompilerMinGW/GCC, x64, 11 sections, TLS callback
Version resource“Archive Helper 1.4”, “Orbis Toolkit”, “(C) 2024” (fake)
Encrypted payload1,156,096-byte .rsrc section, entropy 7.98
LoggingVerbose OutputDebugString lines, which our sandbox captures in full

2.2 Capabilities

CapabilityEvidence
AMSI and ETW blindingPatches AmsiScanBuffer, AmsiScanString, AmsiOpenSession, EtwEventWrite, EtwEventWriteFull and advapi32!EventWrite; logs [patch] ... stomped
VM detectionVMware, VirtualBox, QEMU, Parallels and Xen processes and drivers, CPUID hypervisor bit, MAC OUI, firmware tables
Debugger detectionPEB flags, CheckRemoteDebuggerPresent, NtQueryInformationProcess, heap flags, timing, and names such as x64dbg, dnSpy, IDA and WinDbg
Sandbox detectionsandbox:clock-skew: compares requested sleep against wall clock, tick count and TSC
Payload decryptionSalsa20/ChaCha constant expand 32-byte k, per-chunk CRC32, FNV and API hashing; the key appears to depend on the environment checks
In-memory executionIn-process CLR host (CLRCreateInstance, AppDomain, entry-point invoke), manual PE mapper, donut runner, temp-file fallback
Sleep obfuscationEkko-style timer-queue ROP that encrypts the image while it sleeps
Decompiled stage-2 loader start-up showing VM and debugger checks before the encrypted payload is read
Decompiled start-up of the stage-2 “Archive Helper” loader. It runs its VM and debugger checks, logs the result ([vm] hits or [vm] clean, [dbg] hits or [dbg] clean), then reads the encrypted payload container and logs its size.

2.3 Sandbox behaviour

WhenObservation
~25 sDropper A writes %LOCALAPPDATA%\nullsub\runtime\host-9d2d.exe; its hash matches the decrypted NullSub.blob
~25 sLoader launched elevated through the ms-settings hijack; the key is deleted afterwards
Stage 2 startLoader patches AMSI and ETW, reports [vm] hits: cpuid hv mac drv proc and [dbg] hits: heap timing
Before decryptionReads a 1,043,968-byte payload and starts its Ekko worker
~55 sCrashes with an access violation (0xC0000005 at +0x3108); no [crypto] decrypted line, no decrypted PE in the dump
Dropper B, --payloadDebug log confirms both C2 URLs; the domain does not resolve without internet access
Whole runNo persistence from stage 1 or 2; no outbound traffic from stage 2

The crash inside the sandbox is most likely environment-keyed or deliberate fail-closed behaviour on virtual machines, though an ordinary bug is possible. The third stage was recovered outside the sandbox run (see Stage 3).

Stage 3: Rifle RAT

Stage 2 decrypts the final payload and launches it through one of its execution paths: the in-process CLR host, the manual PE mapper, the donut runner or the temp-file fallback. Our sandbox run ended before this step, but further analysis recovered the payload and identified it as Rifle RAT.

Rifle RAT is an older native backdoor, first compiled in December 2015 with Microsoft Visual Studio 2010, and it has been covered in earlier public reporting. We therefore summarise only what matters for this campaign: an old backdoor does the remote control, while the 2026 loader supplies elevation, AMSI/ETW blinding and anti-analysis.

AspectDetail
C2175.117.144[.]67 on TCP port 556 (AS9318, Korea Telecom, South Korea)
ProtocolRaw TCP encrypted with a custom XOR stream cipher; fixed seeds 0x1A2C and 0x4C5B, reset for every session (decoder in Appendix A)
CapabilitiesRemote command execution through a hidden cmd.exe with piped output; file download and execution ($download, $downloadexec, default file name sec.exe); system reconnaissance
PersistenceCopies itself to C:\ProgramData\Update\Wwansvc.exe (HKLM Run) and C:\Program Files\Common Files\Update\Wwansvc.exe (HKCU Run); value name Window Update, launch argument /run
EvasionAnti-debugging through rapid GetTickCount checks; deletes its original file with cmd /c del /q after installing
Build artefactPDB path C:\Users\C8\Desktop\rifle\Release\rifle.pdb (user name C8)
SHA-256eec4860a0052d21579dcbd82874a7a3dc4cd9312d11ce429326225c8492fd482
SHA-1 / MD568d9dc07c9ce5764b1beb8a0ddd3c4166e7fdc38 / 0dda14fd7aaee7c0c6b36e4e71f95406

Both persistence names imitate Windows: Wwansvc.exe borrows the name of the WWAN AutoConfig service, and “Window Update” resembles Windows Update. Writing the HKLM Run key needs administrator rights, which the NULLSUB chain has already obtained through the UAC bypass. For victims who pirate AI tools, remote command execution and download-and-execute give the operator a direct path to AI-service accounts, API keys, .env files, browser sessions and wallets, and a way to deploy further tools.

How PexLens Detected nullsub

PexLens Supplytrust flagged nullsub as malicious on both its static engines and its sandbox. No single signal made the call: the verdict came from independent signals that agreed at each stage. This matters for packages like nullsub, because a scanner that only reads package.json scripts sees a harmless, script-free package.

The staged pipeline

  1. Manifest and metadata triage. The package declares no lifecycle scripts, bin or main entry, yet its tarball contains a Windows PE. A PE in an npm package with no JavaScript that could use it is anomalous by itself. Combined with a new or low-reputation publisher, it raises the package’s priority.
  2. Binary static analysis. PexLens parses every PE in the tarball. The nullsub executable is a downloader that points to hxxps://ohnonoway[.]lol/downloads/NULLSUB-clean[.]exe, so that next stage is retrieved and analysed as well. It is an unsigned .NET WinForms binary with readable strings: the C2 domain, XOR keys, the ms-settings registry path, computerdefaults.exe, :Zone.Identifier and payload-staging config keys.
  3. Decompilation and resource carving. The .NET layer is decompiled and manifest resources are extracted. NullSub.blob decrypts with the hard-coded 16-byte key into an MZ image. That nested PE then goes through the same static pass, which reveals AMSI/ETW patch strings, VM and debugger checks, the ChaCha constant and the CLR-host loader.
  4. Static rule correlation. PexLens static rules cover the dropper, the stage-2 loader and the config file. Each rule needs several co-occurring indicators, not one string, which keeps false positives low.
  5. Sandbox detonation. The executable runs in an instrumented Windows sandbox. Within about 30 seconds it shows the behaviours that decide the case: a file written under %LOCALAPPDATA%\nullsub\runtime\, the transient ms-settings hijack key, a hidden computerdefaults.exe, a high-integrity child process from a user-writable path, and in-process AMSI/ETW patching.
  6. Verdict. Static intent (dropper and UAC-bypass code), static capability (an evasive loader nested inside) and dynamic confirmation (elevation and defence impairment observed) all agree. The package is classified malicious, and its hashes, domain and host artefacts are pushed to customer policy.

Signals that decided the verdict

StageSignalWhy it matters
MetadataNative PE in a package with no JS and no scriptsnpm used as a carrier, not as a library
Staticms-settings\Shell\Open\command + computerdefaults.exe in the same binaryKnown UAC-bypass pair (T1548.002)
StaticHard-coded XOR keys, payload URL and SHA-256 pin logicDownloader and dropper intent
StaticNested PE in an encrypted resource, .rsrc entropy 7.98Hidden second stage
StaticAMSI/ETW function names next to patch log stringsDefence impairment (T1562.001)
SandboxRegistry hijack created and deleted within ~12 sAnti-forensics around elevation
SandboxHigh-integrity process started from %LOCALAPPDATA% via computerdefaults.exeElevation confirmed
SandboxVM, debugger and clock-skew checks, then a crash before decryptionEvasive, environment-aware loader

Making detection stick for this class of package

nullsub shows a gap in common npm scanning: if nothing executes on install, many tools stop looking. PexLens applies these controls to binary-carrier packages:

  • Treat any PE, ELF or Mach-O file in a package as content to analyse, whether or not package.json references it.
  • Recurse into embedded resources and try simple decoders (single- and multi-byte XOR, base64, gzip) to surface nested executables.
  • Score the mismatch between what a package declares (no scripts, no entry point) and what it ships (an executable).
  • Detonate in a sandbox that hides VM artefacts (CPUID hypervisor bit, VMware/VirtualBox drivers and processes, MAC OUI, firmware strings), so environment-keyed loaders like this one reveal their final payload.
  • Track the campaign, not the version: the ImpHashes f34d5f2d... and d8c88bbb..., the C2 domain, the mutex pattern and the Build_[N]_<flavour> naming are stable across rebuilds.

How an EXE-only npm Package Still Gets Executed

npm never runs a bundled executable on its own. npm install only downloads and extracts the tarball. Without lifecycle scripts, a bin entry or JavaScript that spawns it, the bundled downloader just sits in node_modules/nullsub/. (The registry requires a package.json to publish, so “no JSON” in practice means a bare manifest with name and version and no scripts, bin or main.)

The package is still dangerous, because the attacker does not need npm to run the file. These are the realistic paths, most likely first.

1. npm as free, trusted file hosting

Every file in a published package gets a stable public URL on the registry tarball endpoint and on public npm CDNs such as unpkg and jsDelivr. A lure site, a YouTube description, a Discord or Telegram post, or another dropper can link straight to the bundled executable on one of those domains.

Those domains are widely allow-listed in corporate proxies and rarely blocked by web filters, so the download looks like ordinary developer traffic. In this model the npm package is not the infection vector; it is the attacker’s hosting. This is the most likely reason for a binary-only package, and it is why removing it from the registry also removes the CDN copies.

2. Social engineering the installing user

The target audience already wants to run a “free activator”. The package README or a lure page can tell the victim to run npm i nullsub and then open the executable inside node_modules\nullsub\. Once the downloader has fetched the lure, its help text pre-empts warnings with lines like “it is unsigned, allow it” and “SmartScreen: More info, Run anyway”.

Files extracted by npm usually carry no Mark-of-the-Web, because MOTW is added by browsers and mail clients, not by package managers. A file launched from node_modules may therefore skip the SmartScreen and “downloaded from the internet” checks that a browser download would trigger.

3. A second package does the launching

The attacker can split the attack across packages. A second, harmless-looking package lists nullsub as a dependency and, from its own install hook or runtime code, resolves the path to the executable under node_modules/nullsub/ and spawns it. Each package looks incomplete on its own: one ships a binary and no code, the other ships a few lines of path resolution and a child_process call.

Scanners that judge each package in isolation can clear both. Detection needs dependency-graph analysis: a package that spawns a file from another package’s directory is a strong signal.

4. A later version arms it

A script-free first version builds download count and a clean scan history. A later release can add a postinstall, bin or main entry that runs the binary already in the package, or swap the binary. Version-diff analysis catches this: the moment a package gains an execution path to a native executable is the moment to block it.

5. Manual or tooling execution on Windows

A developer browsing node_modules in Explorer, an IDE “open file” action, or a build tool told to run every .exe in a folder can launch it by accident. This is the least targeted path, but it needs no attacker infrastructure.

What this means for defenders

A binary-only package’s risk depends on what it ships, not on what its manifest says. Treat executables in packages as content to analyse, block packages that ship native executables without a reason, and alert on any process started from under node_modules that is a PE rather than node.

Indicators of Compromise, ATT&CK Mapping and Recommendations

Network indicators (defanged)

TypeValueNote
Domainohnonoway[.]lolHosts the stage-1 lure, the control file and the stage-2 payload
URLhxxps://ohnonoway[.]lol/downloads/NULLSUB-clean[.]exeStage-1 .NET lure-and-dropper, fetched by the downloader in the npm package
URLhxxps://ohnonoway[.]lol/ctl/endpoint[.]txtEncrypted control file, XOR key 7d9b59c2cce54c0e5e3223a8, content url|sha256
URLhxxps://ohnonoway[.]lol/dl/upd[.]binStage-2 payload, XOR key 3d06a73c50937da7422fceb90833664f
IP and port175.117.144[.]67:556 (TCP)Rifle RAT C2; AS9318 (Korea Telecom), South Korea; raw TCP with a custom XOR stream cipher
User-AgentMozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/131.0.0.0 Safari/537.36Hard-coded in the dropper, Referer set to site origin

File hashes (SHA-256)

FileSHA-256
NULLSUB 1.13.2 (dropper A)bbacf67f2914d0098a078a8ad8a749043b22d4607e2af353a043ba7ae7f0c588
NULLSUB 1.11.14 (dropper B)a8f05cc72ee6258a432c0b90f2c4810ebed22a26d862f572441cfcbcacdd53b7
Stage 2 Build_[20]_clr.exe6fa2c177d6fef3efb1704d4fd375c617498313d5b62f2545c39578bd86993c36
Encrypted resource NullSub.blobe070a835718a1a20dabade974c186c0d93749a612478cbac84459cef52644f12
Stage 3 Rifle RATeec4860a0052d21579dcbd82874a7a3dc4cd9312d11ce429326225c8492fd482
nullsub.cfg0d27cce0a57262eefcc110496ebd589c1030cbe31aa0855bafebe81aaa5c35c6
Related loader Build_[14]_0359193135_crypt.exe76272ea0f7880660df12a6deda355b11fdb8e47baae96abb68e7c5c286329a55
Related dropper44e40463aef7430a6eb20d5ad67ad17139887feeb7a5e6ca797addff8d9fd2a6
Related droppere817e71c1ccaadfe3a3781b49ba020cc9967309295af3f7099c25f53c6e40a74

Host indicators

TypeValue
MutexNullSub.<major.minor.patch>, e.g. NullSub.1.13.2
Window messageNULLSUB_SHOW
Folder%LOCALAPPDATA%\nullsub\ with payload.flag, payload.try, dbg.txt, runtime\
Dropped loader%LOCALAPPDATA%\nullsub\runtime\{svc,upd,licensing,runtime,client,host}-<4 hex>.exe
Registry (transient)HKCU\Software\Classes\ms-settings\Shell\Open\command with empty DelegateExecute
Process chainNULLSUB-clean.exe → computerdefaults.exe (hidden) → %LOCALAPPDATA%\nullsub\runtime\*.exe at high integrity
Version info“Archive Helper 1.4”, “Orbis Toolkit”
Rifle RAT filesC:\ProgramData\Update\Wwansvc.exe, C:\Program Files\Common Files\Update\Wwansvc.exe; downloaded payloads default to sec.exe
Rifle RAT Run keysHKLM\Software\Microsoft\Windows\CurrentVersion\Run and HKCU\Software\Microsoft\Windows\CurrentVersion\Run, value Window Update, data "<path>\Wwansvc.exe" /run
Rifle RAT behaviourHidden cmd.exe with piped stdout/stderr; cmd /c del /q on its own path; outbound TCP to port 556
Rifle RAT PDBC:\Users\C8\Desktop\rifle\Release\rifle.pdb

MITRE ATT&CK

TacticTechnique
Initial accessT1195.002 Compromise Software Supply Chain (npm carrier) · T1204.002 User Execution: Malicious File
ExecutionT1620 Reflective Code Loading · T1106 Native API · T1059.003 Windows Command Shell (Rifle RAT)
PersistenceT1547.001 Registry Run Keys (Rifle RAT, “Window Update”)
Privilege escalationT1548.002 Bypass User Account Control · T1112 Modify Registry
Defense evasionT1562.001 Impair Defenses (AMSI/ETW) · T1027 Obfuscated Files · T1140 Deobfuscate/Decode · T1497.001 VM evasion · T1622 Debugger evasion · T1036 Masquerading (fake activator, “Archive Helper”) · T1036.005 Match Legitimate Name (Wwansvc.exe) · T1070.004 File Deletion · T1553.005 Mark-of-the-Web Bypass
DiscoveryT1518 Software Discovery · T1057 Process Discovery · T1082 System Information Discovery
Command and controlT1105 Ingress Tool Transfer · T1071.001 Web Protocols · T1568 Dynamic Resolution · T1095 Non-Application Layer Protocol · T1571 Non-Standard Port · T1573.001 Symmetric Cryptography (Rifle RAT)

Recommendations

  • Block ohnonoway[.]lol and 175.117.144[.]67 (TCP 556) at DNS, proxy and firewall, and block the nullsub package in your npm proxy or registry firewall.
  • Hunt for a registry write to the ms-settings command key followed by computerdefaults.exe spawning anything other than SystemSettings; for high-integrity processes launched from %LOCALAPPDATA%\*\runtime\; for a Run value named Window Update that points to Wwansvc.exe; and for outbound TCP connections to port 556.
  • Sweep endpoints for the %LOCALAPPDATA%\nullsub\, C:\ProgramData\Update\ and C:\Program Files\Common Files\Update\ folders, nullsub.cfg, payload.flag and the hashes above, and check developer machines for the nullsub package in node_modules.
  • If a host ran it, treat it as fully compromised: isolate, capture memory, reimage, and rotate every credential reachable from it. Start with AI-service accounts and API keys (Anthropic, OpenAI, Cursor, GitHub Copilot), cloud keys, browser sessions, SSH keys and wallets.
  • Harden: set UAC to “Always notify” or give developers standard-user daily accounts, and restrict execution from %LOCALAPPDATA% and node_modules with WDAC or AppLocker.
  • Educate: a “free activator” for a paid AI tool is malware, wherever it is hosted.

Conclusion

nullsub shows attackers using a package registry as trusted hosting for a Windows malware chain. The package runs nothing on install and contains no code, so script-focused scanners pass it. The executable inside it starts a chain that ends with an elevated, evasive loader and Rifle RAT, aimed at the developers and AI users whose credentials are now among the most valuable on any network. An eleven-year-old backdoor wrapped in a modern loader also shows that defenders cannot rely on old malware staying detectable: the packaging decides what gets through. Detecting this class of threat means analysing what a package ships, not only what it declares.

Want to see what is being installed across your developer machines and pipelines today? Request a demo, or read more about software supply chain security with PexLens Supplytrust.

Related reading from the PexLens Research Team: Securing the CI/CD Supply Chain: Lessons from the wfx-loot Campaign, Extension Drift: The Supply-Chain Risk Hiding Inside Routine IDE Updates, and our latest security advisories.

Appendix A: Rifle RAT Traffic Decoder

This Python 3 script decrypts network traffic captured between Rifle RAT and its C2 server (175.117.144[.]67:556), in either direction. The cipher is a symmetric XOR keystream, so the same function also encrypts. Every TCP session restarts the keystream from the fixed seeds, so decode each session’s bytes from its first byte.

# rifle_decrypt.py - Rifle RAT XOR stream cipher decoder
# Fixed seeds: 0x1A2C (seed1), 0x4C5B (seed2)
# Applies to both client-to-server and server-to-client traffic.

def rifle_xor(data: bytes) -> bytes:
    seed1 = 0x1A2C
    seed2 = 0x4C5B
    result = bytearray()
    for byte in data:
        sq    = (seed1 * seed1) & 0xFFFFFFFF
        ks    = (sq ^ seed2) & 0xFFFFFFFF
        ks    = (ks ^ (ks >> 16)) & 0xFFFFFFFF
        seed2 = ks
        seed1 = (seed1 ^ seed2) & 0xFFFFFFFF
        result.append(byte ^ (seed1 & 0xFF))
    return bytes(result)

if __name__ == "__main__":
    import sys
    if len(sys.argv) != 2:
        print("Usage: python rifle_decrypt.py <hex_payload>")
        sys.exit(1)
    ciphertext = bytes.fromhex(sys.argv[1])
    plaintext = rifle_xor(ciphertext)
    print(plaintext.decode("utf-8", errors="replace"))

Appendix B: YARA Rule for Rifle RAT

The rule matches on the PDB path and C2 address, on the cipher seeds next to a command keyword, or on command keywords together with the persistence artefacts.

rule Rifle_RAT_2015
{
    meta:
        description = "Rifle RAT custom backdoor (compiled Dec 2015), final payload of the NULLSUB npm campaign"
        author      = "PexLens Research Team"
        date        = "2026-11-15"
        hash        = "eec4860a0052d21579dcbd82874a7a3dc4cd9312d11ce429326225c8492fd482"

    strings:
        $pdb     = "rifle\\Release\\rifle.pdb" ascii
        $c2_ip   = "175.117.144.67" ascii
        $cmd1    = "$interval" ascii
        $cmd2    = "$downloadexec" ascii
        $cmd3    = "$download" ascii nocase
        $persist = "Window Update" ascii
        $wwansvc = "Wwansvc.exe" ascii
        $xor_s1  = { BE 2C 1A 00 00 }      // mov esi, 0x1A2C (seed1)
        $xor_s2  = { BF 5B 4C 00 00 }      // mov edi, 0x4C5B (seed2)
        $selfdel = "/c del /q" ascii

    condition:
        uint16(0) == 0x5A4D and
        uint32(uint32(0x3C)) == 0x00004550 and
        (
            ($pdb and $c2_ip) or
            ($xor_s1 and $xor_s2 and $cmd1) or
            (2 of ($cmd1, $cmd2, $cmd3) and $wwansvc and ($persist or $selfdel))
        )
}

References

  • MITRE ATT&CK, T1548.002 Abuse Elevation Control Mechanism: Bypass User Account Control: attack.mitre.org
  • MITRE ATT&CK, T1562.001 Impair Defenses: Disable or Modify Tools: attack.mitre.org
  • MITRE ATT&CK, T1547.001 Boot or Logon Autostart Execution: Registry Run Keys / Startup Folder: attack.mitre.org
  • MITRE ATT&CK, T1195.002 Supply Chain Compromise: Compromise Software Supply Chain: attack.mitre.org