Solution:
Root Cause: Malware Hook Interference on WdFilter.sys Mini-Filter Driver
Windows Defender relies on the kernel-mode mini-filter driver
WdFilter.sys to scan file system operations in real time. Advanced malware or rootkits attempt to disable real-time protection by corrupting driver altitude registrations, unregistering mini-filter callbacks, or modifying file permissions on
C:\ProgramData\Microsoft\Windows Defender. When Defender attempts to bind its scanning filters during boot, the driver initialization fails, forcing the GUI toggle to disable itself.
Diagnostic Verification:
Open PowerShell as Administrator and test mini-filter attachment: fltmc instances
Look for WdFilter in the list. If WdFilter is missing or fails to attach to volumes (C:), the filter driver is unloaded or corrupted.Step-by-Step Fix:
1Boot into Windows Safe Mode:
Press Win + R, type msconfig > Boot tab > check Safe boot (Minimal) > OK and restart.2Reset Defender Filter Driver Registry Bindings via PowerShell (Admin):
sc.config WinDefend start= auto
sc.start WinDefend
3Re-register Defender Components:
Set-MpPreference -DisableRealtimeMonitoring $false
4Run Full Offline Antivirus Scan:
Use Microsoft Defender Offline Scan or bootable rescue media to eliminate rootkit hooks.5Disable Safe Mode and restart normally.
Prevention & Long-Term Monitoring:
Keep Windows 11 Core Isolation (Memory Integrity) enabled to prevent kernel-mode driver tampering.