Detectionhightest
Invoke-Obfuscation Via Stdin - Powershell
Detects Obfuscated Powershell via Stdin in Scripts
Nikita Nazarov, oscd.communityCreated 2020-10-12Updated 2024-04-0586b896ba-ffa1-4fea-83e3-ee28a4c915c7windows
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|re: '(?i)(set).*&&\s?set.*(environment|invoke|\$\{?input).*&&.*"'
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
86b896ba-ffa1-4fea-83e3-ee28a4c915c7
Status
test
Level
high
Type
Detection
Created
2020-10-12
Modified
2024-04-05
Author
Path
rules/windows/powershell/powershell_script/posh_ps_invoke_obfuscation_via_stdin.yml
Raw Tags
attack.stealthattack.t1027attack.executionattack.t1059.001