Event ID 5012: Scanning for viruses is disabled
Written when Defender's virus scanning is turned off.
- 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
- 01Like 5010, this marks a protection component being disabled; together they describe how much of Defender was switched off and when.
- 02Review alongside 5001/5007 and the Defender service state (7036) to time the gap in 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=5012)]]" -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 5012 mean?
- Written when Defender's virus scanning is turned off. It is written to the Microsoft Defender Antivirus log (Microsoft-Windows-Windows Defender/Operational).
- Is event 5012 logged by default?
- Yes, a default Windows installation records it.
- Where is event 5012 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 Defender's virus scanning is turned off. Key fields, logging requirements, ATT&CK mapping and ready-to-run queries.