Detectionmediumtest

Windows Defender Exclusions Added - PowerShell

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

Open in Detection LabConvert ruleBuild Package
Tim Rauch, Elastic SecurityCreated 2022-09-16Updated 2022-11-26c1344fa2-323b-4d2e-9176-84b4d4821c88windows
Log Source
WindowsPowerShell Script
ProductWindows← raw: windows
CategoryPowerShell Script← raw: ps_script

Definition

Requirements: Script Block Logging must be enabled

Detection Logic
Detection Logic2 selectors
detection:
    selection_args_exc:
        ScriptBlockText|contains:
            - ' -ExclusionPath '
            - ' -ExclusionExtension '
            - ' -ExclusionProcess '
            - ' -ExclusionIpAddress '
    selection_args_pref:
        ScriptBlockText|contains:
            - 'Add-MpPreference '
            - 'Set-MpPreference '
    condition: all of selection*
False Positives
Unknown

False positive likelihood has not been assessed. Additional context may be needed during triage.

Rule Metadata
Rule ID
c1344fa2-323b-4d2e-9176-84b4d4821c88
Status
test
Level
medium
Type
Detection
Created
2022-09-16
Modified
2022-11-26
Path
rules/windows/powershell/powershell_script/posh_ps_win_defender_exclusions_added.yml
Raw Tags
attack.defense-impairmentattack.t1685attack.executionattack.t1059
View on GitHub