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: experimental
 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: 2024-03-25
11tags:
12    - attack.defense-evasion
13    - attack.t1562.002
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_iis:
25        Image|startswith: 'C:\Windows\winsxs\'
26        Image|endswith: '\TiWorker.exe'  # Many different TargetObjects
27    filter_main_svchost:
28        Image: 'C:\Windows\System32\svchost.exe'
29        TargetObject|contains:
30            - '\Microsoft\Windows\CurrentVersion\WINEVT\Channels\Microsoft-Windows-FileInfoMinifilter'
31            - '\Microsoft\Windows\CurrentVersion\WINEVT\Channels\Microsoft-Windows-ASN1\'
32            - '\Microsoft\Windows\CurrentVersion\WINEVT\Channels\Microsoft-Windows-Kernel-AppCompat\'
33            - '\Microsoft\Windows\CurrentVersion\WINEVT\Channels\Microsoft-Windows-Runtime\Error\'
34            - '\Microsoft\Windows\CurrentVersion\WINEVT\Channels\Microsoft-Windows-CAPI2/Operational\'
35    filter_main_trusted_installer:
36        Image: C:\Windows\servicing\TrustedInstaller.exe
37        TargetObject|contains: '\Microsoft\Windows\CurrentVersion\WINEVT\Channels\Microsoft-Windows-Compat-Appraiser'
38    filter_optional_empty: # This filter is related to aurora. Should be removed when fix is deployed. # TODO: Remove later
39        Image: ''
40    filter_optional_null: # This filter is related to aurora. Should be removed when fix is deployed. # TODO: Remove later
41        Image: null
42    condition: selection and not 1 of filter_main_* and not 1 of filter_optional_*
43falsepositives:
44    - Rare falsepositives may occur from legitimate administrators disabling specific event log for troubleshooting
45level: high

References

Related rules

to-top