Diskshadow Script Mode - Execution From Potential Suspicious Location (via process_creation)
This rule detects execution of "Diskshadow.exe" in script mode using the "/s" flag where the script is located in a potentially anomalous location.
SigmamediumWindowsv1
sigma
diskshadow-script-mode-execution-from-potential-suspicious-location-via-process-creation
title: Diskshadow Script Mode - Execution From Potential Suspicious Location (via process_creation)
id: 705fe494-81ab-5da0-ac60-0da08f34a02b
status: stable
description: This rule detects execution of "Diskshadow.exe" in script mode using the "/s" flag where the script is located in a potentially anomalous location.
references:
- https://attack.mitre.org/techniques/T1218/
- https://bohops.com/2018/03/26/diskshadow-the-return-of-vss-evasion-persistence-and-active-directory-database-extraction/
- https://www.ired.team/offensive-security/credential-access-and-credential-dumping/ntds.dit-enumeration
- https://medium.com/@cyberjyot/lolbin-execution-via-diskshadow-f6ff681a27a4
- https://learn.microsoft.com/en-us/windows-server/administration/windows-commands/diskshadow
- https://www.lifars.com/wp-content/uploads/2022/01/GriefRansomware_Whitepaper-2.pdf
- https://www.zscaler.com/blogs/security-research/technical-analysis-crytox-ransomware
- https://research.checkpoint.com/2022/evilplayout-attack-against-irans-state-broadcaster/
author: Huntrule Team
date: 2026-07-12
tags:
- attack.stealth
- attack.t1218
logsource:
category: process_creation
product: windows
detection:
selection_img:
- OriginalFileName: 'diskshadow.exe'
- Image|endswith: '\diskshadow.exe'
selection_cli:
CommandLine|contains|windash: '-s '
selection_paths:
CommandLine|contains:
- ':\Temp\'
- ':\Windows\Temp\'
- '\AppData\Local\'
- '\AppData\Roaming\'
- '\ProgramData\'
- '\Users\Public\'
condition: all of selection_*
falsepositives:
- Unknown
level: medium
Known false positives
- Unknown
Detection content is published as a reviewed draft. Tune thresholds and exclusions against your own telemetry before enabling this rule for alerting.