Sigma rule: Firewall Rule Update Via Netsh.EXE

A detection rule from the SigmaHQ repository, shown as its author published it. Dataset version ref-0d1cedb55c0b, updated 2023-07-18T00:00:00.000Z.

Rule

Title
Firewall Rule Update Via Netsh.EXE
Status
test
Level
medium
Author
X__Junior (Nextron Systems)
Date
2023-07-18
File
rules/windows/process_creation/proc_creation_win_netsh_fw_set_rule.yml
Commit
ccbb0369507f796db0b0ae6854c8a2be471b9d84

Detects execution of netsh with the "advfirewall" and the "set" option in order to set new values for properties of a existing rule

Log source

product
windows
category
process_creation

Detection

selection_img:
    - Image|endswith: '\netsh.exe'
    - OriginalFileName: 'netsh.exe'
selection_cli:
    CommandLine|contains|all:
        # Example 1: netsh advfirewall firewall set rule "group=\"Network Discovery\" " new enable=Yes"
        # Example 2: netsh advfirewall firewall set rule "group=\"File and Printer Sharing\" " new enable=Yes"
        - ' firewall '
        - ' set '
condition: all of selection_*

False positives (as the rule lists them)

  • Legitimate administration activity
  • Software installations and removal

Tags

  • attack.defense-impairment

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_set_rule.yml

Sources and licences

  • SigmaHQ

    "Firewall Rule Update Via Netsh.EXE" by X__Junior (Nextron Systems) (SigmaHQ). Rule: https://github.com/SigmaHQ/sigma/blob/ccbb0369507f796db0b0ae6854c8a2be471b9d84/rules/windows/process_creation/proc_creation_win_netsh_fw_set_rule.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 Rule Update Via Netsh.EXE",
entity page, dataset version ref-0d1cedb55c0b, updated 2023-07-18T00:00:00.000Z,
https://ransomware-tracker.com/detections/sigma/a70dcb37-3bee-453a-99df-d0c683151be6 (accessed 2026-11-03).
Underlying source: SigmaHQ rule a70dcb37-3bee-453a-99df-d0c683151be6, 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.