THREAT-Impact-DiskWipeUtilityExecution Sumo Logic CSE · Sumo

Detect Disk Wipe — Destructive Disk-Clearing Utility Execution in Sumo Logic CSE

Wiper attacks and the destructive final stage of some ransomware/extortion intrusions rely on a small, well-known set of disk-clearing tools and commands rather than custom code, because overwriting or reformatting a disk does not require sophistication — it requires only that the operator have sufficient privilege and be willing to accept the outcome. Common patterns: Sysinternals sdelete/sdelete64 invoked with the -p (passes), -z (zero free space), or -c (clean free space) flags to securely overwrite file or free-space content; cipher.exe /w: to wipe deallocated disk space (a native Windows binary requiring no download, favored specifically because it evades application-allowlisting that would block sdelete); diskpart.exe run non-interactively via a script file containing "clean" or "clean all" against a selected disk/volume; format.com or PowerShell's Clear-Disk/Remove-Partition/Initialize-Disk cmdlets invoked with -Confirm:$false against a data or boot volume; and on Linux, dd with if=/dev/zero or if=/dev/urandom targeting a block device, shred -vfz, or wipefs -a. WhisperGate and Shamoon-family wipers used variations of these same primitives (WhisperGate additionally corrupted the MBR directly). None of these tools/commands has a legitimate high-volume production use case against a system or data volume — they appear almost exclusively during authorized secure-decommissioning workflows or a destructive attack, making this a high-fidelity, low-noise detection surface when properly scoped away from asset-disposal processes.

MITRE ATT&CK

Tactic
Impact

Sumo Detection Query

Sumo Logic CSE (Sumo)
sql
(_sourceCategory=*/Windows/Sysmon* OR _sourceCategory=*/Linux/Audit*)
| where (%"EventID" = "1" or EventID = 1 or _sourceCategory matches "*/Linux/Audit*")
| parse field=_raw "Image: *\r" as Image nodrop
| parse field=_raw "CommandLine: *\r" as CommandLine nodrop
| parse field=_raw "exe=\"*\"" as LinuxExe nodrop
| if (isEmpty(Image), LinuxExe, Image) as ProcImage
| where (
    (ProcImage matches "*sdelete*" and (CommandLine matches "*-p*" or CommandLine matches "*-z*"))
    or (ProcImage matches "*cipher.exe" and CommandLine matches "*/w:*")
    or (ProcImage matches "*diskpart.exe" and CommandLine matches "*/s*")
    or (ProcImage matches "*format.com" and (CommandLine matches "*/y*" or CommandLine matches "*/fs*"))
    or (ProcImage matches "*dd" and CommandLine matches "*of=/dev/*")
    or (ProcImage matches "*shred" and CommandLine matches "*-vfz*")
    or (ProcImage matches "*wipefs" and CommandLine matches "*-a*")
  )
| eval WipeIndicator = if(ProcImage matches "*diskpart*", "DiskpartScriptedClean",
    if(ProcImage matches "*dd", "DdBlockDeviceOverwrite",
    if(ProcImage matches "*sdelete*", "SdeleteSecureOverwrite",
    if(ProcImage matches "*cipher*", "CipherFreeSpaceWipe_NativeBinary", "OtherWipeTool"))))
| stats count as EventCount by ProcImage, CommandLine, WipeIndicator
| sort - EventCount
critical severity high confidence

Sumo Logic detection parsing Sysmon Event ID 1 (Windows) and Linux audit records for the disk-wipe primitive set, normalizing the process image field across both platforms.

Data Sources

Windows Sysmon (Event ID 1)Linux Audit log

Required Tables

_sourceCategory=*/Windows/Sysmon*_sourceCategory=*/Linux/Audit*

False Positives & Tuning

  • Documented decommissioning workflows
  • Forensic imaging processes

Other platforms for THREAT-Impact-DiskWipeUtilityExecution


Testing Methodology

Validate this detection against 3 adversary techniques from Atomic Red Team. Each test below lists the behaviour to exercise and the telemetry you should expect to see. Executable commands and cleanup steps are available with Pro.

  1. Test 1Simulate sdelete Secure Overwrite

    Expected signal: Sysmon Event ID 1: sdelete64.exe process creation with '-p' flag in command line.

  2. Test 2Simulate Diskpart Scripted Clean

    Expected signal: Sysmon Event ID 1: diskpart.exe process creation with '/s' flag referencing the script file.

  3. Test 3Simulate dd Block Device Overwrite (Linux)

    Expected signal: auditd EXECVE record for dd with of=/dev/loop9 and if=/dev/zero in the argument list.


Response Playbook

Triage

  1. Treat any diskpart clean/clean all, format, or dd-to-raw-device execution against a production host as a potential active-destruction event requiring immediate response — do not wait for confirmation if the target is not a documented decommission asset.
  2. Check whether the host/device is on the approved asset-decommissioning list or in a known reimaging/staging workflow; if not, escalate immediately.
  3. Identify the account and process ancestry: was this launched interactively, via a remote execution tool (PsExec/WinRM/SSH), or via a scheduled task — the latter two suggest a broader compromise enabling remote destructive action.
  4. Determine scope: is this a single host, or are multiple hosts showing wipe-tool execution in the same short window (indicates a coordinated wiper deployment, as seen with WhisperGate and Shamoon)?
  5. Check for accompanying indicators of a broader destructive campaign: MBR/bootloader modification, backup deletion (T1490), or credential-dumping activity preceding the wipe command.

Containment

  1. Immediately power off or isolate the affected host if the wipe command has not yet completed — physical power removal may be necessary if network isolation cannot stop an in-progress low-level disk write.
  2. If multiple hosts show the same indicator, isolate the entire affected segment from the network immediately to prevent further propagation of the wipe trigger (e.g., a malicious GPO or remote script).
  3. Disable the account and any remote-execution session used to launch the wipe command across the environment.
  4. Verify backup integrity and isolate backup infrastructure from the network if a coordinated wiper event is suspected — attackers frequently target backups first or simultaneously.
  5. Do not attempt data recovery on the affected disk until forensic imaging (if any partition remains readable) has been completed.

Evidence Collection

  1. Full command line and parent process chain for the wipe-tool execution
  2. Account and authentication context: interactive logon, RDP, PsExec, WinRM, or SSH session details
  3. Any scheduled task, GPO, or remote script repository (SMB share, config management tool) that could have distributed the wipe command to multiple hosts
  4. Preceding process history on the host for the prior 24-48 hours (credential dumping, lateral movement, backup deletion)
  5. Disk imaging of any partially-wiped or unaffected sibling disks for forensic analysis, if feasible before further overwrite occurs

Escalation Criteria

  • !Wipe-tool execution detected against a host not on the documented decommission/reimaging list — immediate incident declaration
  • !Diskpart clean/clean all, format, or dd-to-device detected on a production server, domain controller, or hypervisor host
  • !Multiple hosts show wipe indicators within the same short window
  • !Wipe activity follows or accompanies backup/shadow-copy deletion (T1490) or credential-dumping activity — indicates a full destructive campaign rather than isolated misuse

Investigation Guide

Related Techniques

Forensic Artifacts

  • >Sysmon Event ID 1 (Process Create) for sdelete, cipher, diskpart, format.com, PowerShell disk cmdlets
  • >Diskpart script files (referenced via /s) left on disk or in temp directories before execution
  • >Linux auditd EXECVE records for dd, shred, wipefs with full argument list
  • >Windows Event ID 1006 (chkdsk) or disk subsystem errors that may follow a partial or interrupted wipe attempt
  • >PowerShell script block logging (Event ID 4104) capturing the full Clear-Disk/Remove-Partition/Initialize-Disk invocation

Tuning Guidance

Maintain an allowlist of accounts/service accounts and hostnames associated with the organization's legitimate asset-decommissioning and reimaging workflows, and exclude those specific account+host combinations rather than the tool name broadly — the tools themselves have essentially no other legitimate production use, so tool-name-level exclusion defeats the purpose of the detection. Where possible, require decommissioning workflows to run from a small, fixed set of jump hosts so exclusions stay narrow and auditable.


Hunting Queries

30-day hunt establishing a baseline of legitimate disk-wipe-tool usage by account and device, to distinguish routine decommissioning activity from anomalous or first-time usage by an account with no prior history of running these tools.

Hunting — KQL
kql
DeviceProcessEvents
| where Timestamp > ago(30d)
| where FileName in~ ("sdelete.exe", "sdelete64.exe", "diskpart.exe", "cipher.exe")
| summarize Count=count(), Devices=make_set(DeviceName) by FileName, AccountName
| sort by Count desc
Hunting — SPL
spl
index=mde sourcetype="DeviceProcessEvents" earliest=-30d FileName IN ("sdelete.exe","sdelete64.exe","diskpart.exe","cipher.exe")
| stats count AS Count, values(DeviceName) AS Devices by FileName, AccountName
| sort - Count

Atomic Red Team Tests

Test 1 Simulate sdelete Secure Overwrite
windows

Runs Sysinternals sdelete against a disposable test file with the secure-overwrite flag, simulating anti-forensic file wiping. Requires sdelete to be present; run only in a lab environment against test data.

Command

powershell
sdelete64.exe -p 3 C:\Temp\test-wipe-target.txt

Expected Telemetry

Sysmon Event ID 1: sdelete64.exe process creation with '-p' flag in command line.

Expected Detection

Alert fires on SdeleteSecureOverwrite indicator with RiskScore=85.

Test 2 Simulate Diskpart Scripted Clean
windows

Invokes diskpart non-interactively with a script file containing a 'clean' command against a test/scratch virtual disk. Run only in an isolated lab VM against a disposable virtual disk — never against a production or shared disk.

Command

powershell
echo select disk 9 > C:\Temp\wipe.txt & echo clean >> C:\Temp\wipe.txt & diskpart /s C:\Temp\wipe.txt

Cleanup

powershell
del C:\Temp\wipe.txt

Expected Telemetry

Sysmon Event ID 1: diskpart.exe process creation with '/s' flag referencing the script file.

Expected Detection

Alert fires on DiskpartScriptedClean indicator with RiskScore=100 — highest-severity destructive-operation tier.

Test 3 Simulate dd Block Device Overwrite (Linux)
linux

Writes zeros to a disposable loopback device using dd, simulating the Linux disk-wipe primitive. Run only against a loopback/scratch device created specifically for this test — never against a real block device.

Command

bash
dd if=/dev/zero of=/dev/loop9 bs=1M count=10

Expected Telemetry

auditd EXECVE record for dd with of=/dev/loop9 and if=/dev/zero in the argument list.

Expected Detection

Alert fires on DdBlockDeviceOverwrite indicator with RiskScore=100.

Related Detections

Tactic Hub