Detectionmediumtest

Firewall Disabled via Netsh.EXE

Detects netsh commands that turns off the Windows firewall

Open in Detection LabConvert ruleBuild Package
Fatih SirinCreated 2019-11-01Updated 2023-02-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
2019-11-01
Modified
2023-02-13
Path
rules/windows/process_creation/proc_creation_win_netsh_fw_disable.yml
Raw Tags
attack.defense-impairmentattack.t1686.003attack.s0108
View on GitHub