Detectionmediumtest
Invoke-Obfuscation COMPRESS OBFUSCATION
Detects Obfuscated Powershell via COMPRESS OBFUSCATION
Timur Zinniatullin, oscd.communityCreated 2020-10-18Updated 2022-12-297eedcc9d-9fdb-4d94-9c54-474e8affc0c7windows
Log Source
WindowsProcess Creation
ProductWindows← raw: windows
CategoryProcess Creation← raw: process_creation
Events generated when a new process is spawned on the system. Covers command-line arguments, parent/child relationships, and process metadata.
Detection Logic
Detection Logic1 selector
detection:
selection:
CommandLine|contains|all:
- 'new-object'
- 'text.encoding]::ascii'
CommandLine|contains:
- 'system.io.compression.deflatestream'
- 'system.io.streamreader'
- 'readtoend('
condition: selectionFalse 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
7eedcc9d-9fdb-4d94-9c54-474e8affc0c7
Status
test
Level
medium
Type
Detection
Created
2020-10-18
Modified
2022-12-29
Author
Path
rules/windows/process_creation/proc_creation_win_hktl_invoke_obfuscation_via_compress.yml
Raw Tags
attack.stealthattack.t1027attack.executionattack.t1059.001