Diskshadow 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.
Sigma rule (View on GitHub)
1title: Diskshadow Script Mode - Uncommon Script Extension Execution
2id: 1dde5376-a648-492e-9e54-4241dd9b0c7f
3related:
4 - id: fa1a7e52-3d02-435b-81b8-00da14dd66c1 # Diskshadow Script Mode - Execution From Potential Suspicious Location
5 type: similar
6 - id: 9f546b25-5f12-4c8d-8532-5893dcb1e4b8 # Potentially Suspicious Child Process Of DiskShadow.EXE
7 type: similar
8 - id: 56b1dde8-b274-435f-a73a-fb75eb81262a # Diskshadow Child Process Spawned
9 type: similar
10 - id: 0c2f8629-7129-4a8a-9897-7e0768f13ff2 # Diskshadow Script Mode Execution
11 type: similar
12status: experimental
13description: |
14 Detects execution of "Diskshadow.exe" in script mode to execute an script with a potentially uncommon extension.
15 Initial baselining of the allowed extension list is required.
16references:
17 - https://bohops.com/2018/03/26/diskshadow-the-return-of-vss-evasion-persistence-and-active-directory-database-extraction/
18 - https://www.ired.team/offensive-security/credential-access-and-credential-dumping/ntds.dit-enumeration
19 - https://medium.com/@cyberjyot/lolbin-execution-via-diskshadow-f6ff681a27a4
20 - https://learn.microsoft.com/en-us/windows-server/administration/windows-commands/diskshadow
21 - https://www.lifars.com/wp-content/uploads/2022/01/GriefRansomware_Whitepaper-2.pdf
22 - https://www.zscaler.com/blogs/security-research/technical-analysis-crytox-ransomware
23 - https://research.checkpoint.com/2022/evilplayout-attack-against-irans-state-broadcaster/
24author: Nasreddine Bencherchali (Nextron Systems)
25date: 2023-09-15
26modified: 2024-03-05
27tags:
28 - attack.defense-evasion
29 - attack.t1218
30logsource:
31 category: process_creation
32 product: windows
33detection:
34 selection_img:
35 - OriginalFileName: 'diskshadow.exe'
36 - Image|endswith: '\diskshadow.exe'
37 selection_flag:
38 CommandLine|contains|windash: '-s '
39 filter_main_ext:
40 # Note: can be changed to an "endswith" to avoid rare FPs. But you need to account for quoted paths
41 # Note: Using the ".txt" is based on the MS documentation example. Best add the extension you use internally before using this rule
42 CommandLine|contains: '.txt'
43 condition: all of selection_* and not 1 of filter_main_*
44falsepositives:
45 - False postitve might occur with legitimate or uncommon extensions used internally. Initial baseline is required.
46level: medium
References
Related rules
- Abusing Print Executable
- AddinUtil.EXE Execution From Uncommon Directory
- AgentExecutor PowerShell Execution
- Arbitrary DLL or Csproj Code Execution Via Dotnet.EXE
- Arbitrary File Download Via MSOHTMED.EXE