ETW Trace Evasion Activity
A Sigma rule for process creation on Windows, by @neu5ron, Florian Roth (Nextron Systems), Jonhnathan Ribeiro, oscd.community.
high 2 ATT&CK techniques 6 programs it names
What it looks for
detection:
selection_logman_img:
- Image|endswith: '\logman.exe'
- OriginalFileName: 'Logman.exe'
selection_logman_update:
CommandLine|contains|all:
- 'update'
- 'trace'
- '--p'
- '-ets'
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"'
selection_pwsh_img:
- Image|endswith:
- '\powershell.exe'
- '\pwsh.exe'
- OriginalFileName:
- 'powershell.exe'
- 'pwsh.dll'
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_wevtutil_img:
- Image|endswith: '\wevtutil.exe'
- OriginalFileName: 'wevtutil.exe'
condition: (selection_wevtutil_img and 1 of selection_wevtutil_cli_*)
or (all of selection_logman_*)
or (all of selection_pwsh_*)
The rule’s detection, its selections and fields in order of name. The whole rule, with its references and false positives, is on SigmaHQ, by @neu5ron, Florian Roth (Nextron Systems), Jonhnathan Ribeiro, oscd.community, under the Detection Rule License 1.1. CmdID evaluates it on a command line alone: a test on what a command line cannot show, such as the parent process or the user, is not met.
None of the everyday examples and documented commands on CmdID’s program pages trips it. To see whether a command line does, paste it into CmdID.