2020-10-08 14:08:43 +00:00
|
|
|
title: Invoke-Obfuscation Via Use Rundll32
|
|
|
|
id: a5a30a6e-75ca-4233-8b8c-42e0f2037d3b
|
|
|
|
description: Detects Obfuscated Powershell via use Rundll32 in Scripts
|
|
|
|
status: experimental
|
|
|
|
author: Nikita Nazarov, oscd.community
|
|
|
|
date: 2019/10/08
|
2021-04-02 22:00:43 +00:00
|
|
|
references:
|
2020-10-08 14:52:01 +00:00
|
|
|
- https://github.com/Neo23x0/sigma/issues/1009
|
2020-10-08 14:08:43 +00:00
|
|
|
tags:
|
|
|
|
- attack.defense_evasion
|
|
|
|
- attack.t1027
|
|
|
|
- attack.execution
|
|
|
|
- attack.t1059.001
|
|
|
|
logsource:
|
|
|
|
product: windows
|
|
|
|
service: powershell
|
2021-08-21 07:50:59 +00:00
|
|
|
definition: Script block logging must be enabled for 4104, Module Logging must be enabled for 4103
|
2020-10-08 14:08:43 +00:00
|
|
|
detection:
|
|
|
|
selection_1:
|
|
|
|
EventID: 4104
|
2021-04-02 22:00:43 +00:00
|
|
|
ScriptBlockText|re: '(?i).*&&.*rundll32.*shell32\.dll.*shellexec_rundll.*(value|invoke|comspec|iex).*"'
|
2020-10-08 14:08:43 +00:00
|
|
|
selection_2:
|
|
|
|
EventID: 4103
|
2021-04-02 22:00:43 +00:00
|
|
|
Payload|re: '(?i).*&&.*rundll32.*shell32\.dll.*shellexec_rundll.*(value|invoke|comspec|iex).*"'
|
|
|
|
condition: 1 of them
|
2020-10-08 14:08:43 +00:00
|
|
|
falsepositives:
|
|
|
|
- Unknown
|
|
|
|
level: high
|