SigmaHQ/rules/windows/powershell/powershell_downgrade_attack.yml

53 lines
1.3 KiB
YAML
Raw Normal View History

2020-03-20 21:46:19 +00:00
action: global
2017-03-22 10:17:03 +00:00
title: PowerShell Downgrade Attack
2019-11-12 22:12:27 +00:00
id: 6331d09b-4785-4c13-980f-f96661356249
2017-03-22 10:17:03 +00:00
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
2020-03-20 21:49:07 +00:00
author: Florian Roth (rule), Lee Holmes (idea), Harish Segar (improvements)
date: 2017/03/22
falsepositives:
- Penetration Test
- Unknown
level: medium
---
2017-03-22 10:17:03 +00:00
logsource:
product: windows
service: powershell-classic
detection:
selection:
EventID: 400
2020-03-20 21:33:14 +00:00
EngineVersion|startswith: '2.'
2017-03-22 10:17:03 +00:00
filter:
2020-03-20 21:33:14 +00:00
HostVersion|startswith: '2.'
2017-03-22 10:17:03 +00:00
condition: selection and not filter
---
logsource:
product: windows
service: sysmon
detection:
selection:
EventID: 1
CommandLine:
2020-03-20 21:03:48 +00:00
- '*-v* 2'
- '*-V* 2'
Image|endswith: '\powershell.exe'
2020-03-20 21:03:48 +00:00
condition: selection
---
logsource:
product: windows
service: security
detection:
selection:
EventID: 4688
CommandLine:
2020-03-20 21:03:48 +00:00
- '*-v* 2'
- '*-V* 2'
Image|endswith: '\powershell.exe'
2020-03-20 21:03:48 +00:00
condition: selection