Detection of ETW Disabling via Registry Modification
Attackers modify registry keys to disable Event Tracing for Windows (ETW), effectively blinding security telemetry and facilitating defense evasion.
Adversaries frequently target the Event Tracing for Windows (ETW) subsystem to evade detection, as many security products and telemetry collectors rely on ETW for visibility into system processes and API calls. By modifying the registry path "*\SOFTWARE\Microsoft.NETFramework\ETWEnabled" and setting the value to "0x00000000", an attacker can disable ETW for .NET processes. This technique is often observed as a preparatory step by ransomware actors and advanced persistent threats to ensure their malicious payloads execute without generating alerts. Because this registry modification is a common indicator of defensive impairment, monitoring for these specific registry set events is a high-priority activity for detection engineering teams.
Attack Chain
- Attacker gains initial access to the target host (e.g., via spearphishing or exploit).
- Attacker executes a payload requiring elevated privileges or registry access.
- Attacker identifies the target registry path: HKLM or HKCU\SOFTWARE\Microsoft.NETFramework.
- Attacker modifies the "ETWEnabled" registry value, setting it to 0.
- The OS or specific runtime environments (like .NET) apply the new configuration.
- ETW logging is effectively disabled for subsequent .NET process activity.
- Attacker proceeds with malicious actions (e.g., credential dumping, lateral movement) undetected by ETW-reliant tools.
Impact
Disabling ETW significantly impairs the efficacy of endpoint detection and response (EDR) solutions, potentially allowing attackers to execute arbitrary code, move laterally, and exfiltrate data while remaining invisible to security monitoring. This technique has been observed in various ransomware campaigns documented by security researchers and incident response teams.
Recommendation
- Deploy the Sigma rule provided below to your SIEM to monitor for registry modifications targeting the ETWEnabled value.
- Configure Sysmon Event ID 13 to log registry value sets and ensure the specific path "*\SOFTWARE\Microsoft.NETFramework\ETWEnabled" is monitored.
- Investigate any processes or user accounts attempting to set this registry value to 0, as this is rarely performed by legitimate administrative tasks.
Immediate actions
Deploy registry monitoring rules for the specified ETWEnabled path.
Threat Hunt
Search for historical registry set events targeting ETWEnabled
Data: Sysmon Event ID 13
Detection coverage 1
Detect ETW Disabling via Registry Modification
highDetects the modification of the .NETFramework ETWEnabled registry key to 0, which disables ETW logging.
Detection queries are available on the platform. Get full rules →