Detectionmediumtest

Suspicious Windows Defender Folder Exclusion Added Via Reg.EXE

Detects the usage of "reg.exe" to add Defender folder exclusions. Qbot has been seen using this technique to add exclusions for folders within AppData and ProgramData.

Convert In Phoenix Studio

Open this Sigma rule in the converter with the YAML preloaded and ready for backend selection.

Launch
François HubautCreated Sun Feb 13Updated Sat Feb 0448917adc-a28e-4f5d-b729-11e75da8941fwindows
Log Source
WindowsProcess Creation
ProductWindows← raw: windows
CategoryProcess Creation← raw: process_creation

Events generated when a new process is spawned on the system. Covers command-line arguments, parent/child relationships, and process metadata.

Detection Logic
Detection Logic1 selector
detection:
    selection:
        Image|endswith: '\reg.exe'
        CommandLine|contains:
            - 'SOFTWARE\Microsoft\Windows Defender\Exclusions\Paths'
            - 'SOFTWARE\Microsoft\Microsoft Antimalware\Exclusions\Paths'
        CommandLine|contains|all:
            - 'ADD '
            - '/t '
            - 'REG_DWORD '
            - '/v '
            - '/d '
            - '0'
    condition: selection
False Positives

Legitimate use

Rule Metadata
Rule ID
48917adc-a28e-4f5d-b729-11e75da8941f
Status
test
Level
medium
Type
Detection
Created
Sun Feb 13
Modified
Sat Feb 04
Path
rules/windows/process_creation/proc_creation_win_reg_defender_exclusion.yml
Raw Tags
attack.defense-evasionattack.t1562.001
View on GitHub