UAC Bypass
UAC (User Account Control) makes processes, even for an administrator, run by default with a medium integrity token; a consent prompt appears for privileged operations. A UAC bypass means getting a high integrity process without that prompt, starting from an account that is already a member of Administrators. It’s not a user-to-admin escalation: it’s going from “limited admin” to “full admin” silently. The invariant is that Microsoft does not consider UAC a security boundary, but a convenience, so bypasses abound and are often not patched as vulnerabilities.
flowchart LR
A["admin process<br/>medium integrity"] -->|"hijack of auto-elevated binary"| B["fodhelper.exe reads<br/>HKCU\\...\\ms-settings"]
B --> C["high-integrity process<br/>no prompt"]
C --> D["dump LSASS/SAM, persist"]
Threat model
Section titled “Threat model”- Who attacks: someone who already controls the session of a user who is a member of Administrators, but with the split token (medium integrity), and wants to self-elevate without alerting with a prompt.
- What it breaks: the separation between the account’s medium-integrity token and its high one. There’s no real privilege-boundary crossing; that’s why it’s not a “CVE.”
- What it gains: a silent high-integrity process, as a step before dumping credentials, disabling defenses or persisting.
- The requirement: the account must belong to Administrators (split token). If not, you don’t need UAC but real privesc.
Anatomy
Section titled “Anatomy”The split token
Section titled “The split token”An administrator with UAC on has two tokens: a medium-integrity one for everyday use and a high one used only after consenting to the prompt. The bypass gets the high one without the prompt.
Auto-elevated binaries
Section titled “Auto-elevated binaries”Windows has signed binaries with autoElevate=true in their manifest that elevate without a
prompt. If one of them reads a path or registry key the user controls, code slips in at high
integrity. The live, classified catalog is in UACME (dozens of numbered methods).
The UAC level matters
Section titled “The UAC level matters”At the maximum (“Always notify”) many auto-elevation bypasses fail. At the default level, most work.
Variants
Section titled “Variants”| Technique | Mechanism | Note |
|---|---|---|
| fodhelper | hijack of HKCU\...\ms-settings\Shell\Open\command |
The classic, fileless (UACME #33) |
| computerdefaults | same technique, another key | fodhelper variant |
| eventvwr | HKCU\...\mscfile\shell\open\command |
Historical |
| sdclt / slui / wsreset | other registry-hijack keys | Variants |
| DLL hijacking (IFEO / mock dirs) | C:\Windows \System32\ with a space |
Bypasses path checks |
| COM elevation moniker | duplicate another elevated process’s high token | Elevation:Administrator |
Red Team
Section titled “Red Team”fodhelper (the classic)
Section titled “fodhelper (the classic)”reg add "HKCU\Software\Classes\ms-settings\Shell\Open\command" /ve /d "cmd.exe /c start cmd.exe" /freg add "HKCU\Software\Classes\ms-settings\Shell\Open\command" /v DelegateExecute /t REG_SZ /ffodhelper.exefodhelper.exe self-elevates and, on opening Settings, runs the planted command at high integrity.
Clean the key when done.
Other paths
Section titled “Other paths”- computerdefaults.exe: same technique as fodhelper with another key.
- eventvwr.exe / sdclt.exe / wsreset.exe: registry-hijack variants (some already patched depending on the build).
- COM elevation moniker: a COM object with
autoElevatelets you duplicate a high-integrity token without touching the registry.
Investigator workflow
Section titled “Investigator workflow”- Is the account a member of Administrators (split token)? If not, this doesn’t apply.
- Is the UAC level below “Always notify”?
- Try fodhelper/computerdefaults (fileless); if patched, another UACME variant.
- Verify the method against the specific build: many get patched over time.
- Clean the planted registry keys.
- UACME (hfiref0x): the reference collection of numbered, maintained bypasses.
- SharpBypassUAC and PowerShell scripts (
Invoke-EventVwrBypass, etc.). - Metasploit
bypassuac_*.
Impact and chaining
Section titled “Impact and chaining”A high-integrity process without a prompt: now you can dump LSASS/SAM, disable defenses with full rights, install services and persist. It’s the silent step between initial admin access and full host control, before tokens and evasion.
Blue Team
Section titled “Blue Team”Detection
Section titled “Detection”- Auto-elevated binaries launching shells:
fodhelper.exe,computerdefaults.exe,eventvwr.exe,sdclt.exe→cmd.exe/powershell.exe(anomalous parent-child chain). - Writes to
HKCU\Software\Classes\...\shell\open\commandandms-settings/mscfilekeys. - High-integrity processes without recorded consent.
Telemetry and sources
Section titled “Telemetry and sources”- Sysmon event 1 (process create with parent) and 13 (registry set on the hijack keys).
- Monitoring of HKCU Run/Classes keys.
Hardening
Section titled “Hardening”- Raise UAC to “Always notify” (cuts many auto-elevation bypasses).
- App Control for Business / AppLocker to restrict which binaries run, cutting off the bypass LOLBins.
- Don’t use administrator accounts for daily work: if the session isn’t admin, the UAC bypass doesn’t apply.
- Remove redundant local admin rights; monitor the registry hijack keys.
Response
Section titled “Response”Assume compromise at high integrity: treat the host as fully compromised, rotate secrets and review persistence; fix the practice of using interactive admin accounts.
CVEs and real cases
Section titled “CVEs and real cases”- Most bypasses get no CVE because Microsoft doesn’t consider UAC a security boundary; they’re catalogued in UACME (method #33 fodhelper, etc.).
- Used by real malware: Dridex, TrickBot, Emotet, Lokibot use fodhelper/eventvwr to self-elevate (MITRE T1548.002).
- CMSTP, DiskCleanup, ICMLuaUtil among the COM/LOLBins exploited in documented campaigns.
Test checklist
Section titled “Test checklist”- Is the account a member of Administrators (split token)?
- Is the UAC level below “Always notify”?
- fodhelper / computerdefaults via
ms-settingsregistry hijack. - eventvwr / sdclt / wsreset (depending on the build).
- COM elevation moniker (token duplication from an elevated process).
- Does App Control / AppLocker block the bypass LOLBins?
- Planted registry keys cleaned up when done.