Detection rules › Sigma

Possible Coin Miner CPU Priority Param

Status
test
Severity
critical
Log source
product linux, service auditd
Author
Florian Roth (Nextron Systems)
Source
github.com/SigmaHQ/sigma

Detects command line parameter very often used with coin miners

MITRE ATT&CK coverage

TacticTechniques
Privilege EscalationT1068 Exploitation for Privilege Escalation

Rule body yaml

title: Possible Coin Miner CPU Priority Param
id: 071d5e5a-9cef-47ec-bc4e-a42e34d8d0ed
status: test
description: Detects command line parameter very often used with coin miners
references:
    - https://xmrig.com/docs/miner/command-line-options
author: Florian Roth (Nextron Systems)
date: 2021-10-09
modified: 2022-12-25
tags:
    - attack.privilege-escalation
    - attack.t1068
logsource:
    product: linux
    service: auditd
detection:
    cmd1:
        a1|startswith: '--cpu-priority'
    cmd2:
        a2|startswith: '--cpu-priority'
    cmd3:
        a3|startswith: '--cpu-priority'
    cmd4:
        a4|startswith: '--cpu-priority'
    cmd5:
        a5|startswith: '--cpu-priority'
    cmd6:
        a6|startswith: '--cpu-priority'
    cmd7:
        a7|startswith: '--cpu-priority'
    condition: 1 of cmd*
falsepositives:
    - Other tools that use a --cpu-priority flag
level: critical

Stages and Predicates

Stage 0: condition

1 of cmd*

Stage 1: cmd1

cmd1:
    a1|startswith: '--cpu-priority'

Stage 2: cmd2

cmd2:
    a2|startswith: '--cpu-priority'

Stage 3: cmd3

cmd3:
    a3|startswith: '--cpu-priority'

Stage 4: cmd4

cmd4:
    a4|startswith: '--cpu-priority'

Stage 5: cmd5

cmd5:
    a5|startswith: '--cpu-priority'

Stage 6: cmd6

cmd6:
    a6|startswith: '--cpu-priority'

Stage 7: cmd7

cmd7:
    a7|startswith: '--cpu-priority'

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
a1starts_with
  • --cpu-priority
a2starts_with
  • --cpu-priority
a3starts_with
  • --cpu-priority
a4starts_with
  • --cpu-priority
a5starts_with
  • --cpu-priority
a6starts_with
  • --cpu-priority
a7starts_with
  • --cpu-priority