{"id":"57c4bf16-227f-4394-8ec7-1b745ee061c3","title":"Firewall Disabled via Netsh.EXE","description":"Detects netsh commands that turns off the Windows firewall","author":"Fatih Sirin","status":"test","level":"medium","date":"2019-11-01","modified":"2023-02-13","tags":["attack.defense-impairment","attack.t1686.003","attack.s0108"],"technique_ids":["T1686.003"],"logsource":{"category":"process_creation","product":"windows"},"falsepositives":["Legitimate administration activity"],"references":["https://www.winhelponline.com/blog/enable-and-disable-windows-firewall-quickly-using-command-line/","https://app.any.run/tasks/210244b9-0b6b-4a2c-83a3-04bd3175d017/","https://github.com/redcanaryco/atomic-red-team/blob/f339e7da7d05f6057fdfcdd3742bfcf365fee2a9/atomics/T1562.004/T1562.004.md#atomic-test-1---disable-microsoft-defender-firewall"],"source_path":"rules/windows/process_creation/proc_creation_win_netsh_fw_disable.yml","source_sha256":"e419e1827c805293b0d6291d6c7b019f4a05944e08e4ef167f068c930e25e2ef","source_url":"https://github.com/anpa1200/sigma/blob/b249e9683190cffdcaf188ccbfb90bf4759844e1/rules/windows/process_creation/proc_creation_win_netsh_fw_disable.yml","license":"Detection Rule License 1.1","license_url":"https://github.com/SigmaHQ/Detection-Rule-License/blob/main/LICENSE.Detection.Rules.md","yaml":"title: Firewall Disabled via Netsh.EXE\nid: 57c4bf16-227f-4394-8ec7-1b745ee061c3\nstatus: test\ndescription: Detects netsh commands that turns off the Windows firewall\nreferences:\n    - https://www.winhelponline.com/blog/enable-and-disable-windows-firewall-quickly-using-command-line/\n    - https://app.any.run/tasks/210244b9-0b6b-4a2c-83a3-04bd3175d017/\n    - https://github.com/redcanaryco/atomic-red-team/blob/f339e7da7d05f6057fdfcdd3742bfcf365fee2a9/atomics/T1562.004/T1562.004.md#atomic-test-1---disable-microsoft-defender-firewall\nauthor: Fatih Sirin\ndate: 2019-11-01\nmodified: 2023-02-13\ntags:\n    - attack.defense-impairment\n    - attack.t1686.003\n    - attack.s0108\nlogsource:\n    category: process_creation\n    product: windows\ndetection:\n    selection_img:\n        - Image|endswith: '\\netsh.exe'\n        - OriginalFileName: 'netsh.exe'\n    selection_cli_1:\n        # Example: netsh firewall set opmode disable\n        CommandLine|contains|all:\n            - 'firewall'\n            - 'set'\n            - 'opmode'\n            - 'disable'\n    selection_cli_2:\n        # Example: netsh advfirewall set currentprofile state off\n        CommandLine|contains|all:\n            - 'advfirewall'\n            - 'set'\n            - 'state'\n            - 'off'\n    condition: selection_img and 1 of selection_cli_*\nfalsepositives:\n    - Legitimate administration activity\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/57c4bf16-227f-4394-8ec7-1b745ee061c3.json","kind":"sigma"}
