Credential access · Windows · LOLBAS
diskshadow.exe
DiskShadow
Scripts the Volume Shadow Copy Service. It can create and mount a shadow copy from a script, which is used to read locked files such as NTDS.dit, and its exec can run a program.
Legitimate use
Admins and backup tools use it to script shadow copy creation and exposure.
Subcommands
Runs a program from within a script. Can launch an arbitrary binary.
HighSwitches
Runs commands from a script file, which can create and mount a shadow copy unattended.
HighInteractive mode.
LowCommand lines to worry about
- High
DiskShadow run from a script
A diskshadow script can create and mount a shadow copy to read locked files like NTDS.dit. Check the script content and any copy that follows.
Detection regex
diskshadow(\.exe)?\s+.*\/s\s+\S+
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.
- Sysmon11Files created when content is copied out of the mounted shadow copy.
Community detections
3 SigmaHQ rules for diskshadow.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)
- MediumDiskshadow Script Mode - Execution From Potential Suspicious Location
Detects execution of "Diskshadow.exe" in script mode using the "/s" flag where the script is located in a potentially suspicious location.
T1218by Nasreddine Bencherchali (Nextron Systems)
- MediumDiskshadow Script Mode - Uncommon Script Extension Execution
Detects execution of "Diskshadow.exe" in script mode to execute an script with a potentially uncommon extension. Initial baselining of the allowed extension list is required.
T1218by Nasreddine Bencherchali (Nextron Systems)
Rules from SigmaHQ (rules/windows/process_creation), Detection Rule License (DRL) 1.1. Each rule links to its source and credits its authors.