Windows Defender Exclusions Added via Windefend (Event ID 5007)

Alerts on Windows Defender exclusion additions based on windefend Event ID 5007 configuration change events.

FreeReviewedSigma · Medium · v2
Product
windows
Service
windefend
Author
Christian Burkard (Nextron Systems) (SigmaHQ), DRL 1.1
Published
2021-07-06
Updated
2026-07-31
title: Windows Defender Exclusions Added via Windefend (Event ID 5007)
id: fe73f424-19eb-4243-9e7d-9e6adf16c553
status: stable
description: This rule flags Windows Defender configuration changes where the new value includes the Exclusions path under Microsoft\Windows Defender\Exclusions. Attackers may use Defender exclusions to reduce detection coverage for malicious files, folders, or processes. The detection relies on windefend telemetry for Event ID 5007 and matches the content of the reported NewValue.
references:
  - https://twitter.com/_nullbind/status/1204923340810543109
  - https://github.com/SigmaHQ/sigma/blob/master/rules/windows/builtin/windefend/win_defender_config_change_exclusion_added.yml
author: Christian Burkard (Nextron Systems), Huntrule Team
date: 2021-07-06
modified: 2022-12-06
tags:
  - attack.defense-impairment
  - attack.t1685
logsource:
  product: windows
  service: windefend
detection:
  selection:
    EventID: 5007
    NewValue|contains: \Microsoft\Windows Defender\Exclusions
  condition: selection
falsepositives:
  - Administrator actions
level: medium
license: DRL-1.1
related:
  - id: 1321dc4e-a1fe-481d-a016-52c45f0c8b4f
    type: derived