Skip to content
Threat Feed
high advisory

Detection of Unauthorized Windows Defender Configuration Changes

Adversaries frequently disable or weaken Windows Defender security features to facilitate malware persistence and execution without detection.

Attackers often target Windows Defender Antivirus configuration settings to impair host-based security controls. By modifying specific registry keys, adversaries can disable real-time protection, bypass signature-based detection, or exclude malicious directories from scans. This activity is commonly observed during the defense evasion stage of an attack, often performed via PowerShell scripts or direct registry modifications. Monitoring Windows Defender operational logs is critical for defenders to identify unauthorized modifications that deviate from baseline organizational policy. Defenders should focus on Event ID 5007 within the Windows Defender service logs, which records changes to antimalware platform configurations, to identify potential tampering attempts.

Impact

Successful modification of Windows Defender configuration leads to the disabling of essential security features, leaving the host vulnerable to malware execution, credential theft, and persistent unauthorized access. This allows adversaries to maintain a foothold on the target system while evading automated security analysis and behavioral detection mechanisms.

Recommendation

  • Deploy the provided Sigma rule to monitor Windows Defender event logs for configuration tampering.
  • Enable Sysmon or Windows Event Log collection for Event ID 5007 on all critical endpoints.
  • Investigate any alerts generated by this rule, as legitimate administrative changes should be documented and authorized through a change management process.

Immediate actions

Deploy Sigma detection rule to SIEM

Detection Engineering 72h

Threat Hunt

Search for historic Event ID 5007 logs indicating unauthorized tampering

T1685 medium high confidence hunt now

Data: Windows Defender Operational Logs

Mitigations

Enforce Windows Defender settings via Intune or GPO to prevent local tampering

medium IT Operations

Defense Evasion (T1685)

Detection coverage 1

Detect Windows Defender Configuration Tampering

high

Detects unauthorized modifications to Windows Defender settings such as disabling real-time protection or scanning features.

sigma tactics: defense-impairment sources: process_creation, windows

Detection queries are available on the platform. Get full rules →