Files
blue-team-tools/rules/windows/deprecated/powershell_suspicious_invocation_specific.yml
T

62 lines
1.8 KiB
YAML
Raw Normal View History

2017-03-13 09:23:08 +01:00
title: Suspicious PowerShell Invocations - Specific
2019-11-12 23:12:27 +01:00
id: fce5f582-cc00-41e1-941a-c6fabf0fdb8c
2021-10-28 20:08:27 +02:00
status: deprecated
2017-03-05 15:01:51 +01:00
description: Detects suspicious PowerShell invocation command parameters
tags:
- attack.execution
2020-06-16 14:46:08 -06:00
- attack.t1059.001
2020-11-20 01:22:20 -03:00
author: Florian Roth (rule), Jonhnathan Ribeiro
date: 2017/03/05
2022-02-21 10:15:27 +01:00
modified: 2022/02/21
2017-03-05 15:01:51 +01:00
logsource:
product: windows
service: powershell
2021-08-21 09:50:59 +02:00
definition: Script block logging must be enabled for 4104, Module Logging must be enabled for 4103
2017-03-05 15:01:51 +01:00
detection:
2020-11-20 01:22:20 -03:00
convert_b64:
- '-nop'
- ' -w '
- 'hidden'
- ' -c '
- '[Convert]::FromBase64String'
2020-11-20 01:22:20 -03:00
iex_selection:
- ' -w '
- 'hidden'
- '-noni'
- '-nop'
- ' -c '
- 'iex'
- 'New-Object'
2020-11-20 01:22:20 -03:00
enc_selection:
- ' -w '
- 'hidden'
- '-ep'
- 'bypass'
- '-Enc'
2020-11-20 01:22:20 -03:00
reg_selection:
- 'powershell'
- 'reg'
- 'add'
- 'HKCU\software\microsoft\windows\currentversion\run'
2020-11-20 01:22:20 -03:00
webclient_selection:
- 'bypass'
- '-noprofile'
- '-windowstyle'
- 'hidden'
- 'new-object'
- 'system.net.webclient'
- '.download'
2020-11-20 01:22:20 -03:00
iex_webclient:
- 'iex'
- 'New-Object'
- 'Net.WebClient'
- '.Download'
filter_chocolatey:
- "(New-Object System.Net.WebClient).DownloadString('https://community.chocolatey.org/install.ps1"
2022-02-16 13:04:26 +01:00
- "(New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1')"
2022-02-21 10:15:27 +01:00
- 'Write-ChocolateyWarning'
condition: (all of convert_b64 or all of iex_selection or all of enc_selection or all of reg_selection or all of webclient_selection or all of iex_webclient) and not 1 of filter_*
2017-03-05 15:01:51 +01:00
falsepositives:
- Unknown
2017-03-05 15:01:51 +01:00
level: high