VeriKQL by Kaushik Saha

T1561.002 Disk Structure Wipe

Impacton attack.mitre.org

ATT&CK Enterprise 20.0 · 20.1 released, update in review

How MITRE detects it

DET0297 Detection Strategy for Disk Structure Wipe via Boot/Partition Overwrite

AN0827 Windows

Processes attempting raw disk access to overwrite sensitive structures such as the MBR or partition table using \\.\PhysicalDrive notation. Detection relies on correlating process creation, privilege escalation, and raw sector writes in Sysmon and Security logs.

MITRE log sourceIn Microsoft Sentinel
WinEventLog:SecurityEventCode=4673
  • Windows Security Events via AMA → SecurityEvent
    SecurityEvent | where EventID in (4673)
  • Security Events via Legacy Agent → SecurityEvent
    SecurityEvent | where EventID in (4673)
  • Windows Forwarded Events → WindowsEvent
    WindowsEvent | where Channel == "Security" | where EventID in (4673)

The same events land in SecurityEvent (Windows Security Events connectors) or WindowsEvent (Windows Event Forwarding); many built-in rules read SecurityEvent only.

WinEventLog:SysmonRaw write attempts targeting \\.\PhysicalDrive0 or sector 0 (MBR/partition table)
  • Windows event logs (Azure Monitor Agent) → Event
    Event | where Source == "Microsoft-Windows-Sysmon"
  • Windows Forwarded Events → WindowsEvent
    WindowsEvent | where Provider == "Microsoft-Windows-Sysmon"

Sysmon has no dedicated Sentinel connector: it is collected as a Windows event log into Event or WindowsEvent.

WinEventLog:SysmonEventCode=6
  • Windows event logs (Azure Monitor Agent) → Event
    Event | where Source == "Microsoft-Windows-Sysmon" | where EventID in (6)
  • Windows Forwarded Events → WindowsEvent
    WindowsEvent | where Provider == "Microsoft-Windows-Sysmon" | where EventID in (6)

Sysmon has no dedicated Sentinel connector: it is collected as a Windows event log into Event or WindowsEvent.

AN0828 Linux

Execution of utilities (dd, hdparm, sgdisk) or custom binaries attempting to overwrite disk boot structures (/dev/sda MBR sector or partition tables). Detection correlates shell execution with syscalls writing to sector 0 or disk metadata blocks.

MITRE log sourceIn Microsoft Sentinel
auditd:SYSCALLwrite syscalls to /dev/sd* targeting offset 0Not mapped to Sentinel yet.
auditd:EXECVEExecution of dd/sgdisk with arguments writing to sector 0 or partition tableNot mapped to Sentinel yet.

AN0829 macOS

Abnormal invocation of diskutil or asr that modifies partition tables or initializes raw devices. Monitor for IOKit system calls targeting disk headers or EFI boot sectors, correlated with elevated privileges.

MITRE log sourceIn Microsoft Sentinel
macos:unifiedlogdiskutil partitionDisk or eraseVolume with partition scheme modificationsNot mapped to Sentinel yet.
macos:unifiedlogIOKit raw disk write to EFI/boot partition sectorsNot mapped to Sentinel yet.

AN0830 Network Devices

Execution of destructive CLI commands such as format flash:, format disk, or equivalent vendor-specific commands that erase filesystem structures. Detection correlates AAA logs showing privileged access with immediate format/erase commands.

MITRE log sourceIn Microsoft Sentinel
networkdevice:cliformat flash:, format disk, reformat commandsNot mapped to Sentinel yet.
networkdevice:syslogPrivileged login followed by destructive format commandNot mapped to Sentinel yet.

Content Hub rules tagged with it (0)

No Content Hub rule is tagged with this technique.

Rules tagged with this technique (or a sub-technique) in their metadata. Whether one fits your connectors is the coverage view (M2).

In Sigma rules

1 SigmaHQ community rule name it in their tags.

Community rules, not Microsoft's, and not checked by VeriKQL (Sigma is not KQL). From SigmaHQ/sigma at f083329, under the Detection Rule License (DRL) 1.1; each rule is credited to its author.

Mitigations

MITRE ATT&CK® is a registered trademark of The MITRE Corporation. VeriKQL is not affiliated with or endorsed by MITRE. ATT&CK data © The MITRE Corporation, used under its terms of use.