Detection rules › Elastic
UAC Bypass via Control Panel Execution Hijack
Identifies attempts to bypass User Account Control (UAC) via hijacking the default handler of the Backup and Restore control panel. Attackers bypass UAC to stealthily execute code with elevated permissions.
MITRE ATT&CK coverage
| Tactic | Techniques |
|---|---|
| Privilege Escalation |
Rule body
[rule]
description = """
Identifies attempts to bypass User Account Control (UAC) via hijacking the default handler of the Backup and Restore
control panel. Attackers bypass UAC to stealthily execute code with elevated permissions.
"""
id = "0545f127-b1ae-478a-a68a-84f477f765e2"
license = "Elastic License v2"
name = "UAC Bypass via Control Panel Execution Hijack"
os_list = ["windows"]
reference = ["https://github.com/hfiref0x/UACME"]
version = "1.0.33"
query = '''
sequence with maxspan=1m
[registry where
registry.hive == "HKEY_USERS" and
registry.key : "S-1-5-21*_Classes\\Folder\\Shell\\Open\\Command*"]
[process where event.action == "start" and process.pe.original_file_name : "sdclt.exe"]
[process where event.action == "start" and
process.Ext.token.integrity_level_name == "high" and
process.parent.name : "control.exe" and process.parent.command_line : "*Microsoft.BackupAndRestoreCenter*"]
'''
min_endpoint_version = "7.15.0"
[[actions]]
action = "kill_process"
field = "process.entity_id"
state = 2
[[optional_actions]]
action = "rollback"
field = "process.entity_id"
state = 2
[[threat]]
framework = "MITRE ATT&CK"
[[threat.technique]]
id = "T1548"
name = "Abuse Elevation Control Mechanism"
reference = "https://attack.mitre.org/techniques/T1548/"
[[threat.technique.subtechnique]]
id = "T1548.002"
name = "Bypass User Account Control"
reference = "https://attack.mitre.org/techniques/T1548/002/"
[threat.tactic]
id = "TA0004"
name = "Privilege Escalation"
reference = "https://attack.mitre.org/tactics/TA0004/"
[internal]
min_endpoint_version = "7.15.0"
Stages and Predicates
Stage 1: registry
[registry where
registry.hive == "HKEY_USERS" and
registry.key : "S-1-5-21*_Classes\\Folder\\Shell\\Open\\Command*"]
Stage 2: process
[process where event.action == "start" and process.pe.original_file_name : "sdclt.exe"]
Stage 3: process
[process where event.action == "start" and
process.Ext.token.integrity_level_name == "high" and
process.parent.name : "control.exe" and process.parent.command_line : "*Microsoft.BackupAndRestoreCenter*"]
Indicators
These rows show field, operator, and value matches.
| Field | Kind | Values | Search |
|---|---|---|---|
event.action | eq |
| field:"EventType" kind:eq value:"start" |
process.Ext.token.integrity_level_name | eq |
| field:"process.Ext.token.integrity_level_name" kind:eq value:"high" |
process.parent.command_line | wildcard |
| field:"ParentCommandLine" kind:wildcard value:"*Microsoft.BackupAndRestoreCenter*" |
process.parent.name | wildcard |
| field:"parent_process_name" kind:wildcard value:"control.exe" |
process.pe.original_file_name | wildcard |
| field:"OriginalFileName" kind:wildcard value:"sdclt.exe" |
registry.hive | eq |
| field:"registry.hive" kind:eq value:"HKEY_USERS" |
registry.key | wildcard |
| field:"TargetObject" kind:wildcard value:"S-1-5-21*_Classes\Folder\Shell\Open\Command*" |