Real-time protection configuration for Microsoft Defender Antivirus was changed or disabled.
A classic pre-attack blinding step. Adversaries run Set-MpPreference -DisableRealtimeMonitoring $true, tamper with registry keys under Policies\Microsoft\Windows Defender, or stop the service. Any real-time protection disable outside a controlled maintenance window is high signal.
Alert on every real-time protection disable. Correlate with 4688 (Set-MpPreference / powershell), 4657 registry changes under Windows Defender keys, and 7036/7040 service state changes for WinDefend. Allow-list approved maintenance jobs only.
FeatureNew ValueOld Value | Tactic | Technique |
|---|---|
| Defense Evasion | Disable or Modify Tools (T1562.001) |
Starting points — adapt the log source, projected fields and thresholds for your environment.
title: Defender Real-Time Protection Disabled
status: experimental
logsource:
product: windows
service: windefend
detection:
sel:
EventID: 5001
condition: sel
level: high
Event
| where EventLog == "Microsoft-Windows-Windows Defender/Operational" and EventID == 5001 // Microsoft Defender real-time protection disabled
// EventData holds: Feature, New Value, Old Value
| project TimeGenerated, Computer, RenderedDescription
| sort by TimeGenerated desc
index=* sourcetype="WinEventLog:Microsoft-Windows-Windows Defender/Operational" EventCode=5001
| stats count earliest(_time) as first_seen latest(_time) as last_seen by ComputerName
| sort - count `# Microsoft Defender real-time protection disabled — add EventData fields: Feature, New Value, Old Value`
Microsoft Defender real-time protection disabled. Real-time protection configuration for Microsoft Defender Antivirus was changed or disabled.
Event 5001 is written to the Microsoft-Windows-Windows Defender/Operational channel by Microsoft-Windows-Windows Defender. On by default where Microsoft Defender Antivirus is active; ensure the Operational channel is collected.
Event 5001 is associated with: Disable or Modify Tools (T1562.001).
Alert on every real-time protection disable. Correlate with 4688 (Set-MpPreference / powershell), 4657 registry changes under Windows Defender keys, and 7036/7040 service state changes for WinDefend. Allow-list approved maintenance jobs only.