{"T1548":"Chain with T1548 for deeper attack path","T1548.001":"Chain with T1548.001 for deeper attack path","T1548.003":"Chain with T1548.003 for deeper attack path"}
T1548.002 Bypass User Account Control
Sub-technique of: T1548
High-Level Description
Adversaries may bypass UAC mechanisms to elevate process privileges on system. Windows User Account Control (UAC) allows a program to elevate its privileges (tracked as integrity levels ranging from low to high) to perform a task under administrator-level permissions, possibly by prompting the user for confirmation. The impact to the user ranges from denying the operation under high enforcement to allowing the user to perform the action if they are in the local administrators group and click through the prompt or allowing them to enter an administrator password to complete the action.
If the UAC protection level of a computer is set to anything but the highest level, certain Windows programs can elevate privileges or execute some elevated Component Object Model objects without prompting the user through the UAC notification box. An example of this is use of Rundll32 to load a specifically crafted DLL which loads an auto-elevated Component Object Model object and performs a file operation in a protected directory which would typically require elevated access. Malicious software may also be injected into a trusted process to gain elevated privileges without prompting a user.
Many methods have been discovered to bypass UAC. The Github readme page for UACME contains an extensive list of methods that have been discovered and implemented, but may not be a comprehensive list of bypasses. Additional bypass methods are regularly discovered and some used in the wild, such as:
eventvwr.exe can auto-elevate and execute a specified binary or script.
Another bypass is possible through some lateral movement techniques if credentials for an account with administrator privileges are known, since UAC is a single system security mechanism, and the privilege or integrity of a process running on one system will be unknown on remote systems and default to high integrity.
Kill Chain Phase
Privilege Escalation (TA0004)
Defense Evasion (TA0005)
Platforms: Windows
What to Check
Identify if Bypass User Account Control technique is applicable to target environment
Check Windows systems for indicators of Bypass User Account Control
Verify mitigations are bypassed or absent (4 known mitigations)
Bypasses User Account Control using the Windows 10 Features on Demand Helper (fodhelper.exe). Requires Windows 10.
Upon execution, "The operation completed successfully." will be shown twice and command prompt will be opened.
Atomic Test 4: Bypass UAC using Fodhelper - PowerShell
PowerShell code to bypass User Account Control using the Windows 10 Features on Demand Helper (fodhelper.exe). Requires Windows 10.
Upon execution command prompt will be opened.
If Atomic Red Team tests are not applicable, manually verify the technique by:
Identify Attack Surface: Determine if the target environment is susceptible to Bypass User Account Control by examining the target platforms (Windows).
Assess Existing Defenses: Review whether mitigations for T1548.002 are in place. If defenses are absent or misconfigured, this technique may be exploitable.
Execute Test: Use tools and methods described in the MITRE ATT&CK page and external references below.
Remediation Guide
M1051 Update Software
Consider updating Windows to the latest version and patch level to utilize the latest protective measures against UAC bypass.
M1047 Audit
Check for common UAC bypass weaknesses on Windows systems to be aware of the risk posture and address issues where appropriate.
M1052 User Account Control
Although UAC bypass techniques exist, it is still prudent to use the highest enforcement level for UAC when possible and mitigate bypass opportunities that exist with techniques such as DLL.
M1026 Privileged Account Management
Remove users from the local administrator group on systems.
Detection
Detection Strategy for T1548.002 – Bypass User Account Control (UAC)