Event ID 5007: Defender configuration changed
Written when a Defender setting changes, recording the old and new values. The key event for spotting exclusions added or features weakened.
- 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 |
|---|---|
| Old Value | Previous setting, shown as the registry path and value before the change |
| New Value | New setting, shown as the registry path and value after the change. Watch for new entries under ...\Exclusions\Paths, ...\Exclusions\Extensions or ...\Exclusions\Processes |
| Product Name | Antimalware product |
Analyst notes
- 01An exclusion added for a path, extension or process (visible in New Value) is one of the most common pre-attack defense-evasion steps; it lets the attacker stage tools where Defender will not scan.
- 02A New Value that disables tamper protection, cloud protection, or a scanning feature is high-signal.
- 03Compare the Old/New values against approved baselines; some management tools legitimately write these keys.
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=5007)]]" -MaxEvents 50 |
Select-Object TimeCreated, Id, MachineName, Message-FilterXPath supports exact matches only. For substring matching, filter in Where-Object.
Where it shows up
Investigations, attack signals and lateral movement techniques that rely on this event.
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 5007 mean?
- Written when a Defender setting changes, recording the old and new values. The key event for spotting exclusions added or features weakened. It is written to the Microsoft Defender Antivirus log (Microsoft-Windows-Windows Defender/Operational).
- Is event 5007 logged by default?
- Yes, a default Windows installation records it.
- Where is event 5007 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 Defender setting changes, recording the old and new values. The key event for spotting exclusions added or features weakened. Key fields, logging requirements, ATT&CK mapping and ready-to-run queries.