From f96a5ce9ff6f9d3a79724fb8cdcf3f67692ebb0c Mon Sep 17 00:00:00 2001 From: frack113 <62423083+frack113@users.noreply.github.com> Date: Sun, 9 Jan 2022 19:24:38 +0100 Subject: [PATCH] Fix detection --- .../win_susp_firewall_disable.yml | 23 ++++++++++++++----- 1 file changed, 17 insertions(+), 6 deletions(-) diff --git a/rules/windows/process_creation/win_susp_firewall_disable.yml b/rules/windows/process_creation/win_susp_firewall_disable.yml index 59eefccbb..fb6ac6868 100644 --- a/rules/windows/process_creation/win_susp_firewall_disable.yml +++ b/rules/windows/process_creation/win_susp_firewall_disable.yml @@ -6,17 +6,28 @@ author: Fatih Sirin 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/master/atomics/T1562.004/T1562.004.md#atomic-test-1---disable-microsoft-defender-firewall date: 2019/11/01 -modified: 2021/11/27 +modified: 2022/01/09 logsource: category: process_creation product: windows detection: - selection: - CommandLine: - - netsh firewall set opmode mode=disable - - netsh advfirewall set * state off - condition: selection + selection_1: + CommandLine|contains|all: + - netsh + - firewall + - set + - opmode + - 'mode=disable' + selection_2: + CommandLine|contains|all: + - netsh + - advfirewall + - set + - state + - off + condition: 1 of selection_* falsepositives: - Legitimate administration level: medium