Microsoft .NET Framework: ETW logging disablement via registry
Adversaries may disable Event Tracing for Windows (ETW) for .NET processes by modifying specific registry keys to blind security monitoring tools.
Triage facts
Revision 1- Evidence
- Unknown
- Severity
- High
- Action
- Elevated
- Sources
- 1 public source
- Freshness
- Revision 1Nov 10, 03:08 UTC
- Detection
- 1 rule
- Source quality
- A1Likely
Adversaries can suppress ETW logging for .NET applications by setting registry values to zero. This technique interferes with the ability of security tools to record loaded .NET assemblies, effectively blinding EDR or SIEM telemetry that relies on these ETW providers. This involves modifying global configuration keys under the .NETFramework registry hive or setting environment-specific COMPlus variables via the registry.
Impact
Successful exploitation prevents security products from gaining visibility into .NET assembly loading events, which are critical for detecting the execution of fileless malware, reflective DLL injection, and other memory-resident threats.
Recommendation
Deploy detection rules to monitor for unauthorized modifications to the identified registry keys. Audit the environment for systems that have these keys set to zero.
Attack Chain
- Attacker gains administrative access to the target host.
- Attacker modifies registry keys to alter .NET runtime behavior.
- Attacker sets ETWEnabled or COMPlus_ETWEnabled/Flags to 0.
- Subsequent .NET processes launched inherit these configurations.
- Security telemetry (ETW) is suppressed for these processes.
- Attacker proceeds with malicious actions (e.g., loading malicious assemblies) while bypassing detection.
Immediate actions
Deploy registry monitoring rules for .NET framework hives.
Threat Hunt
Search for existing registry values set to 0 for ETWEnabled or COMPlus keys.
Data: Registry inventory/scans
Mitigations
Enforce GPOs to prevent unauthorized modifications to the .NETFramework registry hive.
Registry tampering
Detection coverage 1
Detect .NET ETW Logging Disablement
highDetects tampering with .NET ETW logging by setting ETWEnabled or COMPlus configuration keys to 0 in the registry.
Detection queries are available on the platform. Get full rules →