Detection logic
Original SigmaHQ detection and related fields from the pinned file. The source file includes its full metadata.
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