Full SigmaHQ catalog

Author
Nasreddine Bencherchali (Nextron Systems), frack113
Rule ID
b7a3c9a3-09ea-4934-8864-6a32cacd98d9
Collection
Core
Log source
windows / ps_script
Severity
medium
Maturity
test
First published
2021-07-20
Updated
2023-12-18
MITRE ATT&CK
T1074.001

Detection logic

Original SigmaHQ detection and related fields from the pinned file. The source file includes its full metadata.

Sigma YAML
logsource:
    product: windows
    category: ps_script
    definition: 'Requirements: Script Block Logging must be enabled'
detection:
    selection:
        ScriptBlockText|contains:
            - 'Compress-Archive -Path*-DestinationPath $env:TEMP'
            - 'Compress-Archive -Path*-DestinationPath*\AppData\Local\Temp\'
            - 'Compress-Archive -Path*-DestinationPath*:\Windows\Temp\'
    condition: selection
falsepositives:
    - Unknown