Detectionmediumtest

Diskshadow Script Mode - Execution From Potential Suspicious Location

Detects execution of "Diskshadow.exe" in script mode using the "/s" flag where the script is located in a potentially suspicious location.

Open in Detection LabConvert ruleBuild Package
Nasreddine BencherchaliCreated 2023-09-15Updated 2024-03-05fa1a7e52-3d02-435b-81b8-00da14dd66c1windows
Log Source
WindowsProcess Creation
ProductWindows← raw: windows
CategoryProcess Creation← raw: process_creation

Events generated when a new process is spawned on the system. Covers command-line arguments, parent/child relationships, and process metadata.

Detection Logic
Detection Logic3 selectors
detection:
    selection_img:
        - OriginalFileName: 'diskshadow.exe'
        - Image|endswith: '\diskshadow.exe'
    selection_cli:
        CommandLine|contains|windash: '-s '
    selection_paths:
        CommandLine|contains:
            # Note: Add additional susp paths based on your org needs
            - ':\Temp\'
            - ':\Windows\Temp\'
            - '\AppData\Local\'
            - '\AppData\Roaming\'
            - '\ProgramData\'
            - '\Users\Public\'
    condition: all of selection_*
False Positives

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.

Rule Metadata
Rule ID
fa1a7e52-3d02-435b-81b8-00da14dd66c1
Status
test
Level
medium
Type
Detection
Created
2023-09-15
Modified
2024-03-05
Path
rules/windows/process_creation/proc_creation_win_diskshadow_script_mode_susp_location.yml
Raw Tags
attack.stealthattack.t1218
View on GitHub