Disable Windows Event Logging Via Registry

Detects tampering with the "Enabled" registry key in order to disable Windows logging of a Windows event channel

Sigma rule (View on GitHub)

 1title: Disable Windows Event Logging Via Registry
 2id: 2f78da12-f7c7-430b-8b19-a28f269b77a3
 3status: test
 4description: Detects tampering with the "Enabled" registry key in order to disable Windows logging of a Windows event channel
 5references:
 6    - https://twitter.com/WhichbufferArda/status/1543900539280293889
 7    - https://github.com/DebugPrivilege/CPP/blob/c39d365617dbfbcb01fffad200d52b6239b2918c/Windows%20Defender/RestoreDefenderConfig.cpp
 8author: frack113, Nasreddine Bencherchali (Nextron Systems)
 9date: 2022-07-04
10modified: 2026-11-06
11tags:
12    - attack.defense-impairment
13    - attack.t1685.001
14logsource:
15    category: registry_set
16    product: windows
17detection:
18    selection:
19        TargetObject|contains: '\Microsoft\Windows\CurrentVersion\WINEVT\Channels\'
20        TargetObject|endswith: '\Enabled'
21        Details: 'DWORD (0x00000000)'
22    filter_main_wevutil:
23        Image: 'C:\Windows\system32\wevtutil.exe' # FP generated during installation of manifests via wevtutil
24    filter_main_drvinst:
25        # FP generated during driver package installs registering the driver's own (disabled by default) event channels
26        Image:
27            - 'C:\Windows\System32\DrvInst.exe'
28            - 'C:\Windows\SysWOW64\DrvInst.exe'
29    filter_main_iis:
30        Image|startswith: 'C:\Windows\winsxs\'
31        Image|endswith: '\TiWorker.exe'  # Many different TargetObjects
32    filter_main_svchost:
33        Image: 'C:\Windows\System32\svchost.exe'
34        TargetObject|contains:
35            - '\Microsoft\Windows\CurrentVersion\WINEVT\Channels\Microsoft-Windows-FileInfoMinifilter'
36            - '\Microsoft\Windows\CurrentVersion\WINEVT\Channels\Microsoft-Windows-ASN1\'
37            - '\Microsoft\Windows\CurrentVersion\WINEVT\Channels\Microsoft-Windows-Kernel-AppCompat\'
38            - '\Microsoft\Windows\CurrentVersion\WINEVT\Channels\Microsoft-Windows-Runtime\Error\'
39            - '\Microsoft\Windows\CurrentVersion\WINEVT\Channels\Microsoft-Windows-CAPI2/Operational\'
40    filter_main_trusted_installer:
41        Image: C:\Windows\servicing\TrustedInstaller.exe
42        TargetObject|contains: '\Microsoft\Windows\CurrentVersion\WINEVT\Channels\Microsoft-Windows-Compat-Appraiser'
43    filter_optional_empty: # This filter is related to aurora. Should be removed when fix is deployed. # TODO: Remove later
44        Image: ''
45    filter_optional_null: # This filter is related to aurora. Should be removed when fix is deployed. # TODO: Remove later
46        Image: null
47    condition: selection and not 1 of filter_main_* and not 1 of filter_optional_*
48falsepositives:
49    - Rare falsepositives may occur from legitimate administrators disabling specific event log for troubleshooting
50level: high

References

Related rules

to-top