Detection rules › Sigma

Potentially Suspicious Ping/Copy Command Combination

Severity
medium
Author
X__Junior (Nextron Systems)
Source
upstream

Detects uncommon and potentially suspicious one-liner command containing both "ping" and "copy" at the same time, which is usually used by malware.

MITRE ATT&CK coverage

TacticTechniques
Defense EvasionT1070.004 Indicator Removal: File Deletion

Event coverage

ProviderEvent IDTitle
Sysmon1Process creation

Stages and Predicates

Stage 1: all of selection_cmd

or:
Image|endswith: '\cmd.exe'
OriginalFileName: Cmd.Exe

Stage 2: all of selection_action

CommandLine|contains: 'copy '
CommandLine|contains: ping

Stage 3: all of selection_cli_1

CommandLine|contains: ' -n '

Stage 4: all of selection_cli_2

CommandLine|contains: ' -y '

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
  • -n corpus 5 (sigma 5)
  • -y
  • copy corpus 11 (sigma 11)
  • ping corpus 4 (sigma 4)
Imageends_with
  • \cmd.exe corpus 92 (sigma 92)
OriginalFileNameeq
  • Cmd.Exe corpus 32 (sigma 30, splunk 2)