Skip to content
Threat Feed
medium advisory

Monitoring Windows Defender Configuration Changes for Exclusion Additions

Detection of administrative or malicious modifications to Windows Defender settings that add file or path exclusions to the antimalware scanning engine.

Adversaries frequently attempt to impair security software by modifying configuration settings to bypass real-time monitoring and detection capabilities. A common technique involves adding exclusion paths to Windows Defender, which prevents the antivirus engine from scanning specific files, folders, or processes. By defining these exclusions, an attacker can ensure that malicious binaries, scripts, or payloads remain undetected by the resident security software during execution or persistence. This activity is logged by the Windows Defender service upon any change to the antimalware platform configuration. Monitoring for these changes is essential to identify unauthorized modifications that may precede a larger compromise or indicate an active attempt to evade security controls.

Impact

Successful modification of Windows Defender exclusions allows an attacker to stage and execute malicious payloads without interference from endpoint protection, effectively neutralizing one of the primary defense layers on a Windows host.

Recommendation

  • Deploy the Sigma rule below to monitor for Event ID 5007 logs, which track changes to the Windows Defender configuration.
  • Establish a baseline of authorized administrative activity to reduce noise, as IT management tools may periodically update exclusion policies.
  • Audit existing exclusion lists on critical infrastructure to ensure only approved, non-malicious paths are present.

Immediate actions

Deploy Sigma rule to SIEM

Detection Engineering 72h

Mitigations

Review and restrict permissions to modify Windows Defender registry keys

medium_term IT Operations

Defender Exclusion manipulation

Detection coverage 1

Detect Windows Defender Exclusion Addition

medium

Detects the modification of Windows Defender configuration resulting in the addition of an exclusion path via Event ID 5007.

sigma tactics: defense-impairment sources: process_creation, windows

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