DET-135 · human · confidence High
Shadow Copy Deletion Command
Alert on the command that deletes Windows volume shadow copies, which wipes restore points.
Volume shadow copies let users and responders recover earlier file versions. Deleting them removes evidence and recovery paths. The classic way is running vssadmin with delete shadows, though wmic shadowcopy delete, PowerShell Win32_ShadowCopy calls and diskshadow do the same.
Watch process creation events with full command lines. Pay special attention to deletions soon after a large file copy or after sabotage, and to non-administrative users who somehow ran it.
- Data sources
- EDR process eventsSysmon Event ID 1Windows Security 4688 with command line
- Platforms
- Windows
Logic
process_creation | where command_line matches /(vssadmin.*delete\s+shadows|wmic.*shadowcopy.*delete|diskshadow.*delete|Get-WmiObject.*Win32_ShadowCopy.*Delete)/i
False positives
Backup software and storage cleanup scripts sometimes remove old snapshots. Allowlist the signed backup agent.