UAC BYPASS
FODHELPER
AUTO-ELEVATE
HKCU HIJACK
DetectionBlue TeamSOCOctober 12, 2026•9 min read

Detecting UAC Bypass: Auto-Elevate Binaries and Registry Hijacks

UAC is a convenience boundary, not a security boundary, and Microsoft says so. The bypasses are still worth catching, because they are the step between a medium-integrity foothold and an administrator.

Scroll

Most UAC bypasses follow one pattern: a Windows binary marked to auto-elevate reads a per-user registry key before it launches a child, and the attacker writes a command into that key first. Because the key lives under HKCU, no elevation is needed to plant it. That gives defenders two reliable choke points: the registry write and the unusual child of an auto-elevating parent (T1548.002).

Signals at a Glance

SignalWhereATT&CK
Write to HKCU ms-settings, mscfile or Folder shell open command keysSysmon 12/13, EDR registryT1548.002
Auto-elevating binary (fodhelper, computerdefaults, eventvwr, sdclt) spawning a shell or script hostSysmon 1, Event 4688T1548.002
High-integrity child of a medium-integrity parent with no consent promptSysmon 1 IntegrityLevel, 4688 token elevation typeT1548.002
Empty DelegateExecute value written beside a command valueSysmon 13T1548.002
Key created then deleted within seconds (cleanup)Sysmon 12/13/14T1112

The Registry Hijack

fodhelper.exe and computerdefaults.exe resolve the ms-settings handler, eventvwr.exe resolves mscfile, and sdclt.exe resolves Folder or an App Paths entry. Each checks HKCU before HKLM, so a command written under HKCU runs at high integrity when the binary starts. Sysmon records HKCU as HKU\<SID>_Classes, which is the string to match:

title: UAC Bypass via Auto-Elevate Registry Hijack
status: experimental
logsource:
  product: windows
  category: registry_set
detection:
  selection:
    TargetObject|contains:
      - '_Classes\ms-settings\shell\open\command'
      - '_Classes\mscfile\shell\open\command'
      - '_Classes\Folder\shell\open\command'
      - '_Classes\exefile\shell\runas\command'
  condition: selection
level: high
# tune/validate: per-user changes to these exact keys are rare, but confirm
# against your software inventory before enabling as a blocking control.

Process Lineage and Integrity

When the registry write is missed, the execution is not. An auto-elevating parent should not launch a command interpreter, and the child should not arrive at high integrity without a consent.exe prompt in the chain:

// Microsoft Defender / Sentinel (KQL) - auto-elevate parent spawning an interpreter
DeviceProcessEvents
| where InitiatingProcessFileName in~ ("fodhelper.exe","computerdefaults.exe","eventvwr.exe","sdclt.exe","slui.exe","cmstp.exe")
| where FileName in~ ("cmd.exe","powershell.exe","pwsh.exe","wscript.exe","cscript.exe","mshta.exe","rundll32.exe","regsvr32.exe")
| project Timestamp, DeviceName, AccountName, InitiatingProcessFileName,
          FileName, ProcessCommandLine, ProcessIntegrityLevel
// tune/validate: eventvwr.exe legitimately launches mmc.exe, so keep mmc out of the child list.
Vetted sources

Use the SigmaHQ registry-set and process-creation rules for UAC bypass, Elastic’s prebuilt rules for UAC bypass via registry modification, the UACME catalogue for test cases, and Atomic Red Team T1548.002 for validation. Baseline your own environment first — some endpoint management agents write to these keys.

Build Detections That Fire

Mjolnir Security helps blue teams turn threat intelligence into high-fidelity detections across endpoint, network, identity and cloud telemetry.

Detection EngineeringManaged Detection & ResponseThreat HuntingIncident ResponsePurple Teaming
  • Detection Engineering We build and tune detections mapped to ATT&CK from your own telemetry.
  • Threat Hunting as a Service Hypothesis-driven hunts for the behaviours on this page.
  • 24/7 Incident Response Containment when a detection fires. Call +1 833 403 5875.
Written by: Mjolnir Threat Research (MTAC)  |  Published: October 12, 2026  |  Last reviewed: October 12, 2026