From 67694e4ba7cdee19faf742bf33673a82e0d4feca Mon Sep 17 00:00:00 2001 From: Harish SEGAR Date: Fri, 20 Mar 2020 23:29:32 +0100 Subject: [PATCH] Restructure new improvement to process_creation folder. --- .../powershell_downgrade_attack.yml | 34 +++------------- .../win_powershell_downgrade_attack.yml | 40 +++++++++++++++++++ 2 files changed, 45 insertions(+), 29 deletions(-) create mode 100644 rules/windows/process_creation/win_powershell_downgrade_attack.yml diff --git a/rules/windows/powershell/powershell_downgrade_attack.yml b/rules/windows/powershell/powershell_downgrade_attack.yml index b3db9979e..4cc3c2b7f 100644 --- a/rules/windows/powershell/powershell_downgrade_attack.yml +++ b/rules/windows/powershell/powershell_downgrade_attack.yml @@ -11,11 +11,7 @@ tags: - attack.t1086 author: Florian Roth (rule), Lee Holmes (idea), Harish Segar (improvements) date: 2017/03/22 -falsepositives: - - Penetration Test - - Unknown -level: medium ---- +modified: 2020/03/20 logsource: product: windows service: powershell-classic @@ -26,27 +22,7 @@ detection: filter: HostVersion|startswith: '2.' condition: selection and not filter ---- -logsource: - product: windows - service: sysmon -detection: - selection: - EventID: 1 - CommandLine: - - '*-v* 2' - - '*-V* 2' - Image|endswith: '\powershell.exe' - condition: selection ---- -logsource: - product: windows - service: security -detection: - selection: - EventID: 4688 - CommandLine: - - '*-v* 2' - - '*-V* 2' - Image|endswith: '\powershell.exe' - condition: selection +falsepositives: + - Penetration Test + - Unknown +level: medium \ No newline at end of file diff --git a/rules/windows/process_creation/win_powershell_downgrade_attack.yml b/rules/windows/process_creation/win_powershell_downgrade_attack.yml new file mode 100644 index 000000000..228f01b13 --- /dev/null +++ b/rules/windows/process_creation/win_powershell_downgrade_attack.yml @@ -0,0 +1,40 @@ +action: global +title: PowerShell Downgrade Attack +id: b3512211-c67e-4707-bedc-66efc7848863 +related: + - id: 6331d09b-4785-4c13-980f-f96661356249 + type: derived +status: experimental +description: Detects PowerShell downgrade attack by comparing the host versions with the actually used engine version 2.0 +references: + - http://www.leeholmes.com/blog/2017/03/17/detecting-and-preventing-powershell-downgrade-attacks/ +tags: + - attack.defense_evasion + - attack.execution + - attack.t1086 +author: Harish Segar (rule) +date: 2020/03/20 +falsepositives: + - Penetration Test + - Unknown +level: medium +--- +logsource: + product: windows + service: sysmon +detection: + selection: + EventID: 1 + CommandLine|re: '.*-[Vv][Ee][Rr][Ss][Ii][Oo][Nn] 2' + Image|endswith: '\powershell.exe' + condition: selection +--- +logsource: + product: windows + service: security +detection: + selection: + EventID: 4688 + CommandLine|re: '.*-[Vv][Ee][Rr][Ss][Ii][Oo][Nn] 2' + Image|endswith: '\powershell.exe' + condition: selection