SeDebugPrivilege Enabled by an Unusual Microsoft Binary
Description
Identifies an unusual Microsoft signed process enabling the SeDebugPrivilege required to debug and adjust the memory of a process owned by another account. This could be the result of code injection or process hollowing.
Query · eql
any where event.category == "iam" and event.action == "token_right_adjusted" and
winlog.event_data.EnabledPrivilegeList == "SeDebugPrivilege" and user.id != "S-1-5-18" and winlog.event_data.EnabledPrivilegeList != "SeLockMemoryPrivilege" and
process.code_signature.subject_name in ("Microsoft Windows", "Microsoft Corporation", "Microsoft Windows Publisher") and
process.executable : "C:\\Windows\\*.exe" and endswith~(process.command_line, process.executable) and
not (process.executable : "C:\\Windows\\System32\\wbem\\WmiPrvSE.exe" and process.parent.executable : "C:\\Windows\\System32\\svchost.exe") and
not process.executable : "C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\powershell.exe" and
not (process.executable : "C:\\Windows\\explorer.exe" and process.parent.executable : "C:\\Windows\\System32\\userinit.exe") and
not (process.executable : "C:\\Windows\\System32\\ServerManager.exe" and process.parent.executable : "C:\\Windows\\System32\\ServerManagerLauncher.exe")