CmdID

CmdID / Rules / Windows

Potential File Overwrite Via Sysinternals SDelete

A Sigma rule for process creation on Windows, by frack113.

high 1 ATT&CK technique 2 programs it names 3 everyday examples trip it

What it looks for

its detection, as SigmaHQ writes it
detection:
  filter:
    CommandLine|contains:
      - ' -h'
      - ' -c'
      - ' -z'
      - ' /\?'
  selection:
    OriginalFileName: 'sdelete.exe'
  condition: selection and not filter

The rule’s detection, its selections and fields in order of name. The whole rule, with its references and false positives, is on SigmaHQ, by frack113, under the Detection Rule License 1.1. CmdID evaluates it on a command line alone: a test on what a command line cannot show, such as the parent process or the user, is not met.

Command lines that trip it

everyday examples from tldr-pages, CC BY 4.0, each read by CmdID

Delete files with 3 passes on the page for sdelete

sdelete -p 3 path\to\file1 path\to\file2 ...Identify

Delete folders and its subdirectories with 1 pass (default) on the page for sdelete

sdelete -s path\to\directory1 path\to\directory2 ...Identify

Clean the free space of volume D: with 3 passes on the page for sdelete

sdelete -p 3 D:Identify

Programs and files it names

their pages here

ATT&CK

the techniques it is tagged with
T1485Data Destruction