Detection rules › Sigma

Potential Raspberry Robin CPL Execution Activity

Status
test
Severity
high
Log source
product windows, category process_creation
Author
Swachchhanda Shrawan Poudel
Source
github.com/SigmaHQ/sigma

Detects the execution of a ".CPL" file located in the user temp directory via the Shell32 DLL "Control_RunDLL" export function. This behavior was observed in multiple Raspberry-Robin variants.

MITRE ATT&CK coverage

Event coverage

ProviderEventTitle
SysmonEvent ID 1Process creation

Rule body yaml

title: Potential Raspberry Robin CPL Execution Activity
id: 92020b88-9caf-464f-bad8-cd0fb0aa2a81
status: test
description: |
    Detects the execution of a ".CPL" file located in the user temp directory via the Shell32 DLL "Control_RunDLL" export function.
    This behavior was observed in multiple Raspberry-Robin variants.
references:
    - https://tria.ge/240226-fhbe7sdc39/behavioral1
    - https://bazaar.abuse.ch/browse/signature/RaspberryRobin/
author: Swachchhanda Shrawan Poudel
date: 2024-03-07
tags:
    - attack.execution
    - attack.stealth
    - attack.t1218.011
    - detection.emerging-threats
logsource:
    category: process_creation
    product: windows
detection:
    # Example: "C:\Windows\system32\rundll32.exe" Shell32.dll,Control_RunDLL "C:\Users\xxxx\AppData\Local\Temp\xxxx.CPL"
    selection_parent_img:
        ParentImage|endswith:
            - '\rundll32.exe'
            - '\control.exe'
    selection_img:
        - Image|endswith: '\rundll32.exe'
        - OriginalFileName: 'RUNDLL32.EXE'
    selection_cli:
        CommandLine|contains|all:
            - 'shell32.dll'
            - 'Control_RunDLL'
            - '.CPL'
    selection_path:
        CommandLine|contains: '\AppData\Local\Temp\'
    condition: all of selection_*
falsepositives:
    - Unknown
level: high

Stages and Predicates

Stage 0: condition

all of selection_*

Stage 1: selection_parent_img

selection_parent_img:
    ParentImage|endswith:
        - '\rundll32.exe'
        - '\control.exe'

Stage 2: selection_img

selection_img:
    - Image|endswith: '\rundll32.exe'
    - OriginalFileName: 'RUNDLL32.EXE'

Stage 3: selection_cli

selection_cli:
    CommandLine|contains|all:
        - 'shell32.dll'
        - 'Control_RunDLL'
        - '.CPL'

Stage 4: selection_path

selection_path:
    CommandLine|contains: '\AppData\Local\Temp\'

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
  • .CPL corpus 3 (sigma 3)
  • Control_RunDLL corpus 5 (sigma 3, splunk 2)
  • \AppData\Local\Temp\ corpus 26 (sigma 26)
  • shell32.dll corpus 3 (sigma 3)
Imageends_with
  • \rundll32.exe corpus 95 (sigma 95)
OriginalFileNameeq
  • RUNDLL32.EXE corpus 62 (sigma 35, splunk 21, elastic 6)
ParentImageends_with
  • \control.exe
  • \rundll32.exe corpus 15 (sigma 15)