Invoke-Obfuscation COMPRESS OBFUSCATION
Detects Obfuscated Powershell via COMPRESS OBFUSCATION
Detection logic
selection
CommandLine|contains|all:
- new-object
- text.encoding]::ascii
CommandLine|contains:
- system.io.compression.deflatestream
- system.io.streamreader
- readtoend(Condition
selectionRaw YAML
title: Invoke-Obfuscation COMPRESS OBFUSCATION
id: 7eedcc9d-9fdb-4d94-9c54-474e8affc0c7
status: test
description: Detects Obfuscated Powershell via COMPRESS OBFUSCATION
references:
- https://github.com/SigmaHQ/sigma/issues/1009 # (Task 19)
author: Timur Zinniatullin, oscd.community
date: 2020-10-18
modified: 2022-12-29
tags:
- attack.stealth
- attack.t1027
- attack.execution
- attack.t1059.001
logsource:
category: process_creation
product: windows
detection:
selection:
CommandLine|contains|all:
- 'new-object'
- 'text.encoding]::ascii'
CommandLine|contains:
- 'system.io.compression.deflatestream'
- 'system.io.streamreader'
- 'readtoend('
condition: selection
falsepositives:
- Unknown
level: mediumFalse positives
- Unknown
References
Similar rules
Base64 Encoded PowerShell Command Detected
highwindows · Shares T1027, T1059
ConvertTo-SecureString Cmdlet Usage Via CommandLine
mediumwindows · Shares T1027, T1059
Invoke-Obfuscation CLIP+ Launcher
highwindows · Shares T1027, T1059
Invoke-Obfuscation Obfuscated IEX Invocation
highwindows · Shares T1027, T1059