Windows windefend alerts on suspicious Windows Defender configuration changes (Disable* and SpyNet reporting)
Alerts on windefend Event 5007 when Defender configuration changes set features like anti-spyware, scanning, or SpyNet reporting to disabled values.
- Product
- windows
- Service
- windefend
- Author
- Nasreddine Bencherchali (Nextron Systems) (SigmaHQ), DRL 1.1
- Published
- 2022-12-06
- Updated
- 2026-07-31
ATT&CK techniques
Recon
Resource Dev
Initial Access
Execution
Persistence
Priv Esc
Defense Evasion
Cred Access
Discovery
Lateral Movement
Collection
C2
Exfiltration
Impact
What it detects
This rule flags windefend events where the Windows Defender antimalware platform configuration is changed to values associated with disabling protections or altering SpyNet reporting behavior. Attackers commonly reduce visibility or defensive controls by adjusting Defender settings, so these changes are high-signal for defense impairment attempts. It relies on windefend telemetry for configuration-change events (EventID 5007) and matches specific configured NewValue substrings indicating suspicious Defender features.
Reporting behind it
- learn.microsoft.comhttps://learn.microsoft.com/en-us/defender-endpoint/troubleshoot-microsoft-defender-antivirus?view=o365-worldwide
- bidouillesecurity.comhttps://bidouillesecurity.com/disable-windows-defender-in-powershell/#DisableAntiSpyware
- github.comhttps://github.com/SigmaHQ/sigma/blob/master/rules/windows/builtin/windefend/win_defender_suspicious_features_tampering.yml
Changelog
v2- v2Candidate ingested via manual entry.2026-07-31
- v1No changelog recorded for this version.2026-07-30
Detection content is published as a reviewed draft. Tune thresholds and exclusions against your own telemetry before enabling this rule for alerting.
title: Windows windefend alerts on suspicious Windows Defender configuration changes (Disable* and SpyNet reporting)
id: 4998591c-51b8-4af4-a36d-6726b22eb8a3
related:
- id: 1321dc4e-a1fe-481d-a016-52c45f0c8b4f
type: similar
- id: a3ab73f1-bd46-4319-8f06-4b20d0617886
type: similar
- id: 91903aba-1088-42ee-b680-d6d94fe002b0
type: similar
- id: 801bd44f-ceed-4eb6-887c-11544633c0aa
type: derived
status: stable
description: This rule flags windefend events where the Windows Defender antimalware platform configuration is changed to values associated with disabling protections or altering SpyNet reporting behavior. Attackers commonly reduce visibility or defensive controls by adjusting Defender settings, so these changes are high-signal for defense impairment attempts. It relies on windefend telemetry for configuration-change events (EventID 5007) and matches specific configured NewValue substrings indicating suspicious Defender features.
references:
- https://learn.microsoft.com/en-us/defender-endpoint/troubleshoot-microsoft-defender-antivirus?view=o365-worldwide
- https://bidouillesecurity.com/disable-windows-defender-in-powershell/#DisableAntiSpyware
- https://github.com/SigmaHQ/sigma/blob/master/rules/windows/builtin/windefend/win_defender_suspicious_features_tampering.yml
author: Nasreddine Bencherchali (Nextron Systems), Huntrule Team
date: 2022-12-06
modified: 2023-11-24
tags:
- attack.defense-impairment
- attack.t1685
logsource:
product: windows
service: windefend
detection:
selection:
EventID: 5007
NewValue|contains:
- "\\Windows Defender\\DisableAntiSpyware "
- "\\Windows Defender\\Scan\\DisableRemovableDriveScanning "
- "\\Windows Defender\\Scan\\DisableScanningMappedNetworkDrivesForFullScan "
- "\\Windows Defender\\SpyNet\\DisableBlockAtFirstSeen "
- "\\Real-Time Protection\\SpyNetReporting "
condition: selection
falsepositives:
- Administrator activity (must be investigated)
level: high
license: DRL-1.1