Invoke-Obfuscation COMPRESS OBFUSCATION - PowerShell

Detects Obfuscated Powershell via COMPRESS OBFUSCATION

Sigma rule (View on GitHub)

 1title: Invoke-Obfuscation COMPRESS OBFUSCATION - PowerShell
 2id: 20e5497e-331c-4cd5-8d36-935f6e2a9a07
 3status: test
 4description: Detects Obfuscated Powershell via COMPRESS OBFUSCATION
 5references:
 6    - https://github.com/SigmaHQ/sigma/issues/1009 # (Task 19)
 7author: Timur Zinniatullin, oscd.community
 8date: 2020-10-18
 9modified: 2022-11-29
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|contains|all:
22            - 'new-object'
23            - 'text.encoding]::ascii'
24        ScriptBlockText|contains:
25            - 'system.io.compression.deflatestream'
26            - 'system.io.streamreader'
27        ScriptBlockText|endswith: 'readtoend'
28    condition: selection_4104
29falsepositives:
30    - Unknown
31level: medium

References

Related rules

to-top