Skip to content
WETNav

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.

Worst caseHigh

Subcommands

exec

Runs a program from within a script. Can launch an arbitrary binary.

High

Switches

/s<value>

Runs commands from a script file, which can create and mount a shadow copy unattended.

High
/i

Interactive mode.

Low

Command 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 regexdiskshadow(\.exe)?\s+.*\/s\s+\S+

    T1003.003

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.

Rules from SigmaHQ (rules/windows/process_creation), Detection Rule License (DRL) 1.1. Each rule links to its source and credits its authors.