Disable of ETW Trace - Powershell
Detects usage of powershell cmdlets to disable or remove ETW trace sessions
Sigma rule (View on GitHub)
1title: Disable of ETW Trace - Powershell
2id: 115fdba9-f017-42e6-84cf-d5573bf2ddf8
3related:
4 - id: a238b5d0-ce2d-4414-a676-7a531b3d13d6
5 type: derived
6status: test
7description: Detects usage of powershell cmdlets to disable or remove ETW trace sessions
8references:
9 - https://medium.com/palantir/tampering-with-windows-event-tracing-background-offense-and-defense-4be7ac62ac63
10author: Nasreddine Bencherchali (Nextron Systems)
11date: 2022-06-28
12modified: 2026-10-12
13tags:
14 - attack.stealth
15 - attack.defense-impairment
16 - attack.t1070
17 - attack.t1685
18 - car.2016-04-002
19logsource:
20 product: windows
21 category: ps_script
22 definition: 'Requirements: Script Block Logging must be enabled'
23detection:
24 selection_pwsh_remove: # Autologger provider removal
25 ScriptBlockText|contains: 'Remove-EtwTraceProvider '
26 selection_pwsh_set_hex: # Provider “Enable” property modification (hex form)
27 ScriptBlockText|contains|all:
28 - 'Set-EtwTraceProvider '
29 - '0x11'
30 selection_pwsh_set_dec: # Provider “Enable” property modification (decimal form, equivalent to 0x11)
31 - ScriptBlockText|contains|all:
32 - 'Set-EtwTraceProvider '
33 - ' 17'
34 - ScriptBlockText|contains|all:
35 - 'Set-EtwTraceProvider '
36 - “'17'”
37 - ScriptBlockText|contains|all:
38 - 'Set-EtwTraceProvider '
39 - '”17”'
40 condition: 1 of selection_*
41falsepositives:
42 - Unknown
43level: high
References
Related rules
- ETW Trace Evasion Activity
- Filter Driver Unloaded Via Fltmc.EXE
- Sysmon Driver Unloaded Via Fltmc.EXE
- ASLR Disabled Via Sysctl or Direct Syscall - Linux
- Microsoft Malware Protection Engine Crash