Detectionhightest
Invoke-Obfuscation STDIN+ Launcher - Security
Detects Obfuscated use of stdin to execute PowerShell
Jonathan Cheong, oscd.communityCreated 2020-10-15Updated 2022-11-290c718a5e-4284-4fb9-b4d9-b9a50b3a1974windows
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 Logic3 selectors
detection:
selection:
EventID: 4697
ServiceFileName|contains|all:
- 'cmd'
- 'powershell'
selection2:
ServiceFileName|contains:
- '${input}'
- 'noexit'
selection3:
ServiceFileName|contains:
- ' /c '
- ' /r '
condition: all of selection*False 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
0c718a5e-4284-4fb9-b4d9-b9a50b3a1974
Status
test
Level
high
Type
Detection
Created
2020-10-15
Modified
2022-11-29
Author
Path
rules/windows/builtin/security/win_security_invoke_obfuscation_stdin_services_security.yml
Raw Tags
attack.stealthattack.t1027attack.executionattack.t1059.001