PowerShell GzipStream Decompression Attempts on Windows

Detects Windows PowerShell commands using GZipStream and ::Decompress to decompress encoded Gzip data.

FreeReviewedSigma · Medium · v1
Product
windows
Category
process_creation
Author
Hieu Tran (SigmaHQ), DRL 1.1
Published
2023-03-13
Updated
2026-07-30

ATT&CK techniques

C2
  1. Recon

  2. Resource Dev

  3. Initial Access

  4. Execution

  5. Persistence

  6. Priv Esc

  7. Defense Evasion

  8. Cred Access

  9. Discovery

  10. Lateral Movement

  11. Collection

  12. Exfiltration

  13. Impact

What it detects

This rule flags PowerShell process executions whose command line includes both the GZipStream class and the ::Decompress method, indicating attempts to decode or decompress data using Gzip. Attackers commonly use in-memory or scripted decompression to unpack payloads or transform encoded content before further execution. Detection relies on Windows process creation telemetry and the exact presence of these PowerShell/decompression tokens in the command line.

Related detections7 linkedT1132.001 — drag to rearrange
Malicious Project CAV3RN DNS Configuration Recovery via cloudlanecdn.com (via dns_query)
Malicious Credential Harvesting Request via All-in-1 PHP Endpoint (via proxy)
Suspicious Long Alphanumeric DNS Subdomain Indicative of DNS Tunneling
Suspicious DNS Tunneling With Hex Subdomain To info Domain (via dns_query)
PowerShell FromBase64String Decoding of Base64 Gzip Content in Process Creation on Windows
PowerShell: FromBase64String Decoding of Gzip (H4sI) into MemoryStream
Windows Execution of dnscat2 and iodine DNS Exfiltration/Tunneling Tools
PowerShell GzipStream Decompression Attempts on Windows
Pivot detection · T1132.001 · 7 related

Detection content is published as a reviewed draft. Tune thresholds and exclusions against your own telemetry before enabling this rule for alerting.