Full SigmaHQ catalog

Author
Nasreddine Bencherchali (Nextron Systems)
Rule ID
115fdba9-f017-42e6-84cf-d5573bf2ddf8
Collection
Core
Log source
windows / ps_script
Severity
high
Maturity
test
First published
2022-06-28
Updated
2026-11-28
MITRE ATT&CK
T1070, T1685

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_pwsh_remove:   # Autologger provider removal
        ScriptBlockText|contains: 'Remove-EtwTraceProvider '
    selection_pwsh_set_hex:   # Provider “Enable” property modification (hex form)
        ScriptBlockText|contains|all:
            - 'Set-EtwTraceProvider '
            - '0x11'
    selection_pwsh_set_dec:   # Provider “Enable” property modification (decimal form, equivalent to 0x11)
        - ScriptBlockText|contains|all:
              - 'Set-EtwTraceProvider '
              - ' 17'
        - ScriptBlockText|contains|all:
              - 'Set-EtwTraceProvider '
              - "'17'"
        - ScriptBlockText|contains|all:
              - 'Set-EtwTraceProvider '
              - '"17"'
    condition: 1 of selection_*
falsepositives:
    - Unknown