# RegPhantom: China-Nexus Windows Kernel Rootkit Enabling Stealthy Kernel-Mode Code Execution via Registry Trigger

> RegPhantom is a stealthy Windows kernel rootkit attributed to a China-nexus threat actor that abuses the Windows registry as a covert command trigger mechanism. The signed kernel driver intercepts XOR-encrypted commands written to registry keys via CmRegisterCallback, reflectively maps arbitrary PE payloads into kernel memory invisible to driver enumeration tools, and employs multiple anti-forensic techniques including blocking triggering registry writes, wiping executed payload memory, and encoding hook pointers.

- **Author:** Threadlinqs Team
- **Published:** 2026-03-23T12:00:00Z
- **Last updated:** 2026-03-23T12:00:00Z
- **Canonical:** https://intel.threadlinqs.com/threat/TL-2026-0271
- **Card image:** https://intel.threadlinqs.com/og/threat/threat-intel-regphantom-kernel-rootkit-tl-2026-0271.webp?v=16e585a1 (Threadlinqs threat intel: RegPhantom Windows Kernel Rootkit: Detection & IOCs (TL-2026-0271) — Critical severity, 13 IOCs, 9 detection rules.)
- **ID:** TL-2026-0271
- **Severity:** CRITICAL
- **Category:** MALWARE
- **Status:** MONITORING
- **Detections:** 9 (1 shown free below) · **IOCs:** 13 (2 shown free below)

## Description

RegPhantom represents a sophisticated kernel-mode rootkit designed for stealth execution in the Windows kernel. The malware operates as a legitimately signed Windows kernel driver (.sys file), leveraging valid code-signing certificates issued to Chinese companies — Guangzhou Xuanfeng Technology Co., Ltd. and Autel Intelligent Technology Corp., Ltd. — to pass Microsoft's driver signing enforcement.
The core innovation of RegPhantom is its use of the Windows registry as a covert command channel. An unprivileged usermode process writes an XOR-encrypted command to any registry key. The kernel driver intercepts this write via the CmRegisterCallback kernel API, decrypts the payload using a built-in XOR key, and reflectively loads an arbitrary Portable Executable (PE) image into kernel memory. This technique is particularly insidious because registry write activity is ubiquitous on Windows systems and blends into normal system noise.
The reflective loading mechanism bypasses standard driver loading infrastructure entirely. Instead of using the Windows driver loader, RegPhantom manually maps the PE into kernel memory, resolving imports and relocations in-memory. This means the loaded code never appears in kernel module lists, making it invisible to tools that enumerate loaded drivers (such as lm in WinDbg or driver listing utilities).
RegPhantom implements a multi-layered anti-forensic strategy:
1. Registry Write Blocking: The driver returns STATUS_ACCESS_DENIED before the registry write completes, ensuring the command payload is never committed to the registry. No registry value is created or modified, leaving zero persistent artifacts.
2. Payload Memory Wiping: After executing the reflectively loaded payload, the driver overwrites the kernel memory region with zeros, destroying forensic evidence.
3. Hook Pointer Encoding: All hook pointers are XOR-encoded with a global key (g_xor_decode_key) and only decoded at call time, adding a layer of obfuscation to memory forensics.
4. Callback Hijacking: The loaded payload can further hijack the driver's kernel callbacks, enabling persistent kernel-mode hooks without additional driver loads.
The driver binary is protected with Control Flow Guard (CFG) obfuscation incorporating opaque predicates and duplicated basic blocks designed to impede static analysis. However, the variety of opaque predicates used is low — the same patterns are reused across the binary — making the obfuscation vulnerable to pattern-based CFG simplification.
The observed sample set spans at least June 18, 2025 through August 6, 2025, based on compilation timestamps and VirusTotal first-submission dates. Multiple samples compiled over several months, signed with two distinct Chinese certificates, and submitted from multiple countries indicate an actively maintained offensive tool. Attribution to a China-nexus threat actor is assessed at moderate confidence based on certificate provenance, sample timeline patterns, submission geography, and shared development traits across the sample corpus.

## MITRE ATT&CK

- T1587 Develop Capabilities
- T1588 Obtain Capabilities
- T1106 Native API
- T1547 Boot or Logon Autostart Execution
- T1543 Create or Modify System Process
- T1068 Exploitation for Privilege Escalation
- T1014 Rootkit
- T1112 Modify Registry
- T1553 Subvert Trust Controls
- T1620 Reflective Code Loading
- T1027 Obfuscated Files or Information
- T1685 Disable or Modify Tools
- T1070 Indicator Removal
- T1140 Deobfuscate/Decode Files or Information
- T1573 Encrypted Channel

## Free detection (Splunk SPL, Microsoft KQL, Sigma)

**RegPhantom Registry Covert Command Channel — Post-Exploitation Phase** (`TL-2026-0271-SPL-002`)

Detects registry modification patterns consistent with RegPhantom's covert command channel, including kernel driver service creation from non-standard paths and suspicious registry value writes that may contain XOR-encrypted payloads. RegPhantom's usermode component writes XOR-encrypted commands to registry keys which the kernel driver intercepts via CmRegisterCallback.

- **Languages:** Splunk SPL, Microsoft KQL, Sigma
- **ATT&CK:** T1112, T1543.003, T1620, T1027
- **Data sources:** sysmon, windows_registry
- **Severity:** high
- **Confidence:** high

### Splunk SPL

```spl
index=sysmon sourcetype="XmlWinEventLog:Microsoft-Windows-Sysmon/Operational" (EventCode=12 OR EventCode=13 OR EventCode=14) | where (match(TargetObject, "(?i)\\\\CurrentControlSet\\\\Services\\\\") AND match(Details, "(?i)\\.sys") AND NOT match(Details, "(?i)\\\\System32\\\\drivers\\\\")) OR (match(TargetObject, "(?i)\\\\Software\\\\") AND NOT match(TargetObject, "(?i)\\\\Microsoft\\\\") AND len(Details) > 256) | eval action=case(EventCode=12, "CreateKey", EventCode=13, "SetValue", EventCode=14, "RenameKey") | table _time, Computer, EventCode, action, TargetObject, Details, Image | sort -_time
```

### Microsoft KQL

```kql
DeviceRegistryEvents | where Timestamp > ago(24h) | where ActionType in ("RegistryValueSet", "RegistryKeyCreated") | where (RegistryKey has "\\CurrentControlSet\\Services\\" and RegistryValueData has ".sys" and not(RegistryValueData has_any ("\\System32\\drivers\\", "\\SysWOW64\\drivers\\"))) or (RegistryKey has "\\Software\\" and not(RegistryKey has "\\Microsoft\\") and strlen(RegistryValueData) > 256) | project Timestamp, DeviceName, ActionType, RegistryKey, RegistryValueName, RegistryValueData, InitiatingProcessFileName, InitiatingProcessCommandLine
```

### Sigma

```yaml
title: RegPhantom Registry Covert Command Channel
id: b2c3d4e5-f6a7-4b8c-9d0e-1f2a3b4c5d6e
status: experimental
description: Detects registry modifications consistent with RegPhantom covert command channel including kernel driver service creation from non-standard paths and suspicious registry value writes with potential XOR-encrypted payloads.
references:
    - https://www.nextron-systems.com/2026/03/20/regphantom-backdoor-threat-analysis/
author: Threadlinqs Team
date: 2026/03/23
tags:
    - attack.defense_evasion
    - attack.t1112
    - attack.persistence
    - attack.t1543.003
    - attack.t1620
logsource:
    product: windows
    category: registry_set
detection:
    selection_driver_service:
        TargetObject|contains: '\CurrentControlSet\Services\'
        TargetObject|endswith: '\ImagePath'
        Details|endswith: '.sys'
    filter_standard_path:
        Details|contains:
            - '\System32\drivers\'
            - '\SysWOW64\drivers\'
    selection_suspicious_value:
        TargetObject|contains: '\Software\'
        Details|re: '^[A-Za-z0-9+/=]{64,}'
    filter_microsoft:
        TargetObject|contains: '\Microsoft\'
    condition: (selection_driver_service and not filter_standard_path) or (selection_suspicious_value and not filter_microsoft)
falsepositives:
    - Third-party driver installations from custom paths
    - Software using registry for base64 or encrypted configuration storage
level: high
```

**Known false positives:**

- Third-party driver installations from custom paths
- Software using registry for base64 or encrypted configuration storage

**Tuning notes:** Tune the registry path filters to exclude known legitimate software that stores large binary data in non-Microsoft registry keys. Adjust the Details length threshold (256) based on environment baseline. Add specific service name patterns if RegPhantom naming conventions are identified.

### 8 more detection rules (Splunk SPL, Microsoft KQL, Sigma), unlock with TL Creds

- RegPhantom Malicious Driver Service Installation — Exploitation Phase (locked: unlock with TL Creds)
- RegPhantom Registry Manipulation with Reflective Loading Correlation — Post-Exploitation Phase (locked: unlock with TL Creds)
- RegPhantom Anti-Forensic Kernel Operations — C2 Phase (locked: unlock with TL Creds)
- RegPhantom Suspicious Kernel Driver with Registry Callback Indicators — Exploitation Phase (locked: unlock with TL Creds)
- RegPhantom Registry-Based Payload Delivery via XOR Channel — Post-Exploitation Phase (locked: unlock with TL Creds)
- RegPhantom Rootkit Process and Driver Activity — C2 Phase (locked: unlock with TL Creds)
- RegPhantom Signed Kernel Driver Load — Exploitation Phase (locked: unlock with TL Creds)
- RegPhantom Kernel Driver Deployment via Command Line — C2 Phase (locked: unlock with TL Creds)

Sign up free to unlock the detection rules: https://threadlinqs.com/?modal=signup

## Sample indicators (2 of 13)

Defanged, TLP:CLEAR.

- File hash: `703dfb12edc6da592e3dfb951ca2d84bf349e6a16ad3a2ab32b275349956e7c4`
- File hash: `006e08f1b8cad821f7849c282dc11d317e76ce66a5bcd84053dd5e7752e0606f`

Full set of 13 indicators unlocks with TL Creds: https://threadlinqs.com/tl-creds

## Sources

- [RegPhantom Backdoor Threat Analysis - Nextron Systems](https://www.nextron-systems.com/2026/03/20/regphantom-backdoor-threat-analysis/)
- [RegPhantom - Malpedia (Fraunhofer FKIE)](https://malpedia.caad.fkie.fraunhofer.de/library/81a2f95e-e931-42ad-aa6b-aa2410252b72/)
- [RegPhantom Discussion - MalwareTips Forums](https://malwaretips.com/threads/regphantom-a-new-stealthy-windows-rootkit-designed-to-give-attackers-code-execution-in-kernel-mode-while-leaving-very-little-visible-evidence-behind.140414/)
- [Rootkit - MITRE ATT&CK Technique T1014](https://attack.mitre.org/techniques/T1014/)
- [Modify Registry - MITRE ATT&CK Technique T1112](https://attack.mitre.org/techniques/T1112/)
- [Mustang Panda Uses Signed Kernel-Mode Rootkit to Load TONESHELL Backdoor - The Hacker News](https://thehackernews.com/2025/12/mustang-panda-uses-signed-kernel-driver.html)
- [Chinese State Hackers Use Rootkit to Hide ToneShell Malware Activity - BleepingComputer](https://www.bleepingcomputer.com/news/security/chinese-state-hackers-use-rootkit-to-hide-toneshell-malware-activity/)
- [The HoneyMyte APT Now Protects Malware with a Kernel-Mode Rootkit - Securelist](https://securelist.com/honeymyte-kernel-mode-rootkit/118590/)

## Full data

The other 8 detection rules (Splunk SPL / Microsoft KQL / Sigma) unlock with TL Creds; a free account includes daily creds: https://threadlinqs.com/?modal=signup
Indicator values unlock with TL Creds, at a lower price on Red and Purple; AI agents can query rules and IOCs through the Threadlinqs MCP server (Purple and Gold in full, 2 calls a day on a free account): https://intel.threadlinqs.com/mcp

Canonical: https://intel.threadlinqs.com/threat/TL-2026-0271
