Skip to content
Threat Feed
high advisory

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

  1. Attacker gains initial access to a Windows host through techniques such as phishing or exploitation of a service vulnerability.
  2. Attacker escalates privileges to local administrator or SYSTEM to gain the necessary permissions for system feature modification.
  3. Attacker identifies the Windows Defender feature name for removal via DISM capabilities.
  4. Attacker invokes dism.exe with administrative flags and specific command-line arguments.
  5. The command line includes /online to target the running OS, /disable-feature and /remove to modify the feature set.
  6. DISM processes the request, modifying the Windows component store and disabling Windows Defender services.
  7. Windows Defender is removed or disabled, leaving the system vulnerable to further malicious activities.
  8. 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.exe and 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

Detection Engineering 48h

Threat Hunt

Search for historical execution of dism.exe with Defender flags

T1685 high high confidence hunt now

Data: Endpoint process logs

Mitigations

Restrict administrative usage of DISM

medium_term IT Operations

T1685

Detection coverage 1

Detect DISM Windows Defender Removal

high

Detects the use of dism.exe to remove or disable Windows Defender features via command line.

sigma tactics: defense-evasion techniques: T1562.001 sources: process_creation, windows

Detection queries are available on the platform. Get full rules →