T1561 IBM QRadar · QRadar

Detect Disk Wipe in IBM QRadar

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/

QRadar Detection Query

IBM QRadar (QRadar)
sql
SELECT
  DATEFORMAT(starttime, 'yyyy-MM-dd HH:mm:ss') AS "Event Time",
  LOGSOURCENAME(logsourceid) AS "Log Source",
  sourceip AS "Source IP",
  username AS "Username",
  "Process Name" AS "Process",
  "Command" AS "Command Line",
  CASE WHEN LOWER("Command") ILIKE '%physicaldrive%'
            OR LOWER("Command") ILIKE '%harddiskvolume%'
            OR LOWER("Command") ILIKE '%if=/dev/zero%'
            OR LOWER("Command") ILIKE '%if=/dev/random%'
            OR LOWER("Command") ILIKE '%if=/dev/urandom%'
       THEN 1 ELSE 0 END +
  CASE WHEN LOWER("Process Name") ILIKE '%diskpart.exe%'
            AND LOWER("Command") ILIKE '%clean%'
       THEN 1 ELSE 0 END +
  CASE WHEN LOWER("Process Name") ILIKE '%format.exe%'
            AND "Command" ILIKE '%/p:_%'
       THEN 1 ELSE 0 END +
  CASE WHEN LOWER("Process Name") ILIKE '%cipher.exe%'
            AND LOWER("Command") ILIKE '%/w%'
       THEN 1 ELSE 0 END +
  CASE WHEN LOWER("Process Name") ILIKE '%sdelete.exe%'
            AND (LOWER("Command") ILIKE '%-z %'
              OR LOWER("Command") ILIKE '%-zd %'
              OR LOWER("Command") ILIKE '%-c %')
       THEN 1 ELSE 0 END +
  CASE WHEN LOWER("Command") ILIKE '%delete shadows%'
            OR LOWER("Command") ILIKE '%shadowcopy delete%'
       THEN 1 ELSE 0 END +
  CASE WHEN LOWER("Process Name") ILIKE '%bcdedit.exe%'
            AND LOWER("Command") ILIKE '%recoveryenabled%'
       THEN 1 ELSE 0 END +
  CASE WHEN LOWER("Process Name") ILIKE '%wevtutil.exe%'
            AND (LOWER("Command") ILIKE '% cl %'
              OR LOWER("Command") ILIKE '%clear-log%')
       THEN 1 ELSE 0 END AS WipeScore
FROM events
WHERE starttime > NOW() - 86400000
  AND LOGSOURCETYPEID IN (12, 14, 15, 94, 260, 352)
  AND (
    LOWER("Process Name") ILIKE '%diskpart.exe%' OR
    LOWER("Process Name") ILIKE '%format.exe%' OR
    LOWER("Process Name") ILIKE '%cipher.exe%' OR
    LOWER("Process Name") ILIKE '%sdelete.exe%' OR
    LOWER("Process Name") ILIKE '%killdisk.exe%' OR
    LOWER("Process Name") ILIKE '%bcdedit.exe%' OR
    LOWER("Process Name") ILIKE '%vssadmin.exe%' OR
    LOWER("Process Name") ILIKE '%wevtutil.exe%' OR
    LOWER("Process Name") ILIKE '%dd.exe%' OR
    LOWER("Command") ILIKE '%physicaldrive%' OR
    LOWER("Command") ILIKE '%harddiskvolume%' OR
    LOWER("Command") ILIKE '%if=/dev/zero%' OR
    LOWER("Command") ILIKE '%if=/dev/random%' OR
    LOWER("Command") ILIKE '%of=/dev/sd%'
  )
HAVING WipeScore > 0
ORDER BY WipeScore DESC, starttime DESC
critical severity medium confidence

IBM QRadar AQL query detecting disk wipe activity across Windows Sysmon and Security log sources. Implements an eight-indicator scoring model covering raw disk device access, diskpart clean, format /p secure wipe, cipher /w, sdelete -z/-zd, VSS shadow deletion, boot recovery disabling, and audit log clearing. LOGSOURCETYPEID values cover common Windows Security/Sysmon DSMs; adjust for local log source IDs. Maps to MITRE ATT&CK T1561 Disk Wipe.

Data Sources

QRadar Microsoft Windows Security Event Log DSMQRadar Microsoft Windows Sysmon DSMQRadar Universal DSM for Windows endpoint agents

Required Tables

events

False Positives & Tuning

  • System administrators running diskpart or format /p for authorized disk provisioning or secure decommission of storage assets
  • Enterprise backup solutions (Acronis, Veeam, NetBackup) invoking vssadmin delete shadows for VSS snapshot retention management
  • Penetration testers or red team operators using disk sanitization tools during scoped and authorized assessments
Download portable Sigma rule (.yml)

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.

  1. 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.

  2. 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.

  3. 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.

  4. 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.

  5. 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.

Unlock Pro Content

Get the full detection package for T1561 including response playbook, investigation guide, and atomic red team tests.

Response PlaybookInvestigation GuideHunting QueriesAtomic Red Team TestsTuning Guidance

Related Detections