Detect Disk Wipe in Google Chronicle
Adversaries may wipe or corrupt raw disk data on specific systems or across a network to interrupt availability to system and network resources. With direct write access to a disk, adversaries may attempt to overwrite arbitrary portions of disk data or target critical disk structures such as the Master Boot Record (MBR) or Volume Boot Record (VBR). A complete wipe of all disk sectors may be attempted using built-in OS utilities, third-party tools, or custom malware. Real-world destructive campaigns using this technique include Shamoon (Saudi Aramco, 2012), WhisperGate (Ukraine, 2022), HermeticWiper (Ukraine, 2022), and Destover (Sony, 2014). Wiper malware frequently chains multiple TA0040 techniques: disabling VSS/recovery first, then overwriting disk content, then corrupting disk structure, to maximize recovery difficulty.
MITRE ATT&CK
- Tactic
- Impact
- Technique
- T1561 Disk Wipe
- Canonical reference
- https://attack.mitre.org/techniques/T1561/
YARA-L Detection Query
rule disk_wipe_t1561 {
meta:
author = "df00tech"
description = "Detects disk wiping: known destructive tools with wipe-indicative arguments and raw disk device access"
mitre_attack_tactic = "Impact"
mitre_attack_technique = "T1561"
severity = "CRITICAL"
confidence = "HIGH"
reference = "https://attack.mitre.org/techniques/T1561/"
events:
$e.metadata.event_type = "PROCESS_LAUNCH"
(
(
re.regex($e.target.process.file.full_path,
`(?i)(dd\.exe|diskpart\.exe|format\.exe|cipher\.exe|sdelete\.exe|wipe\.exe|eraser\.exe|nwipe\.exe|hdderase\.exe|killdisk\.exe|bcdedit\.exe|vssadmin\.exe|wevtutil\.exe)$`)
and re.regex($e.target.process.command_line,
`(?i)(clean all|/p:[1-9]|/[wW]\s|\s-z\s|\s-zd\s|\s-c\s|delete\s+shadows|shadowcopy\s+delete|recoveryenabled|\scl\s|clear-log)`)
) or
re.regex($e.target.process.command_line,
`(?i)(PhysicalDrive|HarddiskVolume|GLOBALROOT|if=/dev/(zero|random|urandom)|of=/dev/(sd[a-z]|hd[a-z]|nvme))`)
)
condition:
$e
} Chronicle YARA-L 2.0 rule detecting disk wipe activity via UDM PROCESS_LAUNCH events. Matches known destructive tools (diskpart, cipher, sdelete, killdisk, bcdedit, vssadmin, wevtutil) combined with wipe-indicative command arguments, plus raw disk device path access (PhysicalDrive, HarddiskVolume, /dev/sd, /dev/nvme). Covers both Windows and Linux disk destruction patterns. Maps to MITRE ATT&CK T1561 Disk Wipe.
Data Sources
Required Tables
False Positives & Tuning
- IT administrators running diskpart or format.exe for authorized disk management, partitioning, or OS deployment in enterprise build processes
- Backup and DR software invoking vssadmin to manage shadow copy retention within defined policy windows
- Red team or penetration testing operations using disk sanitization tools in explicitly scoped and authorized test environments
Other platforms for T1561
Testing Methodology
Validate this detection against 5 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.
- Test 1VSS Shadow Copy Deletion via vssadmin (Pre-Wipe Preparation)
Expected signal: Sysmon Event ID 1: Process Create with Image=vssadmin.exe, CommandLine='vssadmin delete shadows /all /quiet'. Security Event ID 4688 (if command line auditing enabled). No Sysmon Event ID 3 expected (local operation). Parent process will be cmd.exe or powershell.exe in test context.
- Test 2Boot Recovery Disable via bcdedit (Pre-Wipe Preparation)
Expected signal: Sysmon Event ID 1: two Process Create events for bcdedit.exe — first with CommandLine containing 'recoveryenabled No', second with 'bootstatuspolicy ignoreallfailures'. Security Event ID 4688 for both (if command line auditing enabled). No network events expected.
- Test 3Secure Free Space Overwrite via cipher /w
Expected signal: Sysmon Event ID 1: Process Create with Image=cipher.exe, CommandLine='cipher /w:C:\Users\...\AppData\Local\Temp' (path will be expanded). Sysmon Event ID 11: multiple temporary file creation events (EFSTMPWP.tmp files) in the target directory as cipher creates temporary overwrite files. Process will run for several seconds to minutes depending on free space.
- Test 4Diskpart Disk Clean via Script File (Simulated — Uses Virtual Disk)
Expected signal: Sysmon Event ID 1: two Process Create events for diskpart.exe — first with /s dp_create.txt (VHD creation), second with /s dp_wipe.txt (clean all). Sysmon Event ID 11: file creation events for the .vhd and .txt script files in %TEMP%. The actual 'clean all' command is in the script file, not the command line, so analysts should correlate with file creation of the script files.
- Test 5Linux Raw Disk Overwrite Simulation via dd (File Target — Safe)
Expected signal: Linux auditd EXECVE record with comm=dd, a0=if=/dev/zero, a1=of=/tmp/argus_wipe_test.bin. Syslog process creation record. If Falco is deployed: process_started rule matching dd with if=/dev/zero pattern. The command generates 40MB written to disk — watch for I/O spike in monitoring. Note: real wiper uses of=/dev/sda or similar block device path.
References (14)
- https://attack.mitre.org/techniques/T1561/
- https://attack.mitre.org/techniques/T1561/001/
- https://attack.mitre.org/techniques/T1561/002/
- https://web.archive.org/web/20160303200515/https:/operationblockbuster.com/wp-content/uploads/2016/02/Operation-Blockbuster-Destructive-Malware-Report.pdf
- https://www.cisco.com/c/en/us/td/docs/ios-xml/ios/fundamentals/command/cf_command_ref/D_through_E.html#wp3557227463
- https://docs.microsoft.com/en-us/sysinternals/downloads/sysmon
- https://www.mandiant.com/resources/blog/ukraine-and-disk-wiping-attacks
- https://www.welivesecurity.com/2022/01/15/hermeticwiper-new-data-wiping-malware-hits-ukraine/
- https://www.microsoft.com/en-us/security/blog/2022/01/15/destructive-malware-targeting-ukrainian-organizations/
- https://github.com/redcanaryco/atomic-red-team/blob/master/atomics/T1561/T1561.md
- https://github.com/SigmaHQ/sigma/tree/master/rules/windows/process_creation
- https://learn.microsoft.com/en-us/windows-server/administration/windows-commands/diskpart
- https://learn.microsoft.com/en-us/windows-server/administration/windows-commands/cipher
- https://learn.microsoft.com/en-us/defender-endpoint/advanced-hunting-deviceprocessevents-table
Unlock Pro Content
Get the full detection package for T1561 including response playbook, investigation guide, and atomic red team tests.