Skip to content
WETNav
DefenderAntivirus

Event ID 5013: Tamper protection blocked a change

Written when Defender tamper protection blocks an attempt to change its settings. Evidence that something tried to weaken Defender and was stopped.

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.

Product NameAntimalware product
Product VersionVersion of the antimalware platform
Have one of these events? Paste it into the decoder

Analyst notes

  • 01A 5013 means a change to Defender was attempted and blocked by tamper protection; it is strong evidence of defense-evasion intent even though it failed.
  • 02Correlate the time with the process that attempted the change (4688/Sysmon 1) and with any 5007 changes that did succeed before tamper protection was in effect.

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=5013)]]" -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.

Common questions

What does Windows event ID 5013 mean?
Written when Defender tamper protection blocks an attempt to change its settings. Evidence that something tried to weaken Defender and was stopped. It is written to the Microsoft Defender Antivirus log (Microsoft-Windows-Windows Defender/Operational).
Is event 5013 logged by default?
Yes, a default Windows installation records it.
Where is event 5013 recorded?
In the Microsoft-Windows-Windows Defender/Operational channel on the any host.

Written when Defender tamper protection blocks an attempt to change its settings. Evidence that something tried to weaken Defender and was stopped. Key fields, logging requirements, ATT&CK mapping and ready-to-run queries.