Sigma rule: Diskshadow Script Mode Execution

A detection rule from the SigmaHQ repository, shown as its author published it. Dataset version ref-bc5be79930ea, updated 2024-03-13T00:00:00.000Z.

Rule

Title
Diskshadow Script Mode Execution
Status
test
Level
medium
Author
Ivan Dyachkov, oscd.community
Date
2020-10-07
Modified
2024-03-13
File
rules-threat-hunting/windows/process_creation/proc_creation_win_diskshadow_script_mode.yml
Commit
ccbb0369507f796db0b0ae6854c8a2be471b9d84

Detects execution of "Diskshadow.exe" in script mode using the "/s" flag. Attackers often abuse "diskshadow" to execute scripts that deleted the shadow copies on the systems. Investigate the content of the scripts and its location.

Log source

product
windows
category
process_creation

Detection

selection_img:
    - OriginalFileName: 'diskshadow.exe'
    - Image|endswith: '\diskshadow.exe'
selection_cli:
    CommandLine|contains|windash: '-s '
condition: all of selection_*

False positives (as the rule lists them)

  • Likely from legitimate backup scripts

Tags

  • attack.stealth
  • attack.t1218
  • attack.execution
  • detection.threat-hunting

MITRE ATT&CK ids this rule names

Related rules

References

Read on 2026-11-03T00:58:21.399Z under licence sigma-drl-1.1@d5f4c36a from https://github.com/SigmaHQ/sigma/blob/ccbb0369507f796db0b0ae6854c8a2be471b9d84/rules-threat-hunting/windows/process_creation/proc_creation_win_diskshadow_script_mode.yml

Sources and licences

  • SigmaHQ

    "Diskshadow Script Mode Execution" by Ivan Dyachkov, oscd.community (SigmaHQ). Rule: https://github.com/SigmaHQ/sigma/blob/ccbb0369507f796db0b0ae6854c8a2be471b9d84/rules-threat-hunting/windows/process_creation/proc_creation_win_diskshadow_script_mode.yml.
    Licensed under the Detection Rule License (DRL) 1.1: https://github.com/SigmaHQ/Detection-Rule-License

    Detection Rule License (DRL) 1.1

Cite this page

Dragons Eye Ransomware Tracker, "Sigma rule: Diskshadow Script Mode Execution",
entity page, dataset version ref-bc5be79930ea, updated 2024-03-13T00:00:00.000Z,
https://ransomware-tracker.com/detections/sigma/0c2f8629-7129-4a8a-9897-7e0768f13ff2 (accessed 2026-11-03).
Underlying source: SigmaHQ rule 0c2f8629-7129-4a8a-9897-7e0768f13ff2, commit ccbb0369507f796db0b0ae6854c8a2be471b9d84.

Pages change. The dataset version identifies the data, but no archive of old versions is kept, so this citation cannot be replayed later.