Detection rules › Sigma

Raspberry Robin Initial Execution From External Drive

Status
test
Severity
high
Log source
product windows, category process_creation
Author
@kostastsale
Source
github.com/SigmaHQ/sigma

Detects the initial execution of the Raspberry Robin malware from an external drive using "Cmd.EXE".

MITRE ATT&CK coverage

Event coverage

ProviderEventTitle
SysmonEvent ID 1Process creation

Rule body yaml

title: Raspberry Robin Initial Execution From External Drive
id: 2c6bea3a-ef58-4f2e-a775-4928f6b7c58a
related:
    - id: d52d2e87-eb03-4fac-961d-eb616da79788
      type: similar
status: test
description: Detects the initial execution of the Raspberry Robin malware from an external drive using "Cmd.EXE".
references:
    - https://redcanary.com/blog/raspberry-robin/
author: '@kostastsale'
date: 2022-05-06
tags:
    - attack.execution
    - attack.t1059.001
    - detection.emerging-threats
logsource:
    category: process_creation
    product: windows
detection:
    selection_parent:
        ParentImage|endswith: '\cmd.exe'
        ParentCommandLine|contains: '/r'
        ParentCommandLine|endswith:
            - '.bin'
            - '.ico'
            - '.lnk'
            - '.lo'
            - '.sv'
            - '.usb'
    selection_child_img:
        Image|endswith: '\msiexec.exe'
        CommandLine|contains|windash: '/q'
    selection_child_http:
        CommandLine|contains:
            - 'http:'
            - 'https:'
    condition: all of selection_*
falsepositives:
    - Unlikely
level: high

Stages and Predicates

Stage 0: condition

all of selection_*

Stage 1: selection_parent

selection_parent:
    ParentImage|endswith: '\cmd.exe'
    ParentCommandLine|contains: '/r'
    ParentCommandLine|endswith:
        - '.bin'
        - '.ico'
        - '.lnk'
        - '.lo'
        - '.sv'
        - '.usb'

Stage 2: selection_child_img

selection_child_img:
    Image|endswith: '\msiexec.exe'
    CommandLine|contains|windash: '/q'

Stage 3: selection_child_http

selection_child_http:
    CommandLine|contains:
        - 'http:'
        - 'https:'

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 transforms: windash corpus 8 (sigma 7, splunk 1)
  • http: corpus 5 (elastic 3, sigma 2)
  • https: corpus 5 (elastic 3, sigma 2)
Imageends_with
  • \msiexec.exe corpus 21 (sigma 21)
ParentCommandLineends_with
  • .bin
  • .ico
  • .lnk
  • .lo
  • .sv
  • .usb
ParentCommandLinematch
  • /r corpus 2 (sigma 2)
ParentImageends_with
  • \cmd.exe corpus 20 (sigma 20)