Diskshadow Script Mode - Execution From Potential Suspicious Location

 Original Source: [Sigma source]
Title: Diskshadow Script Mode - Execution From Potential Suspicious Location
Status: test
Description:Detects execution of "Diskshadow.exe" in script mode using the "/s" flag where the script is located in a potentially suspicious location.
References:
  -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: Nasreddine Bencherchali (Nextron Systems)
Date: 2023-09-15
modified:2024-03-05
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:
  -False positives may occur if you execute the script from one of the paths mentioned in the rule. Apply additional filters that fits your org needs.
Level: medium