New Firewall Rule Added Via Netsh.EXE
Detects the addition of a new rule to the Windows firewall via netsh
Sigma rule (View on GitHub)
1title: New Firewall Rule Added Via Netsh.EXE
2id: cd5cfd80-aa5f-44c0-9c20-108c4ae12e3c
3status: test
4description: Detects the addition of a new rule to the Windows firewall via netsh
5references:
6 - https://web.archive.org/web/20190508165435/https://www.operationblockbuster.com/wp-content/uploads/2016/02/Operation-Blockbuster-RAT-and-Staging-Report.pdf
7author: Markus Neis, Sander Wiebing
8date: 2019-01-29
9modified: 2023-02-10
10tags:
11 - attack.defense-evasion
12 - attack.t1562.004
13 - attack.s0246
14logsource:
15 category: process_creation
16 product: windows
17detection:
18 selection_img:
19 - Image|endswith: '\netsh.exe'
20 - OriginalFileName: 'netsh.exe'
21 selection_cli:
22 CommandLine|contains|all:
23 - ' firewall '
24 - ' add '
25 filter_optional_dropbox:
26 CommandLine|contains:
27 - 'advfirewall firewall add rule name=Dropbox dir=in action=allow "program=?:\Program Files (x86)\Dropbox\Client\Dropbox.exe" enable=yes profile=Any'
28 - 'advfirewall firewall add rule name=Dropbox dir=in action=allow "program=?:\Program Files\Dropbox\Client\Dropbox.exe" enable=yes profile=Any'
29 condition: all of selection_* and not 1 of filter_optional_*
30falsepositives:
31 - Legitimate administration activity
32 - Software installations
33level: medium
References
Related rules
- Azure Firewall Modified or Deleted
- Azure Firewall Rule Collection Modified or Deleted
- Bpfdoor TCP Ports Redirect
- Disable Microsoft Defender Firewall via Registry
- Disable System Firewall