Suspicious Invoke-Obfuscation COMPRESS OBFUSCATION - System (via system)

This rule detects Obfuscated Powershell via COMPRESS OBFUSCATION

SigmamediumWindowsv1
sigma
title: Suspicious Invoke-Obfuscation COMPRESS OBFUSCATION - System (via system)
id: 7c68a591-05dc-549d-8818-43994d3a1abd
status: stable
description: This rule detects Obfuscated Powershell via COMPRESS OBFUSCATION
references:
    - https://attack.mitre.org/techniques/T1059/001/
    - https://attack.mitre.org/techniques/T1027/
    - https://github.com/SigmaHQ/sigma/issues/1009
author: Huntrule Team
date: 2026-06-02
tags:
    - attack.stealth
    - attack.t1027
    - attack.execution
    - attack.t1059.001
logsource:
    product: windows
    service: system
detection:
    selection:
        Provider_Name: 'Service Control Manager'
        EventID: 7045
        ImagePath|contains|all:
            - 'new-object'
            - 'text.encoding]::ascii'
            - 'readtoend'
        ImagePath|contains:
            - ':system.io.compression.deflatestream'
            - 'system.io.streamreader'
    condition: selection
falsepositives:
    - Unknown
level: medium

Known false positives

  • Unknown

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