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
|
2018-07-24 10:56:41 +02:00
|
|
|
tags:
|
|
|
|
|
- attack.execution
|
2020-06-16 14:46:08 -06:00
|
|
|
- attack.t1059.001
|
2023-02-01 11:14:59 +01:00
|
|
|
author: Florian Roth (Nextron Systems), Jonhnathan Ribeiro
|
2020-01-30 16:07:37 +01:00
|
|
|
date: 2017/03/05
|
2023-05-04 14:23:08 +09:00
|
|
|
modified: 2023/05/04
|
2017-03-05 15:01:51 +01:00
|
|
|
logsource:
|
2017-03-21 10:22:13 +01:00
|
|
|
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:
|
2023-05-04 14:23:08 +09:00
|
|
|
selection_convert_b64:
|
2023-04-30 21:49:32 +09:00
|
|
|
'|all':
|
|
|
|
|
- '-nop'
|
|
|
|
|
- ' -w '
|
|
|
|
|
- 'hidden'
|
|
|
|
|
- ' -c '
|
|
|
|
|
- '[Convert]::FromBase64String'
|
2023-05-04 14:23:08 +09:00
|
|
|
selection_iex:
|
2023-04-30 21:49:32 +09:00
|
|
|
'|all':
|
|
|
|
|
- ' -w '
|
|
|
|
|
- 'hidden'
|
|
|
|
|
- '-noni'
|
|
|
|
|
- '-nop'
|
|
|
|
|
- ' -c '
|
|
|
|
|
- 'iex'
|
|
|
|
|
- 'New-Object'
|
2023-05-04 14:23:08 +09:00
|
|
|
selection_enc:
|
2023-04-30 21:49:32 +09:00
|
|
|
'|all':
|
|
|
|
|
- ' -w '
|
|
|
|
|
- 'hidden'
|
|
|
|
|
- '-ep'
|
|
|
|
|
- 'bypass'
|
|
|
|
|
- '-Enc'
|
2023-05-04 14:23:08 +09:00
|
|
|
selection_reg:
|
2023-04-30 21:49:32 +09:00
|
|
|
'|all':
|
|
|
|
|
- 'powershell'
|
|
|
|
|
- 'reg'
|
|
|
|
|
- 'add'
|
|
|
|
|
- 'HKCU\software\microsoft\windows\currentversion\run'
|
2023-05-04 14:23:08 +09:00
|
|
|
selection_webclient:
|
2023-04-30 21:49:32 +09:00
|
|
|
'|all':
|
|
|
|
|
- 'bypass'
|
|
|
|
|
- '-noprofile'
|
|
|
|
|
- '-windowstyle'
|
|
|
|
|
- 'hidden'
|
|
|
|
|
- 'new-object'
|
|
|
|
|
- 'system.net.webclient'
|
|
|
|
|
- '.download'
|
2023-05-04 14:23:08 +09:00
|
|
|
selection_iex_webclient:
|
2023-04-30 21:49:32 +09:00
|
|
|
'|all':
|
|
|
|
|
- 'iex'
|
|
|
|
|
- 'New-Object'
|
|
|
|
|
- 'Net.WebClient'
|
|
|
|
|
- '.Download'
|
2022-02-11 16:38:42 +01:00
|
|
|
filter_chocolatey:
|
2022-02-11 16:52:45 +01:00
|
|
|
- "(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'
|
2023-05-04 14:23:08 +09:00
|
|
|
condition: 1 of selection_* and not 1 of filter_*
|
2017-03-05 15:01:51 +01:00
|
|
|
falsepositives:
|
2022-03-16 14:23:48 +01:00
|
|
|
- Unknown
|
2017-03-05 15:01:51 +01:00
|
|
|
level: high
|