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. (Citation: TechNet How UAC Works)
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. (Citation: TechNet Inside UAC) (Citation: MSDN COM Elevation) 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.(Citation: Davidson Windows)
Many methods have been discovered to bypass UAC. The Github readme page for UACME contains an extensive list of methods(Citation: Github UACMe) 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:
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.(Citation: SANS UAC Bypass)
View in MITRE ATT&CK®Capability ID | Capability Description | Mapping Type | ATT&CK ID | ATT&CK Name |
---|---|---|---|---|
AC-2 | Account Management | Protects | T1548.002 | Bypass User Account Control |
AC-3 | Access Enforcement | Protects | T1548.002 | Bypass User Account Control |
AC-5 | Separation of Duties | Protects | T1548.002 | Bypass User Account Control |
AC-6 | Least Privilege | Protects | T1548.002 | Bypass User Account Control |
CA-8 | Penetration Testing | Protects | T1548.002 | Bypass User Account Control |
CM-2 | Baseline Configuration | Protects | T1548.002 | Bypass User Account Control |
CM-5 | Access Restrictions for Change | Protects | T1548.002 | Bypass User Account Control |
CM-6 | Configuration Settings | Protects | T1548.002 | Bypass User Account Control |
IA-2 | Identification and Authentication (organizational Users) | Protects | T1548.002 | Bypass User Account Control |
RA-5 | Vulnerability Monitoring and Scanning | Protects | T1548.002 | Bypass User Account Control |
SI-2 | Flaw Remediation | Protects | T1548.002 | Bypass User Account Control |
SI-4 | System Monitoring | Protects | T1548.002 | Bypass User Account Control |