Detectionhightest
Invoke-Obfuscation Via Use Rundll32 - Security
Detects Obfuscated Powershell via use Rundll32 in Scripts
Nikita Nazarov, oscd.communityCreated 2020-10-09Updated 2022-11-29cd0f7229-d16f-42de-8fe3-fba365fbcb3awindows
Log Source
Windowssecurity
ProductWindows← raw: windows
Servicesecurity← raw: security
Definition
The 'System Security Extension' audit subcategory need to be enabled to log the EID 4697
Detection Logic
Detection Logic1 selector
detection:
selection:
EventID: 4697
ServiceFileName|contains|all:
- '&&'
- 'rundll32'
- 'shell32.dll'
- 'shellexec_rundll'
ServiceFileName|contains:
- value
- invoke
- comspec
- iex
condition: selectionFalse 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
cd0f7229-d16f-42de-8fe3-fba365fbcb3a
Status
test
Level
high
Type
Detection
Created
2020-10-09
Modified
2022-11-29
Author
Path
rules/windows/builtin/security/win_security_invoke_obfuscation_via_use_rundll32_services_security.yml
Raw Tags
attack.stealthattack.t1027attack.executionattack.t1059.001