Detection rules › Sigma

Windows Defender Exclusions Added - PowerShell

Severity
medium
Author
Tim Rauch, Elastic (idea)
Source
upstream

Detects modifications to the Windows Defender configuration settings using PowerShell to add exclusions

MITRE ATT&CK coverage

TacticTechniques
ExecutionT1059 Command and Scripting Interpreter
Defense EvasionT1562 Impair Defenses

Event coverage

ProviderEvent IDTitle
PowerShell4104Creating Scriptblock text (MessageNumber of MessageTotal).

Stages and Predicates

Stage 1: all of selection_args_exc

or:
ScriptBlockText|contains: ' -ExclusionExtension '
ScriptBlockText|contains: ' -ExclusionIpAddress '
ScriptBlockText|contains: ' -ExclusionPath '
ScriptBlockText|contains: ' -ExclusionProcess '

Stage 2: all of selection_args_pref

or:
ScriptBlockText|contains: 'Add-MpPreference '
ScriptBlockText|contains: 'Set-MpPreference '

Indicators

Each row is a field, operator, and value that the rule matches. The corpus column counts how many other rules in the catalog look for the same combination: high numbers point to widely-used, community-vetted indicators. Blank or 1 shows that the indicator is specific to this rule.

FieldKindValues
ScriptBlockTextmatch
  • -ExclusionExtension
  • -ExclusionIpAddress
  • -ExclusionPath
  • -ExclusionProcess
  • Add-MpPreference
  • Set-MpPreference

Neighbors

Broader alternatives (more inclusive than this rule)

These rules match a superset of what this rule catches. They cover the same events plus more. Use them if you want wider coverage and can absorb more false positives.