Impact · Windows · LOLBAS
vssadmin.exe
Volume Shadow Copy administration
Manages volume shadow copies. Deleting or resizing shadow copies removes the restore points used to recover files, which is a signature step in ransomware before encryption.
Legitimate use
Admins use it to list and manage shadow copies and their storage.
Subcommands
Deletes shadow copies. With shadows /all it removes all restore points.
HighActs on shadow copies, used with delete, list or create.
LowChanges the storage for shadow copies. Shrinking it can silently drop existing copies.
HighCreates a shadow copy (server editions). Can be used to snapshot files for extraction.
MediumLists shadow copies, storage or providers.
LowSwitches
Targets all shadow copies.
HighSuppresses prompts, so a delete runs without confirmation.
MediumCommand lines to worry about
- Critical
Shadow copies deleted
Deleting shadow copies removes local recovery points. One of the clearest pre-encryption ransomware steps. Treat as an active impact event.
Detection regex
vssadmin(\.exe)?\s+delete\s+shadows\b - High
Shadow storage resized
Shrinking shadow storage can silently discard existing shadow copies, a quieter way to defeat recovery. Check the size value.
Detection regex
vssadmin(\.exe)?\s+resize\s+shadowstorage\b
Where it is recorded
- Security4688Process creation with the full command line, when command-line auditing is enabled.
- Sysmon1Process creation with command line, hashes and parent process.
- System7036The Volume Shadow Copy service changing state around the command.
Community detections
4 SigmaHQ rules for vssadmin.exe. The explainer checks every pasted command line against all of them.
- HighShadow Copies Deletion Using Operating Systems Utilities
Shadow Copies deletion using operating systems utilities
T1070T1490by Florian Roth (Nextron Systems), Michael Haag, Teymur Kheirkhabarov, Daniil Yugoslavskiy, oscd.community, Andreas Hunkeler (@Karneades)
- HighWebshell Detection With Command Line Keywords
Detects certain command line parameters often used during reconnaissance activity via web shells
T1505.003T1018T1033T1087by Florian Roth (Nextron Systems), Jonhnathan Ribeiro, Anton Kutepov, oscd.community, Chad Hudson, Matt Anderson
- HighWebshell Hacking Activity Patterns
Detects certain parent child patterns found in cases in which a web shell is used to perform certain credential dumping or exfiltration activities on a compromised system
T1505.003T1018T1033T1087by Florian Roth (Nextron Systems)
- MediumShadow Copies Creation Using Operating Systems Utilities
Shadow Copies creation using operating systems utilities, possible credential access
T1003T1003.002T1003.003by Teymur Kheirkhabarov, Daniil Yugoslavskiy, oscd.community
Rules from SigmaHQ (rules/windows/process_creation), Detection Rule License (DRL) 1.1. Each rule links to its source and credits its authors.