Detectionmediumtest
Firewall Rule Deleted Via Netsh.EXE
Detects the removal of a port or application rule in the Windows Firewall configuration using netsh
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 Logic4 selectors
detection:
selection_img:
- Image|endswith: '\netsh.exe'
- OriginalFileName: 'netsh.exe'
selection_cli:
CommandLine|contains|all:
- 'firewall'
- 'delete '
filter_optional_dropbox:
ParentImage|endswith: '\Dropbox.exe'
CommandLine|contains: 'name=Dropbox'
filter_optional_avast:
ParentImage|endswith: '\instup.exe'
CommandLine|contains: 'advfirewall firewall delete rule name="Avast Antivirus Admin Client"'
condition: all of selection_* and not 1 of filter_optional_*False Positives
Legitimate administration activity
Software installations and removal
References
MITRE ATT&CK
Tactics
Sub-techniques
Rule Metadata
Rule ID
1a5fefe6-734f-452e-a07d-fc1c35bce4b2
Status
test
Level
medium
Type
Detection
Created
2022-08-14
Modified
2025-10-07
Author
Path
rules/windows/process_creation/proc_creation_win_netsh_fw_delete_rule.yml
Raw Tags
attack.defense-impairmentattack.t1686.003