ETW Trace Evasion Activity
Description
Detects command line activity that attempts to tamper with Event Tracing for Windows (ETW) by clearing or disabling trace logs or providers. Adversaries may target ETW to blind security tooling and evade detection by removing visibility into process activity, network connections, and other telemetry sources. Techniques include clearing logs via wevtutil, disabling trace sessions via logman, and removing or modifying ETW providers using PowerShell cmdlets such as Remove-EtwTraceProvider and Set-EtwTraceProvider.
Query · sigma
selection_wevtutil_img: - Image|endswith: \wevtutil.exe - OriginalFileName: wevtutil.exe selection_wevtutil_cli_clear: CommandLine|contains: - ' cl ' - clear-log CommandLine|contains|windash: /Trace selection_wevtutil_cli_disable: CommandLine|contains: - ' sl ' - set-log CommandLine|contains|windash: /e:false selection_logman_img: - Image|endswith: \logman.exe - OriginalFileName: Logman.exe selection_logman_update: CommandLine|contains|all: - update - trace - --p - -ets selection_pwsh_img: - Image|endswith: - \powershell.exe - \pwsh.exe - OriginalFileName: - powershell.exe - pwsh.dll selection_pwsh_cli: - CommandLine|contains: Remove-EtwTraceProvider - 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_*) '
Known false positives
- Unknown