Windows Defender Disabled via Registry Modification
Attackers modify Windows Defender registry settings to disable the service or set the service to manual start, evading defenses to operate undetected.
Attackers often disable or modify security tools like Windows Defender as a defense evasion tactic. This involves modifying specific registry settings to either completely disable the antivirus or prevent it from starting automatically. The detection rule identifies modifications to the Windows Defender registry settings, such as DisableAntiSpyware and Start values under the WinDefend service key. This tactic is frequently observed post-compromise to facilitate lateral movement, persistence, and data exfiltration without interference from endpoint security solutions. Understanding and detecting these modifications is crucial for maintaining a robust security posture and preventing further malicious activity.
Attack Chain
- Initial Access: An attacker gains initial access to the system via external means (e.g., compromised credentials, software vulnerability).
- Privilege Escalation: The attacker escalates privileges to gain administrative rights, required for modifying registry settings.
- Defense Evasion: The attacker modifies the
DisableAntiSpywareregistry value underHKLM\SOFTWARE\Policies\Microsoft\Windows Defenderto disable Windows Defender. - Service Configuration Change: The attacker modifies the
Startregistry value underHKLM\System\*\ControlSet*\Services\WinDefendto prevent the service from starting automatically (setting it to manual or disabled). - Persistence: The attacker establishes persistence to maintain access even after system reboots.
- Lateral Movement: With defenses impaired, the attacker moves laterally within the network to access additional systems and data.
- Data Exfiltration: The attacker exfiltrates sensitive data to an external location.
- Impact: The attacker achieves their objective, whether it's data theft, ransomware deployment, or disruption of services.
Impact
Successful disabling of Windows Defender can lead to complete compromise of the affected system. Without active antivirus protection, malware can execute without detection, leading to data theft, system damage, or ransomware infection. The absence of endpoint protection increases the dwell time of attackers, allowing them to move laterally within the network, potentially impacting numerous systems. This can result in significant financial loss, reputational damage, and regulatory penalties.
Recommendation
- Enable Sysmon registry event logging to detect registry modifications (Data Source: Sysmon).
- Deploy the Sigma rule "Windows Defender Disabled via Registry Modification" to your SIEM and tune for your environment (Sigma rule).
- Investigate any alerts generated by this rule promptly to determine the legitimacy of the registry modification (Sigma rule).
- Monitor process execution chains (parent process tree) for unknown processes modifying the registry (Data Source: Elastic Endgame, Elastic Defend, Sysmon, Microsoft Defender XDR).
- Implement strict access controls to limit who can modify registry settings (all log sources).
- Regularly review and audit Windows Defender configuration to ensure it is enabled and functioning correctly (all log sources).
Detection coverage 3
Windows Defender Disable AntiSpyware Registry Modification
mediumDetects modification of the DisableAntiSpyware registry key to disable Windows Defender.
Windows Defender Service Start Type Modification
mediumDetects modification of the WinDefend service start type to disable or set to manual.
Detect Potential Windows Defender Tampering via Registry
lowDetects potential tampering with Windows Defender by monitoring for changes in specific registry keys related to its functionality, excluding authorized processes.
Detection queries are available on the platform. Get full rules →