Detectionmediumtest

Firewall Rule Update Via Netsh.EXE

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

Convert In Phoenix Studio

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

Launch
X__Junior (Nextron Systems)Created Tue Jul 18a70dcb37-3bee-453a-99df-d0c683151be6windows
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 Logic2 selectors
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

Legitimate administration activity

Software installations and removal

MITRE ATT&CK
Rule Metadata
Rule ID
a70dcb37-3bee-453a-99df-d0c683151be6
Status
test
Level
medium
Type
Detection
Created
Tue Jul 18
Path
rules/windows/process_creation/proc_creation_win_netsh_fw_set_rule.yml
Raw Tags
attack.defense-evasion
View on GitHub