Detectionhightest
Invoke-Obfuscation Via Use Rundll32 - PowerShell
Detects Obfuscated Powershell via use Rundll32 in Scripts
Nikita Nazarov, oscd.communityCreated 2019-10-08Updated 2022-11-29a5a30a6e-75ca-4233-8b8c-42e0f2037d3bwindows
Log Source
WindowsPowerShell Script
ProductWindows← raw: windows
CategoryPowerShell Script← raw: ps_script
Definition
Requirements: Script Block Logging must be enabled
Detection Logic
Detection Logic1 selector
detection:
selection_4104:
ScriptBlockText|contains|all:
- '&&'
- 'rundll32'
- 'shell32.dll'
- 'shellexec_rundll'
ScriptBlockText|contains:
- 'value'
- 'invoke'
- 'comspec'
- 'iex'
condition: selection_4104False Positives
Unknown
False positive likelihood has not been assessed. Additional context may be needed during triage.
References
MITRE ATT&CK
Techniques
Sub-techniques
Rule Metadata
Rule ID
a5a30a6e-75ca-4233-8b8c-42e0f2037d3b
Status
test
Level
high
Type
Detection
Created
2019-10-08
Modified
2022-11-29
Author
Path
rules/windows/powershell/powershell_script/posh_ps_invoke_obfuscation_via_use_rundll32.yml
Raw Tags
attack.stealthattack.t1027attack.executionattack.t1059.001