Detection rules › Sigma
Suspicious Program Location Whitelisted In Firewall Via Netsh.EXE
Detects Netsh command execution that whitelists a program located in a suspicious location in the Windows Firewall
MITRE ATT&CK coverage
| Tactic | Techniques |
|---|---|
| Defense Evasion | T1562.004 Impair Defenses: Disable or Modify System Firewall |
Event coverage
| Provider | Event ID | Title |
|---|---|---|
| Sysmon | 1 | Process creation |
Stages and Predicates
Stage 1: all of selection_img
or:
Image|endswith: '\netsh.exe'
OriginalFileName: netsh.exe
Stage 2: all of selection_cli
or:
CommandLine|contains: 'action=allow'
CommandLine|contains: add
CommandLine|contains: advfirewall
CommandLine|contains: firewall
CommandLine|contains: 'program='
CommandLine|contains: rule
CommandLine|contains: add
CommandLine|contains: allowedprogram
CommandLine|contains: firewall
Stage 3: all of selection_paths
or:
CommandLine|contains: '%Public%\'
CommandLine|contains: '%TEMP%'
CommandLine|contains: '%TMP%'
CommandLine|contains: ':\$Recycle.bin\'
CommandLine|contains: ':\RECYCLER.BIN\'
CommandLine|contains: ':\RECYCLERS.BIN\'
CommandLine|contains: ':\SystemVolumeInformation\'
CommandLine|contains: ':\Temp\'
CommandLine|contains: ':\Users\Default\'
CommandLine|contains: ':\Users\Desktop\'
CommandLine|contains: ':\Users\Public\'
CommandLine|contains: ':\Windows\Tasks\'
CommandLine|contains: ':\Windows\Temp\'
CommandLine|contains: ':\Windows\addins\'
CommandLine|contains: ':\Windows\cursors\'
CommandLine|contains: ':\Windows\debug\'
CommandLine|contains: ':\Windows\drivers\'
CommandLine|contains: ':\Windows\fonts\'
CommandLine|contains: ':\Windows\help\'
CommandLine|contains: ':\Windows\system32\tasks\'
CommandLine|contains: '\Downloads\'
CommandLine|contains: '\Local Settings\Temporary Internet Files\'
CommandLine|contains: '\Temporary Internet Files\Content.Outlook\'
Indicators
Each row is a field, operator, and value that the rule matches. The corpus column counts how many other rules in the catalog look for the same combination: high numbers point to widely-used, community-vetted indicators. Blank or 1 shows that the indicator is specific to this rule.
| Field | Kind | Values |
|---|---|---|
CommandLine | match |
|
Image | ends_with |
|
OriginalFileName | eq |
|