ETW Trace Evasion Activity

 Original Source: [Sigma source]
Title: ETW Trace Evasion Activity
Status: test
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.
References:
  -https://learn.microsoft.com/en-us/windows-server/administration/windows-commands/wevtutil
  -https://web.archive.org/web/20251017165652/https://www.abuse.io/lockergoga.txt
  -https://medium.com/palantir/tampering-with-windows-event-tracing-background-offense-and-defense-4be7ac62ac63
Author: @neu5ron, Florian Roth (Nextron Systems), Jonhnathan Ribeiro, oscd.community
Date: 2019-03-22
modified:2026-10-12
Tags:
  • -'attack.stealth'
  • -'attack.defense-impairment'
  • -'attack.t1070'
  • -'attack.t1685'
  • -'car.2016-04-002'
Logsource:
  • category: process_creation
  • product: windows
Detection:
  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_*)
Falsepositives:
  -Unknown
Level: high