diff --git a/rules/windows/privilege_escalation_uac_bypass_diskcleanup_hijack.toml b/rules/windows/privilege_escalation_uac_bypass_diskcleanup_hijack.toml new file mode 100644 index 000000000..4cb1ef4bb --- /dev/null +++ b/rules/windows/privilege_escalation_uac_bypass_diskcleanup_hijack.toml @@ -0,0 +1,42 @@ +[metadata] +creation_date = "2020/08/18" +ecs_version = ["1.6.0"] +maturity = "production" +updated_date = "2020/08/18" + +[rule] +author = ["Elastic"] +description = """ +Identifies User Account Control (UAC) bypass via hijacking DiskCleanup Scheduled Task. Attackers bypass UAC to +stealthily execute code with elevated permissions. +""" +index = ["winlogbeat-*", "logs-endpoint.events.*"] +language = "kuery" +license = "Elastic License" +name = "UAC Bypass via DiskCleanup Scheduled Task Hijack" +risk_score = 47 +rule_id = "1dcc51f6-ba26-49e7-9ef4-2655abb2361e" +severity = "medium" +tags = ["Elastic", "Windows"] +type = "query" + +query = ''' +event.category:process and event.type:(start or process_started) and + process.args:(/autoclean or /AUTOCLEAN) and + process.parent.name:svchost.exe and + not process.executable:("C:\Windows\System32\cleanmgr.exe" or "C:\Windows\SysWOW64\cleanmgr.exe") +''' + + +[[rule.threat]] +framework = "MITRE ATT&CK" +[[rule.threat.technique]] +id = "T1088" +name = "Bypass User Account Control" +reference = "https://attack.mitre.org/techniques/T1088/" + + +[rule.threat.tactic] +id = "TA0004" +name = "Privilege Escalation" +reference = "https://attack.mitre.org/tactics/TA0004/"