Suspicious Critical System Files Modification
Description
Identifies attempts to delete or modify critical files used during the boot process to prevent the system from booting. This may indicate a destructive attack behavior.
Query · eql
file where process.pid != 4 and process.executable != null and
(
(event.action in ("deletion", "overwrite") and
file.path : ("C:\\Windows\\System32\\winload.exe",
"C:\\Windows\\System32\\winload.efi",
"C:\\Windows\\System32\\ntoskrnl.exe",
"C:\\Windows\\Boot\\PCAT\\bootmgr",
"C:\\Windows\\System32\\Boot\\winload.efi",
"C:\\Windows\\System32\\Boot\\winload.exe",
"C:\\Windows\\WinSxS\\amd64_microsoft-windows-os-kernel_*\\ntoskrnl.exe")) or
(event.action == "rename" and
file.Ext.original.path :
("C:\\Windows\\System32\\winload.exe",
"C:\\Windows\\System32\\winload.efi",
"C:\\Windows\\System32\\ntoskrnl.exe",
"C:\\Windows\\Boot\\PCAT\\bootmgr",
"C:\\Windows\\System32\\Boot\\winload.efi",
"C:\\Windows\\System32\\Boot\\winload.exe",
"C:\\Windows\\WinSxS\\amd64_microsoft-windows-os-kernel_*\\ntoskrnl.exe"))
) and not process.executable :
("C:\\Windows\\System32\\poqexec.exe",
"C:\\Windows\\System32\\wbengine.exe",
"C:\\Windows\\WinSxS\\*\\TiWorker.exe")