Invoke-Obfuscation Via Stdin - Powershell

Detects Obfuscated Powershell via Stdin in Scripts

Sigma rule (View on GitHub)

 1title: Invoke-Obfuscation Via Stdin - Powershell
 2id: 86b896ba-ffa1-4fea-83e3-ee28a4c915c7
 3status: test
 4description: Detects Obfuscated Powershell via Stdin in Scripts
 5references:
 6    - https://github.com/SigmaHQ/sigma/issues/1009  # (Task28)
 7author: Nikita Nazarov, oscd.community
 8date: 2020-10-12
 9modified: 2024-04-05
10tags:
11    - attack.defense-evasion
12    - attack.t1027
13    - attack.execution
14    - attack.t1059.001
15logsource:
16    product: windows
17    category: ps_script
18    definition: 'Requirements: Script Block Logging must be enabled'
19detection:
20    selection_4104:
21        ScriptBlockText|re: '(?i)(set).*&&\s?set.*(environment|invoke|\$\{?input).*&&.*"'
22    condition: selection_4104
23falsepositives:
24    - Unknown
25level: high

References

Related rules

to-top