Detection rules › Kusto Query Language

Potential re-named sdelete usage

Source
upstream

'This detection looks for command line parameters associated with the use of Sysinternals sdelete (https://docs.microsoft.com/sysinternals/downloads/sdelete) to delete multiple files on a host's C drive. A threat actor may re-name the tool to avoid detection and then use it for destructive attacks on a host.'

MITRE ATT&CK coverage

TacticTechniques
Defense EvasionT1036 Masquerading
ImpactT1485 Data Destruction

Event coverage

ProviderEvent IDTitle
Security-Auditing4688A new process has been created.

Stages and Predicates

Stage 1: source

SecurityEvent

Stage 2: where

EventID eq "4688"

Stage 3: where

Process ne "sdelete.exe"

Stage 4: where

CommandLine match ["accepteula", "-r", "-s", "-q", "c:/"]

Stage 5: where

not
  CommandLine match "sdelete"

Stage 6: extend

Stage 7: extend

Stage 8: extend

Exclusions

Top-level NOT(...) conjuncts — predicates this rule actively suppresses.

StageFieldKindExcluded values
1CommandLinematchsdelete

Indicators

Each row is a field, operator, and value that the rule matches. The corpus column counts how many other rules in the catalog look for the same combination: high numbers point to widely-used, community-vetted indicators. Blank or 1 shows that the indicator is specific to this rule.

FieldKindValues
CommandLinematch
  • -q corpus 2 (sigma 2)
  • -r corpus 3 (sigma 3)
  • -s corpus 2 (sigma 2)
  • accepteula corpus 3 (sigma 3)
  • c:/
EventIDeq
  • 4688
Processne
  • sdelete.exe