Detection logic
Original SigmaHQ detection and related fields from the pinned file. The source file includes its full metadata.
logsource:
category: process_creation
product: windows
detection:
selection_wevtutil_img:
- Image|endswith: '\wevtutil.exe'
- OriginalFileName: 'wevtutil.exe'
selection_wevtutil_cli_clear: # Example: wevtutil cl "/Trace" or wevtutil cl "Microsoft-Windows-DNS-Client/Operational"
CommandLine|contains:
- ' cl '
- 'clear-log'
CommandLine|contains|windash: '/Trace'
selection_wevtutil_cli_disable: # Example: wevtutil sl "Microsoft-Windows-DNS-Client/Operational" /e:false
CommandLine|contains:
- ' sl '
- 'set-log'
CommandLine|contains|windash: '/e:false'
selection_logman_img: # Example: logman update trace EventLog-Application --p "Microsoft-Windows-Security-Auditing" -ets
- Image|endswith: '\logman.exe'
- OriginalFileName: 'Logman.exe'
selection_logman_update: # Example: logman update trace EventLog-Application --p "Microsoft-Windows-Security-Auditing" -ets
CommandLine|contains|all:
- 'update'
- 'trace'
- '--p'
- '-ets'
selection_pwsh_img:
- Image|endswith:
- '\powershell.exe'
- '\pwsh.exe'
- OriginalFileName:
- 'powershell.exe'
- 'pwsh.dll'
selection_pwsh_cli:
# Example: Remove-EtwTraceProvider -AutologgerName "EventLog-Application" -Guid "{54849625-5478-4994-A5BA-3E3B0328C30D}"
- CommandLine|contains: 'Remove-EtwTraceProvider'
# Example: Set-EtwTraceProvider -Guid '{A0C1853B-5C40-4B15-8766-3CF1C58F985A}' -AutologgerName 'EventLog-Application' -Property 0x11
# Note: 0x11 and 17 are equivalent and represent the same property value
- CommandLine|contains|all:
- 'Set-EtwTraceProvider'
- '0x11'
- CommandLine|contains|all:
- 'Set-EtwTraceProvider'
- ' 17'
- CommandLine|contains|all:
- 'Set-EtwTraceProvider'
- "'17'"
- CommandLine|contains|all:
- 'Set-EtwTraceProvider'
- '"17"'
condition: |
(selection_wevtutil_img and 1 of selection_wevtutil_cli_*)
or (all of selection_logman_*)
or (all of selection_pwsh_*)
falsepositives:
- Unknown