Skip to navigation

Threat reportVulnerabilityTL-2026-0420

PhantomRPC — Unpatched Windows RPC Local Privilege Escalation to SYSTEM via Fake RPC Server Impersonation (Kaspersky)

highACTIVE

PhantomRPC is a novel local privilege escalation technique disclosed by Kaspersky Security Services researcher Haidar Kabibo on 2026-04-24. An attacker with SeImpersonatePrivilege stands up a malicious RPC server impersonating legitimate but unavailable Windows services (Terminal Services, DHCP Client, Windows Time, gpsvc, WdiSystemHost), waits for privileged clients to connect, then calls RpcImpersonateClient to assume SYSTEM context.

By

Key facts

IdentifiersTL-2026-0420
Also known asPhantomRPC, MSRC Case 101749
SeverityHIGH
CVSS7.8 (CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:C/C:H/I:H/A:H)
Affected productsMicrosoft Windows Server 2025; Microsoft Windows Server 2022; Microsoft Windows Server 2019; Microsoft Windows 11; Microsoft Windows 10
Weaknesses (CWE)CWE-287, CWE-290, CWE-345, CWE-346, CWE-284, CWE-269
ToolsMicrosoft-Windows-RPC ETW Provider GUID
MITRE ATT&CK techniquesT1007 System Service Discovery, T1036.005 Match Legitimate Resource Name or Location, T1057 Process Discovery, T1059.003 Command and Scripting Interpreter: Windows Command Shell, T1068 Exploitation for Privilege Escalation, T1069 Permission Groups Discovery, T1134 Access Token Manipulation, T1134.001 Access Token Manipulation: Token Impersonation/Theft, T1134.002 Access Token Manipulation: Create Process with Token, T1134.003 Access Token Manipulation: Make and Impersonate Token, T1548 Abuse Elevation Control Mechanism, T1559 Inter-Process Communication and 5 more in the attack flow
MotivationUNKNOWN
Target sectorsgovernment, financial, healthcare, technology, defense, energy, manufacturing, education, telecommunications, critical infrastructure
Target regionsGlobal
Detection rules9 (1 shown free)
Sources9 cited sources

Detection coverage

As of 2026-04-24, Threadlinqs Intelligence publishes 9 detection rule(s) for TL-2026-0420 across Splunk SPL, Microsoft KQL and Sigma, covering 20 indicator(s) of compromise. The whole corpus is readable without an account. Every threat comes with one complete detection in Splunk SPL, Microsoft KQL and Sigma, free for everyone; a free account adds daily TL Creds to unlock the rest. Paid plans add a larger daily allowance, correlation and the MCP server. Threadlinqs MCP server · View plans.

Free detection: PhantomRPC Exploitation — Named Pipe Squatting on Sensitive Windows Service Endpoints

Detects the PhantomRPC exploitation phase where an attacker with SeImpersonatePrivilege registers a named pipe matching a legitimate but unavailable Windows service endpoint (W32TIME, W32TIME_ALT, gpapi, TermSrv_API_service, dhcpcsvc, WdiServiceHost) from a non-service-account process. Legitimate creators of these pipes are services running inside services.exe / svchost.exe; any other creator is squatting the endpoint to intercept privileged RPC client connections.

  • Languages: Splunk SPL, Microsoft KQL, Sigma
  • ATT&CK: T1134.001, T1036.005, T1068
  • Data sources: sysmon, windows_security, mde_device_events
  • Severity: high
  • Confidence: high

Splunk SPL

index=sysmon sourcetype="XmlWinEventLog:Microsoft-Windows-Sysmon/Operational" EventCode=17
  PipeName IN ("\\W32TIME","\\W32TIME_ALT","\\gpapi","\\TermSrv_API_service","\\dhcpcsvc","\\WdiServiceHost","\\ntsvcs","\\trkwks","\\spoolss")
  NOT Image IN ("*\\services.exe","*\\svchost.exe","*\\lsass.exe","*\\spoolsv.exe","*\\wininit.exe")
| eval risk_score=case(Image LIKE "%\\w3wp.exe",90, Image LIKE "%\\sqlservr.exe",90, User IN ("NT AUTHORITY\\LOCAL SERVICE","NT AUTHORITY\\NETWORK SERVICE"),80, true(),70)
| stats min(_time) as first_seen max(_time) as last_seen count by host, Image, ProcessId, User, PipeName, risk_score
| where count >= 1
| table first_seen, last_seen, host, User, Image, ProcessId, PipeName, count, risk_score

Microsoft KQL

DeviceEvents
| where Timestamp > ago(24h)
| where ActionType == "NamedPipeEvent"
| extend AC = parse_json(AdditionalFields)
| extend PipeName = tostring(AC.PipeName), EventType = tostring(AC.EventType)
| where EventType in ("CreatePipe", "ConnectPipe")
| where PipeName has_any ("\\W32TIME", "\\W32TIME_ALT", "\\gpapi", "\\TermSrv_API_service", "\\dhcpcsvc", "\\WdiServiceHost", "\\ntsvcs", "\\trkwks", "\\spoolss")
| where InitiatingProcessFileName !in~ ("services.exe", "svchost.exe", "lsass.exe", "spoolsv.exe", "wininit.exe")
| project Timestamp, DeviceName, InitiatingProcessAccountName, InitiatingProcessFileName, InitiatingProcessId, InitiatingProcessCommandLine, PipeName
| sort by Timestamp desc

Sigma

title: PhantomRPC Named Pipe Squatting on Sensitive Service Endpoint
id: 128caac5-8840-4ef1-b515-d3d60367ab0d
status: experimental
description: Detects the PhantomRPC exploitation primitive where a non-service-account process registers a named pipe whose name matches a legitimate Windows service endpoint (W32TIME, W32TIME_ALT, gpapi, TermSrv_API_service, dhcpcsvc, WdiServiceHost). Legitimate creators run inside services.exe / svchost.exe; any other creator is squatting the endpoint to intercept privileged RPC clients.
references:
    - https://securelist.com/phantomrpc-rpc-vulnerability/119428/
    - https://github.com/klsecservices/PhantomRPC
author: Threadlinqs Team
date: 2026-04-24
tags:
    - attack.privilege_escalation
    - attack.defense_evasion
    - attack.t1134.001
    - attack.t1036.005
    - attack.t1068
logsource:
    product: windows
    category: pipe_created
detection:
    selection_pipe:
        EventID: 17
        PipeName:
            - '\W32TIME'
            - '\W32TIME_ALT'
            - '\gpapi'
            - '\TermSrv_API_service'
            - '\dhcpcsvc'
            - '\WdiServiceHost'
            - '\ntsvcs'
            - '\trkwks'
            - '\spoolss'
    filter_legit:
        Image|endswith:
            - '\services.exe'
            - '\svchost.exe'
            - '\lsass.exe'
            - '\spoolsv.exe'
            - '\wininit.exe'
    condition: selection_pipe and not filter_legit
fields:
    - Image
    - ProcessId
    - PipeName
    - User
falsepositives:
    - Authorized debugging/instrumentation tools that bind service pipes (rare; should be whitelisted by Image hash)
    - Security products that proxy RPC endpoints
level: high

Known false positives:

  • Authorized monitoring or debugging software that proxies service pipes (whitelist by binary hash)
  • Third-party endpoint agents that instrument RPC transports
  • Legitimate lab simulations using PHANTOMRPC_SIM_ prefixed pipe names (filter these by name pattern)

Tuning notes: Whitelist known security agents (EDR/XDR) by Image hash and User. On IIS tier assets, add w3wp.exe as an alert-raising parent rather than a legitimate creator. Add environment-specific service pipes (e.g., gpsvc alternatives). Suppress PHANTOMRPC_SIM_ named pipes to avoid false alerts during lab simulations.

8 more detection rules (Splunk SPL, Microsoft KQL, Sigma) · unlock with TL Creds. Sign up free to unlock the detection rules or query them with the Threadlinqs MCP server (Purple and Gold in full, 2 calls a day on a free account)
  • PhantomRPC Exploitation — RPC_S_SERVER_UNAVAILABLE Against Sensitive Interface UUIDs · unlock with TL Creds
  • PhantomRPC Post-Exploitation — Coercion-Path Service Start Type Set to Disabled · unlock with TL Creds
  • PhantomRPC C2/Lateral — msedge.exe Launch Correlated with TermService Named-Pipe Activity · unlock with TL Creds
  • PhantomRPC Exploitation — Impersonation-Level RPC Client Failure Against Sensitive Interface · unlock with TL Creds
  • PhantomRPC Post-Exploitation — Token Duplication API Chain by Impersonation-Capable Service Account · unlock with TL Creds
  • PhantomRPC C2/Lateral — Rogue RPC Endpoint Registration Correlated with RPC_S_SERVER_UNAVAILABLE · unlock with TL Creds
  • PhantomRPC Post-Exploitation — SYSTEM Token Process Creation from Impersonation-Capable Service Account · unlock with TL Creds
  • PhantomRPC C2/Lateral — RPC Coercion Command Burst from Non-Administrative Session · unlock with TL Creds

Indicators of compromise

As of 2026-04-24, Threadlinqs Intelligence tracks 20 indicators of compromise for TL-2026-0420.

20 indicators of compromise · unlock with TL Creds. Compare plans

Technical analysis

Microsoft (MSRC Case 101749) declined to patch and refused to assign a CVE, classifying the issue as moderate, so Windows Server 2022/2025 and effectively all current Windows versions remain exposed. Public PoC and an ETW-based detection framework are available on GitHub (klsecservices/PhantomRPC).

PhantomRPC is an architectural weakness in Windows Remote Procedure Call (RPC) that permits local privilege escalation from any account holding SeImpersonatePrivilege (default for Local Service, Network Service, and IIS/MSSQL service accounts) up to NT AUTHORITY\SYSTEM. The technique was published on 2026-04-24 by Haidar Kabibo of Kaspersky Security Services (GReAT / SecureList).

Root cause: Windows RPC does not verify the legitimacy or identity of RPC servers before a client negotiates an impersonation-level (RPC_C_IMP_LEVEL_IMPERSONATE or RPC_C_IMP_LEVEL_DELEGATE) connection. When a well-known Windows service is not running, the RPC runtime returns RPC_S_SERVER_UNAVAILABLE (0x800706BA) to clients. An attacker with SeImpersonatePrivilege can register a malicious endpoint bound to the same interface UUID and protocol sequence (ncalrpc / ncacn_np named pipes such as \PIPE\W32TIME and \PIPE\W32TIME_ALT) before the legitimate service starts, or in scenarios where the service never runs. When a privileged client process makes an RPC call, it connects to the attacker's endpoint. The malicious server then invokes RpcImpersonateClient to obtain a primary impersonation token for the calling identity, which can be elevated to SYSTEM via standard token-theft primitives (CreateProcessWithTokenW / DuplicateTokenEx → CreateProcessAsUserW).

Kaspersky documented five reliable coercion paths on fully-patched Windows Server 2022 and Windows Server 2025: (1) Group Policy Client (gpsvc) — triggered by 'gpupdate /force', yielding a SYSTEM token; (2) Terminal Services (TermService) — triggered by launching msedge.exe, yielding the current user's token, useful for session hijacking; (3) Diagnostic System Host (WdiSystemHost/WDI) — autonomous trigger every 5–15 minutes, SYSTEM token; (4) DHCP Client service — triggered by 'ipconfig /renew' or 'ipconfig /release', administrator token; (5) Windows Time (W32Time) — triggered by 'w32tm.exe /resync', exposes named pipes \PIPE\W32TIME and \PIPE\W32TIME_ALT.

Disclosure history: the vulnerability was reported to MSRC on 2025-09-19 as Case 101749. On 2025-10-10 Microsoft declined to patch, classifying the issue as moderate severity because SeImpersonatePrivilege is required, and refused to assign a CVE. Kaspersky honored a multi-month embargo before publishing on 2026-04-24. Because Microsoft has no plans to fix the architectural flaw, all present and future Windows versions are assumed vulnerable.

Detection: Kaspersky released an ETW-based framework that captures events from the Microsoft-Windows-RPC provider (GUID {6ad52b32-d609-4be9-ae07-ce8dae937e39}). Event ID 5 (RPC start) and Event ID 1 (RPC stop) are correlated by ActivityID; a stop event carrying status 0x800706BA (RPC_S_SERVER_UNAVAILABLE) against a sensitive interface UUID from a privileged caller is the primary signal that a client has just failed to reach a legitimate service — the exact window in which a PhantomRPC server would take over. The klsecservices/PhantomRPC GitHub repository ships a Python enricher (enricher.py) that joins RPC interface names from interfaces.json and filters on impersonation level, endpoint, and client privilege.

Impact: Although SYSTEM is reachable today from Local Service / Network Service via other public primitives (the Potato family, SCMUACBypass, etc.), PhantomRPC is notable because (a) no patch is forthcoming, (b) it works against the latest Server 2022/2025 builds, (c) it blends into normal RPC traffic and does not require exploit shellcode, and (d) the gpsvc / WDI paths allow passive SYSTEM acquisition with no user interaction. Blue teams should treat this as an evergreen post-exploitation primitive and deploy ETW detection coverage immediately.

MITRE ATT&CK techniques by tactic:

Discovery

T1007 System Service Discovery; T1057 Process Discovery; T1069 Permission Groups Discovery

Defense Evasion

T1036.005 Match Legitimate Resource Name or Location; T1574 Hijack Execution Flow

Execution

T1059.003 Command and Scripting Interpreter: Windows Command Shell; T1559 Inter-Process Communication; T1569.002 System Services: Service Execution

Privilege Escalation

T1068 Exploitation for Privilege Escalation; T1134 Access Token Manipulation; T1134.001 Access Token Manipulation: Token Impersonation/Theft; T1134.002 Access Token Manipulation: Create Process with Token; T1134.003 Access Token Manipulation: Make and Impersonate Token; T1548 Abuse Elevation Control Mechanism

Resource Development

T1587.004 Develop Capabilities: Exploits; T1588.005 Obtain Capabilities: Exploits

Credential Access

T1649 Steal or Forge Authentication Certificates

Remediation

Patches

  • No patch available. Microsoft MSRC Case 101749 declined on 2025-10-10; no CVE assigned. Microsoft treats the underlying architectural behavior as a by-design consequence of SeImpersonatePrivilege.

Immediate actions

  • Audit accounts and services holding SeImpersonatePrivilege; revoke from any non-system or custom service accounts (e.g., legacy IIS app pools, ad-hoc scheduled tasks).
  • Deploy ETW detection for Microsoft-Windows-RPC provider GUID {6ad52b32-d609-4be9-ae07-ce8dae937e39}: alert on Event ID 1 (RPC stop) with status 0x800706BA (RPC_S_SERVER_UNAVAILABLE) against sensitive interface UUIDs followed by successful RPC impersonation.
  • Enable all referenced RPC services where operationally safe (Terminal Services, Windows Time, DHCP Client, gpsvc, Diagnostic System Host) to shrink the attack surface of unavailable endpoints that can be squatted by a fake server.
  • Deploy the Kaspersky detection toolkit (klsecservices/PhantomRPC toolset/enricher.py + interfaces.json) into SOC triage workflows or rebuild equivalent detections in your SIEM.
  • Hunt for unexpected ncacn_np / ncalrpc listeners registered by non-system processes on endpoints (Get-WinEvent / ETW / Sysmon Event ID 18 Pipe Created).
  • Restrict and monitor creation of named pipes matching known service patterns (\\.\\pipe\\W32TIME, \\.\\pipe\\W32TIME_ALT, \\.\\pipe\\gpapi, \\.\\pipe\\TermSrv_API_service).

Workarounds

  • Disable or isolate the high-value coercion paths: unused Terminal Services, Windows Time, and WDI trigger RPC client connections that attackers rely on — keep services that must exist running so their endpoints cannot be squatted.
  • Run msedge.exe (and other browsers that trigger TermService RPC) only from low-privilege interactive sessions so that the resulting impersonation token is not itself privileged.
  • Block or audit 'gpupdate /force' invocations outside scheduled maintenance windows to reduce opportunistic gpsvc coercion.
  • Use AppLocker / WDAC to prevent unsigned binaries from registering RPC endpoints on sensitive systems (Tier 0, DCs, ADFS, issuing CAs).

Longer-term hardening

  • Apply least-privilege design principles: scope SeImpersonatePrivilege only to vetted Microsoft service accounts; never grant to interactive or third-party service accounts.
  • Adopt Credential Guard, LSA protection (RunAsPPL=1), and Protected Process Light (PPL) on privileged RPC clients to reduce post-impersonation token abuse.
  • Enable Windows Defender Attack Surface Reduction (ASR) rule 'Block credential stealing from lsass.exe' (D1E49AAC-8F56-4280-B9BA-993A6D77406C) as a partial mitigation for downstream token abuse.
  • Implement continuous ETW-based RPC telemetry collection with long-term retention; correlate RPC_S_SERVER_UNAVAILABLE spikes with process creation events.
  • Review and remove legacy service accounts that run with SeImpersonatePrivilege but do not require it (IIS classic app pools, custom Windows services running as NT AUTHORITY\NETWORK SERVICE).
  • Adopt Just-In-Time (JIT) administration (Microsoft PAW / Azure PIM) so that SYSTEM-reachable footholds expire automatically.

Affected and fixed versions

  • Microsoft — Windows Server 2025
    Vulnerable versions: all builds as of 2026-04-24
  • Microsoft — Windows Server 2022
    Vulnerable versions: all builds as of 2026-04-24
  • Microsoft — Windows Server 2019
    Vulnerable versions: assessed vulnerable — shares RPC architecture
  • Microsoft — Windows 11
    Vulnerable versions: assessed vulnerable — shares RPC architecture
  • Microsoft — Windows 10
    Vulnerable versions: assessed vulnerable — shares RPC architecture

Timeline

  • Haidar Kabibo (Kaspersky Security Services) privately discloses PhantomRPC to Microsoft Security Response Center (MSRC Case 101749).
  • Microsoft declines to patch PhantomRPC, classifies the issue as moderate severity on the basis that SeImpersonatePrivilege is required, refuses to assign a CVE, and closes MSRC Case 101749.
  • Threadlinqs Intelligence opens TL-2026-0420 for PhantomRPC tracking, simulation, and detection coverage.
  • Kaspersky releases an ETW-based detection framework using the Microsoft-Windows-RPC provider GUID {6ad52b32-d609-4be9-ae07-ce8dae937e39} and logman capture commands alongside the PoC.
  • klsecservices/PhantomRPC repository published on GitHub under MIT license; includes C-language PoC servers (TERM, DHCP, TIME), [file name withheld] ETW post-processor, and [file name withheld] RPC interface database.
  • Kaspersky publishes the PhantomRPC technical analysis on Securelist, ending the coordinated-disclosure embargo period.
  • As of 2026-05-29, PhantomRPC remains a live, unpatched Windows RPC privilege-escalation primitive: Microsoft (MSRC 101749) refused to patch, declined a CVE, and the May 2026 Patch Tuesday shipped no fix, so all Windows versions including Server 2025 stay exposed. A public Kaspersky PoC persists and the by-design flaw is an evergreen SYSTEM-LPE technique, though no in-the-wild abuse is yet reported.

Sources cited

Previous and next in vulnerability

AI-drafted from 9 cited sources; published ; last updated —.

Threadlinqs Intelligence — Real-Time Threat Detection Platform

// threat_feed
$ sort --newest
Showing all threats

Live intelligence console

Threat level

Latest Threats