endpoint(opens in a new tab or window)
registry where host.os.type == "windows" and event.type == "change" and
(
(
registry.path: (
"HKLM\\SOFTWARE\\Policies\\Microsoft\\Windows Defender\\DisableAntiSpyware",
"\\REGISTRY\\MACHINE\\SOFTWARE\\Policies\\Microsoft\\Windows Defender\\DisableAntiSpyware"
) and
registry.data.strings: ("1", "0x00000001")
) or
(
registry.path: (
"HKLM\\System\\*ControlSet*\\Services\\WinDefend\\Start",
"\\REGISTRY\\MACHINE\\System\\*ControlSet*\\Services\\WinDefend\\Start"
) and
registry.data.strings in ("3", "4", "0x00000003", "0x00000004")
)
) and
not
(
process.executable : (
"?:\\WINDOWS\\system32\\services.exe",
"?:\\Windows\\System32\\svchost.exe",
"?:\\Program Files (x86)\\Trend Micro\\Security Agent\\NTRmv.exe"
) and user.id : "S-1-5-18"
)
Install detection rules in Elastic Security
Detect Windows Defender Disabled via Registry Modification in the Elastic Security detection engine by installing this rule into your Elastic Stack.
To setup this rule, check out the installation guide for Prebuilt Security Detection Rules(opens in a new tab or window).