Event ID 5004: Real-time protection configuration changed
Written when a real-time protection feature's configuration changes (for example a monitoring feature is toggled).
- Channel
- Microsoft-Windows-Windows Defender/Operational
- Logged by default
- Yes
- Written on
- Any host
- Volume
- Low
- Provider
- Microsoft-Windows-Windows Defender
- Needs a SACL
- No
Key fields
Exact XML field names, as they appear in <Data Name="…"> and in SIEM field extractions.
| Field | What it tells you |
|---|---|
| Product Name | Antimalware product |
| Product Version | Version of the antimalware platform |
Analyst notes
- 015004 indicates a real-time feature setting changed; pair with 5007 for the specific value changed and with 5001 if protection was fully disabled.
- 02Benign tuning and policy pushes also produce this; focus on changes that weaken protection.
Pull this event
Retrieval queries for a live host, a collected .evtx file and common SIEMs. Filter further on the key fields above.
Get-WinEvent -LogName 'Microsoft-Windows-Windows Defender/Operational' -FilterXPath "*[System[(EventID=5004)]]" -MaxEvents 50 |
Select-Object TimeCreated, Id, MachineName, Message-FilterXPath supports exact matches only. For substring matching, filter in Where-Object.
ATT&CK mapping
Techniques this event can help detect. Most of these depend on specific field values; the event alone does not mean the technique happened.
Related events
Common questions
- What does Windows event ID 5004 mean?
- Written when a real-time protection feature's configuration changes (for example a monitoring feature is toggled). It is written to the Microsoft Defender Antivirus log (Microsoft-Windows-Windows Defender/Operational).
- Is event 5004 logged by default?
- Yes, a default Windows installation records it.
- Where is event 5004 recorded?
- In the Microsoft-Windows-Windows Defender/Operational channel on the any host.
Decode a real event
Paste the XML and every value gets explained. Nothing leaves your browser.
Open decoderWritten when a real-time protection feature's configuration changes (for example a monitoring feature is toggled). Key fields, logging requirements, ATT&CK mapping and ready-to-run queries.