Abuse of DISM to Disable Windows Defender
Adversaries leverage the Deployment Image Servicing and Management (DISM) tool to disable or remove Windows Defender components as a defense evasion technique.
Adversaries are known to abuse the built-in Windows Deployment Image Servicing and Management (DISM) tool to undermine host-based security by removing or disabling Windows Defender. This technique allows attackers to eliminate a critical layer of endpoint protection, facilitating subsequent malicious activities such as malware installation, persistent access, and data exfiltration without detection. This activity typically occurs post-compromise, where the attacker has already obtained high-privilege access, often executing commands via a shell or administrative script. By targeting the 'Windows-Defender' feature specifically, adversaries can effectively neuter the built-in security stack of the operating system. Security teams should monitor for the execution of dism.exe with parameters indicating feature removal, as legitimate administrative usage of DISM for feature management in production environments is relatively rare and often controlled by centralized deployment tools.
Attack Chain
- Attacker gains initial access to a Windows host through techniques such as phishing or exploitation of a service vulnerability.
- Attacker escalates privileges to local administrator or SYSTEM to gain the necessary permissions for system feature modification.
- Attacker identifies the Windows Defender feature name for removal via DISM capabilities.
- Attacker invokes
dism.exewith administrative flags and specific command-line arguments. - The command line includes
/onlineto target the running OS,/disable-featureand/removeto modify the feature set. - DISM processes the request, modifying the Windows component store and disabling Windows Defender services.
- Windows Defender is removed or disabled, leaving the system vulnerable to further malicious activities.
- Attacker proceeds with payload execution or data exfiltration, now undetected by the disabled security software.
Impact
Successful execution of this technique results in the complete loss of Windows Defender protection on the targeted host. This significantly increases the risk of successful ransomware deployment, credential theft, and persistent compromise. While the total number of victims is not publicly quantified, this technique is a documented component of advanced threat actor playbooks, specifically associated with ransomware campaigns and other high-impact post-exploitation scenarios.
Recommendation
Prioritize monitoring for the misuse of administrative binaries used in defense evasion.
- Deploy the provided Sigma rule to detect the specific combination of command-line arguments used to disable Windows Defender.
- Implement monitoring for all command-line executions of
dism.exeand investigate any instances initiated by non-administrative users or unexpected parent processes. - Audit and restrict administrative access to sensitive system tools to prevent unauthorized modification of OS security features.
Immediate actions
Deploy Sigma rule to SIEM
Threat Hunt
Search for historical execution of dism.exe with Defender flags
Data: Endpoint process logs
Mitigations
Restrict administrative usage of DISM
T1685
Detection coverage 1
Detect DISM Windows Defender Removal
highDetects the use of dism.exe to remove or disable Windows Defender features via command line.
Detection queries are available on the platform. Get full rules →