Sigma rule: Firewall Disabled via Netsh.EXE

A detection rule from the SigmaHQ repository, shown as its author published it. Dataset version ref-48e4b26771ba, updated 2023-02-13T00:00:00.000Z.

Rule

Title
Firewall Disabled via Netsh.EXE
Status
test
Level
medium
Author
Fatih Sirin
Date
2019-11-01
Modified
2023-02-13
File
rules/windows/process_creation/proc_creation_win_netsh_fw_disable.yml
Commit
ccbb0369507f796db0b0ae6854c8a2be471b9d84

Detects netsh commands that turns off the Windows firewall

Log source

product
windows
category
process_creation

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 (as the rule lists them)

  • Legitimate administration activity

Tags

  • attack.defense-impairment
  • attack.t1686.003
  • attack.s0108

MITRE ATT&CK ids this rule names

References

Read on 2026-11-03T00:58:21.399Z under licence sigma-drl-1.1@d5f4c36a from https://github.com/SigmaHQ/sigma/blob/ccbb0369507f796db0b0ae6854c8a2be471b9d84/rules/windows/process_creation/proc_creation_win_netsh_fw_disable.yml

Sources and licences

  • SigmaHQ

    "Firewall Disabled via Netsh.EXE" by Fatih Sirin (SigmaHQ). Rule: https://github.com/SigmaHQ/sigma/blob/ccbb0369507f796db0b0ae6854c8a2be471b9d84/rules/windows/process_creation/proc_creation_win_netsh_fw_disable.yml.
    Licensed under the Detection Rule License (DRL) 1.1: https://github.com/SigmaHQ/Detection-Rule-License

    Detection Rule License (DRL) 1.1

Cite this page

Dragons Eye Ransomware Tracker, "Sigma rule: Firewall Disabled via Netsh.EXE",
entity page, dataset version ref-48e4b26771ba, updated 2023-02-13T00:00:00.000Z,
https://ransomware-tracker.com/detections/sigma/57c4bf16-227f-4394-8ec7-1b745ee061c3 (accessed 2026-11-03).
Underlying source: SigmaHQ rule 57c4bf16-227f-4394-8ec7-1b745ee061c3, commit ccbb0369507f796db0b0ae6854c8a2be471b9d84.

Pages change. The dataset version identifies the data, but no archive of old versions is kept, so this citation cannot be replayed later.