Detectionmediumtest

Firewall Disabled via Netsh.EXE

Detects netsh commands that turns off the Windows firewall

Convert In Phoenix Studio

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

Launch
Fatih SirinCreated Fri Nov 01Updated Mon Feb 1357c4bf16-227f-4394-8ec7-1b745ee061c3windows
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 Logic3 selectors
detection:
    selection_img:
        - Image|endswith: '\netsh.exe'
        - OriginalFileName: 'netsh.exe'
    selection_cli_1:
        # Example: netsh firewall set opmode disable
        CommandLine|contains|all:
            - 'firewall'
            - 'set'
            - 'opmode'
            - 'disable'
    selection_cli_2:
        # Example: netsh advfirewall set currentprofile state off
        CommandLine|contains|all:
            - 'advfirewall'
            - 'set'
            - 'state'
            - 'off'
    condition: selection_img and 1 of selection_cli_*
False Positives

Legitimate administration activity

Rule Metadata
Rule ID
57c4bf16-227f-4394-8ec7-1b745ee061c3
Status
test
Level
medium
Type
Detection
Created
Fri Nov 01
Modified
Mon Feb 13
Path
rules/windows/process_creation/proc_creation_win_netsh_fw_disable.yml
Raw Tags
attack.defense-evasionattack.t1562.004attack.s0108
View on GitHub