Skip to main content

Identifying UAC Escalation Bypass

Detect UAC bypass (T1548.002) in the event logs and disk artifacts of a KAPE triage.

Task 1: Introduction

Task 2: UAC Bypass Attacks From an Adversary Perspective

Task 3: Detecting UAC Bypass With Event Logs

Task 4: Detecting UAC Bypass With DFIR Artifacts

Task 5: Containment, Prevention, and Mitigation

Task 6: Real-World Challenge: UAC Bypass Privilege Escalation Investigation

Task 7: Conclusion

Back to all walkthroughs
Room Icon

Identifying UAC Escalation Bypass

Max room.

Detect UAC bypass (T1548.002) in the event logs and disk artifacts of a KAPE triage.

medium

60 min

22

User profile photo.
User profile photo.
User profile photo.

To access material, start machines and answer questions login.

A workstation triage lands in your queue. Buried in the log is a process running at High , launched from a signed Windows binary by a local admin account, yet no User Account Control consent prompt appears anywhere in the timeline, and the process runs from the user's own Temp folder. That combination is the fingerprint of a UAC bypass: a local admin at Medium integrity reaching High silently, without the yellow consent dialog that's supposed to gate elevation.

This room walks through detecting that technique end to end. UAC bypass is tracked in MITRE ATT&CK as T1548.002, a Privilege Escalation technique that in practice does two things: it raises the attacker's integrity level, and it hides the elevation from the user. We'll study the registry-hijack family of bypasses, spot them in event logs, then reconstruct them from disk artifacts when the logs have been tampered with.

Learning Objectives

  • Explain how UAC auto-elevation works and why attackers abuse it to move from Medium to High integrity
  • Detect registry-hijack UAC bypass in Sysmon (Event IDs 1 and 13) and Security (Event 4688) logs
  • Recover the hijack keys from UsrClass.dat, including a deleted key carved from the hive's unallocated space
  • Confirm the payload on disk with the MFT and source its hash from the right artifact
  • Apply containment and least-privilege hardening that stops the technique

Prerequisites

  • Windows Event Logs: Security and Operational channels (Windows Event Logs room)
  • Sysmon: Process creation, registry events, and the Hashes field (Sysmon room)
  • Windows Forensics: Registry hives, the , and the Eric Zimmerman tools (Windows Forensics 1 room)
  • Windows PrivEsc Arena: Helpful background on local privilege escalation (Windows PrivEsc Arena room)

Machine Access

This room uses two machines, and you'll want both of them running before you start:

  • The DefenseBox is your analyst workstation. The Eric Zimmerman DFIR tools (EvtxECmd, RECmd, MFTECmd, Timeline Explorer) are pre-installed in the DFIR Tools folder on the Desktop, and this is where you'll do all your work. Open it in the split view on the right, or connect to it over RDP with the credentials below.
  • IR-Storage is the evidence server that holds the triage images. You don't log into it directly; you mount its Artifacts share from the DefenseBox.

Start both machines from the top of this task and give them a couple of minutes to boot. Then, on the DefenseBox, open a normal (non-elevated) PowerShell and mount the evidence share. Replace IR-STORAGE-IP with the IP shown on the -Storage card in the machine panel at the top of the room:

net use E: \\IR-STORAGE-IP\Artifacts /user:Administrator Secure!

The triage images are now on the E: drive:

  • E:\Artifacts\Walkthrough\ holds the compromised host's triage, used in Tasks 3 and 4.
  • E:\Artifacts\Challenge\ holds the triage for the Task 6 challenge.

Map the drive from a normal, non-elevated PowerShell. Because UAC splits your logon into two separate tokens, a drive you map inside an elevated shell is invisible to your normal session, and the reverse is also true. If E: doesn't show up in Explorer, close any elevated window and map it again from a standard .

Set up your virtual environment

To successfully complete this room, you'll need to set up your virtual environment. This involves starting both your DefenseBox and Lab Machines, ensuring you're equipped with the necessary tools and access to tackle the challenges ahead.
Defender machine
Status:Off
Lab machine
Status:Off

Credentials

Connect to the DefenseBox (split view or ) using the following credentials:

Username
 
DFIRUser
 
Password
 
Secure!
 
IP address
 
MACHINE_IP