UAC Bypass via DiskCleanup Scheduled Task Hijack
Description
Identifies User Account Control (UAC) bypass attempts via hijacking the DiskCleanup scheduled task. Attackers bypass UAC to stealthily execute code with elevated permissions.
Query · eql
process where event.action == "start" and
process.Ext.token.integrity_level_name == "high" and process.hash.sha256 != null and
process.args : "/autoclean" and process.args : "/d" and
not process.executable : ("?:\\Windows\\System32\\cleanmgr.exe",
"?:\\Windows\\SysWOW64\\cleanmgr.exe",
"?:\\Windows\\System32\\taskhostw.exe",
/* Issue #359 */
"?:\\Windows\\System32\\taskhost.exe",
"?:\\Windows\\SysWOW64\\taskhost.exe",
"\\Device\\HarddiskVolume*\\Windows\\Sys*\\cleanmgr.exe",
"\\Device\\HarddiskVolume*\\Windows\\Sys*\\taskhostw.exe",
"\\Device\\HarddiskVolume*\\Windows\\Sys*\\taskhost.exe")