Potential Privilege Escalation via RoguePlanet Windows Defender Exploit
Description
Identifies attempts to plant a rogue wermgr.exe binary that overwrites the legitimate Windows Error Reporting Manager by exploiting a race condition in Windows Defender custom scanning. The planted file is a ZIP archive (PK header) masquerading as a PE executable. Successful exploitation can result in arbitrary code execution as SYSTEM.
Query · eql
any where (
(event.category == "file" and event.action == "creation" and file.name : "wermgr.exe" and
file.Ext.header_bytes like "504b*" and file.path : ("?:\\Users\\*.exe", "?:\\Windows\\Temp\\*.exe")) or
(event.category == "process" and event.action == "start" and process.executable : "?:\\Windows\\System32\\wermgr.exe" and
user.id == "S-1-5-18" and process.args == "-upload" and
process.parent.executable : "?:\\Windows\\System32\\svchost.exe" and
(process.Ext.relative_file_creation_time <= 10000 or process.Ext.relative_file_name_modify_time <= 10000) and
not (process.code_signature.status in ("trusted", "errorExpired") and
process.code_signature.subject_name : ("Microsoft Windows", "Microsoft Corporation", "Microsoft Windows Publisher")))
)