{"id":"cd5cfd80-aa5f-44c0-9c20-108c4ae12e3c","title":"New Firewall Rule Added Via Netsh.EXE","description":"Detects the addition of a new rule to the Windows firewall via netsh","author":"Markus Neis, Sander Wiebing","status":"test","level":"medium","date":"2019-01-29","modified":"2023-02-10","tags":["attack.defense-impairment","attack.t1686.003","attack.s0246"],"technique_ids":["T1686.003"],"logsource":{"category":"process_creation","product":"windows"},"falsepositives":["Legitimate administration activity","Software installations"],"references":["https://web.archive.org/web/20190508165435/https://www.operationblockbuster.com/wp-content/uploads/2016/02/Operation-Blockbuster-RAT-and-Staging-Report.pdf"],"source_path":"rules/windows/process_creation/proc_creation_win_netsh_fw_add_rule.yml","source_sha256":"2cd8d2467bb0558fe03d25d99561510a8b63148fb20e2439c7a4b5c39e507927","source_url":"https://github.com/anpa1200/sigma/blob/b249e9683190cffdcaf188ccbfb90bf4759844e1/rules/windows/process_creation/proc_creation_win_netsh_fw_add_rule.yml","license":"Detection Rule License 1.1","license_url":"https://github.com/SigmaHQ/Detection-Rule-License/blob/main/LICENSE.Detection.Rules.md","yaml":"title: New Firewall Rule Added Via Netsh.EXE\nid: cd5cfd80-aa5f-44c0-9c20-108c4ae12e3c\nstatus: test\ndescription: Detects the addition of a new rule to the Windows firewall via netsh\nreferences:\n    - https://web.archive.org/web/20190508165435/https://www.operationblockbuster.com/wp-content/uploads/2016/02/Operation-Blockbuster-RAT-and-Staging-Report.pdf\nauthor: Markus Neis, Sander Wiebing\ndate: 2019-01-29\nmodified: 2023-02-10\ntags:\n    - attack.defense-impairment\n    - attack.t1686.003\n    - attack.s0246\nlogsource:\n    category: process_creation\n    product: windows\ndetection:\n    selection_img:\n        - Image|endswith: '\\netsh.exe'\n        - OriginalFileName: 'netsh.exe'\n    selection_cli:\n        CommandLine|contains|all:\n            - ' firewall '\n            - ' add '\n    filter_optional_dropbox:\n        CommandLine|contains:\n            - 'advfirewall firewall add rule name=Dropbox dir=in action=allow \"program=?:\\Program Files (x86)\\Dropbox\\Client\\Dropbox.exe\" enable=yes profile=Any'\n            - 'advfirewall firewall add rule name=Dropbox dir=in action=allow \"program=?:\\Program Files\\Dropbox\\Client\\Dropbox.exe\" enable=yes profile=Any'\n    condition: all of selection_* and not 1 of filter_optional_*\nfalsepositives:\n    - Legitimate administration activity\n    - Software installations\nlevel: medium\n","validation":"yaml_parsed_not_backend_compiled_or_live_validated","techniques":[{"key":"enterprise/T1686.003","id":"T1686.003","name":"Windows Host Firewall","page":"techniques/enterprise/T1686.003/"}],"data_path":"data/detection-rules/cd5cfd80-aa5f-44c0-9c20-108c4ae12e3c.json","kind":"sigma"}
