Detection rules › Sigma

Suspicious Ping/Del Command Combination

Severity
high
Author
Ilya Krestinichev
Source
upstream

Detects a method often used by ransomware. Which combines the "ping" to wait a couple of seconds and then "del" to delete the file in question. Its used to hide the file responsible for the initial infection for example

MITRE ATT&CK coverage

TacticTechniques
Defense EvasionT1070.004 Indicator Removal: File Deletion

Event coverage

ProviderEvent IDTitle
Sysmon1Process creation
Security-Auditing4688A new process has been created.

Stages and Predicates

Stage 1: all of selection_count

CommandLine|contains: ' -n '

Stage 2: all of selection_nul

CommandLine|contains: Nul

Stage 3: all of selection_del_param

or:
CommandLine|contains: ' -f '
CommandLine|contains: ' -q '

Stage 4: all of selection_all

CommandLine|contains: 'del '
CommandLine|contains: ping

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
  • -f corpus 5 (sigma 5)
  • -n corpus 5 (sigma 5)
  • -q corpus 2 (sigma 2)
  • Nul
  • del corpus 5 (sigma 5)
  • ping corpus 4 (sigma 4)