Join our Newsletter — 33% off our NHI Course
Home› FAQ› Threats, Abuse & Incident Response› How do attackers use Diskpart?
Threats, Abuse & Incident Response

How do attackers use Diskpart?

← Back to all FAQ
By NHI Mgmt Group Editorial Team Updated October 18, 2026 Domain: Threats, Abuse & Incident Response

Attackers use Diskpart to manage partitions and volumes during intrusion or destructive activity, often to prepare a machine for wiping, hide data or change storage layout. Because it is a legitimate administrative tool, defenders should monitor for unusual invocation, especially on endpoints that do not need storage administration.

How Diskpart Becomes a Dual-Use Tool in Intrusions

Diskpart is dangerous in attacker hands because it exposes low-level storage operations through a trusted Windows utility. Once an intruder has execution on a host, Diskpart can be used to enumerate disks, mount or remove volumes, alter partition layout, and prepare the system for tampering that looks like routine administration if defenders only watch for malware signatures.

The key security issue is not that Diskpart is malicious, but that it is legitimate. That makes it attractive for living-off-the-land activity, where the operator relies on built-in tooling to reduce detection friction and work inside the normal administrative surface of the endpoint.

Attackers often use this kind of utility when they want to manipulate data availability, destroy evidence, or reshape storage before follow-on actions. If a machine does not normally require storage administration, any Diskpart use should be treated as a high-signal event, especially when it appears alongside suspicious logon activity, remote execution, or other administrative commands.

What Attackers Actually Do With It

In practice, Diskpart supports several attacker objectives. It can assist with destructive activity by clearing or reconfiguring volumes, it can support concealment by changing how storage is presented, and it can help stage later steps by making files or partitions inaccessible to ordinary users and tools.

That means defenders should think in terms of intent, not just process names. A single invocation may be harmless during legitimate administration, but repeated or scripted use, especially from unusual accounts or endpoints, is consistent with pre-destruction preparation, defense evasion, or post-compromise manipulation.

  • Partition and volume changes can be used to disrupt availability quickly.
  • Storage reconfiguration can interfere with forensic review and recovery.
  • Scripted use can signal hands-on-keyboard activity or automation after compromise.

For broader context on how adversaries blend in with trusted admin tools, the Living off the Land Guide is a useful reference point, because Diskpart fits the same dual-use pattern as other built-in Windows utilities.

How to Detect and Respond to Suspicious Diskpart Use

Detection works best when you correlate process creation with the surrounding administration context. Diskpart on a server, kiosk, or workstation that rarely handles storage work is more suspicious than Diskpart run by a known infrastructure administrator during a maintenance window. Command-line logging, parent process review, and host telemetry all matter here.

The most useful question is whether the invocation matches an approved change. If not, treat it as a potential intrusion indicator and look for adjacent signs of compromise such as privilege escalation, lateral movement, disabled defenses, or unusual file deletion. The same pattern can also appear during destructive attacks, where storage changes are a precursor to wiping.

If storage manipulation is unexpected, preserve volatile evidence before remediation where possible. Check whether the system was used to stage data destruction, whether volumes were hidden or altered, and whether the activity may have affected backup recovery paths or incident evidence.

Risk and Threat Considerations

Diskpart creates a clear risk of dual-use abuse because it can change the storage state of a machine without needing custom malware. That makes it valuable to attackers who want to reduce visibility, disrupt recovery, or destroy access to data using a trusted system tool.

Failure mechanism: The tool runs with the authority of the current process and can modify partitions, volumes, and disk layout, so a compromised administrative session can quickly turn into destructive or concealment activity.

Impact: The result can be data unavailability, forensic blind spots, impaired recovery, and a shortened response window if the attacker uses Diskpart before defenders notice the compromise.

Standards & Framework Alignment

This section maps relevant standards and security frameworks to the operational risks and controls described in this guidance.

MITRE ATT&CK addresses the attack and risk surface, while CIS Controls v8 and NIST SP 800-53 Rev 5 set the governance and control requirements practitioners need to meet.

FrameworkControl / ReferenceRelevance
MITRE ATT&CKT1562 — Impair DefensesDiskpart abuse often supports stealth and destructive activity during compromise.
T1070 — Indicator Removal on HostAttackers use storage manipulation and cleanup to reduce forensic visibility after intrusion.
Recommendation — Correlate trusted-utility use with other intrusion signals and hunt for defense evasion activity. Look for disk and volume changes that accompany evidence removal or destructive staging.
CIS Controls v8CIS-8 — Audit Log ManagementDetecting suspicious Diskpart use depends on process and command-line logging.
Recommendation — Enable detailed logging for administrative utilities and alert on unusual Diskpart invocation.
NIST SP 800-53 Rev 5AU-12 — Audit Record GenerationHost telemetry is needed to attribute Diskpart activity to a user, process, and timeline.
CM-7 — Least FunctionalityRestricting admin tools on endpoints lowers attacker ability to use Diskpart outside need.
SI-4 — System MonitoringMonitoring unusual utility execution is the core detection pattern for Diskpart abuse.
Recommendation — Generate and retain process telemetry for privileged utilities and storage changes. Limit storage administration tools to systems and roles that genuinely require them. Alert on unusual Diskpart execution patterns and investigate unexpected disk modifications.

Practitioner Guidance

What to verify: Confirm whether the endpoint should ever run Diskpart in the first place, then compare the command line, parent process, and user context against approved maintenance activity. A one-off invocation from an expected admin account is very different from scripted use on an ordinary user workstation.

Decision rule: If Diskpart appears outside an approved change window or on a host that does not manage storage, treat it as suspicious until proven otherwise and triage for destructive intent, evidence tampering, or follow-on compromise.

What practitioners underestimate: The tool itself is often only the last visible step. By the time Diskpart is used for wiping or storage manipulation, the attacker may already have established privileged access, so the investigation should extend beyond the command to the access path that enabled it.

Practitioner takeaway: The main control question is not whether Diskpart is allowed, but whether its use is normal, attributable, and bounded enough that an attacker cannot hide destructive activity inside legitimate administration.

Free weekly newsletter

Subscribe to the NHI & AI Identity Journal

The latest on NHI and Agentic AI security – articles, research, breaches, news and events every week.

Bonus 33% off our NHI Course when you subscribe.

NHIMG Editorial Note
Reviewed and updated by the NHIMG editorial team on October 18, 2026.
NHI Mgmt Group — the #1 independent authority on Non-Human Identity, IAM, and Agentic AI security. nhimg.org