UAC Bypass Using Disk Cleanup

Detects the pattern of UAC Bypass using scheduled tasks and variable expansion of cleanmgr.exe (UACMe 34)

Sigma rule (View on GitHub)

 1title: UAC Bypass Using Disk Cleanup
 2id: b697e69c-746f-4a86-9f59-7bfff8eab881
 3status: test
 4description: Detects the pattern of UAC Bypass using scheduled tasks and variable expansion of cleanmgr.exe (UACMe 34)
 5references:
 6    - https://github.com/hfiref0x/UACME
 7author: Christian Burkard (Nextron Systems)
 8date: 2021-08-30
 9modified: 2024-12-01
10tags:
11    - attack.privilege-escalation
12    - attack.t1548.002
13logsource:
14    category: process_creation
15    product: windows
16detection:
17    selection:
18        CommandLine|endswith: '"\system32\cleanmgr.exe /autoclean /d C:'
19        ParentCommandLine: 'C:\Windows\system32\svchost.exe -k netsvcs -p -s Schedule'
20        IntegrityLevel:
21            - 'High'
22            - 'System'
23            - 'S-1-16-16384' # System
24            - 'S-1-16-12288' # High
25    condition: selection
26falsepositives:
27    - Unknown
28level: high

References

Related rules

to-top