Detection rules › Sigma

PUA - Rclone Execution

Status
test
Severity
high
Log source
product windows, category process_creation
Author
Bhabesh Raj, Sittikorn S, Aaron Greetham (@beardofbinary) - NCC Group
Source
github.com/SigmaHQ/sigma

Detects execution of RClone utility for exfiltration as used by various ransomwares strains like REvil, Conti, FiveHands, etc

MITRE ATT&CK coverage

Event coverage

ProviderEventTitle
SysmonEvent ID 1Process creation

Rule body yaml

title: PUA - Rclone Execution
id: e37db05d-d1f9-49c8-b464-cee1a4b11638
related:
    - id: a0d63692-a531-4912-ad39-4393325b2a9c
      type: obsolete
    - id: cb7286ba-f207-44ab-b9e6-760d82b84253
      type: obsolete
status: test
description: Detects execution of RClone utility for exfiltration as used by various ransomwares strains like REvil, Conti, FiveHands, etc
references:
    - https://research.nccgroup.com/2021/05/27/detecting-rclone-an-effective-tool-for-exfiltration/
    - https://thedfirreport.com/2021/03/29/sodinokibi-aka-revil-ransomware
    - https://us-cert.cisa.gov/ncas/analysis-reports/ar21-126a
    - https://labs.sentinelone.com/egregor-raas-continues-the-chaos-with-cobalt-strike-and-rclone
    - https://www.splunk.com/en_us/blog/security/darkside-ransomware-splunk-threat-update-and-detections.html
author: Bhabesh Raj, Sittikorn S, Aaron Greetham (@beardofbinary) - NCC Group
date: 2021-05-10
modified: 2023-03-05
tags:
    - attack.exfiltration
    - attack.t1567.002
logsource:
    product: windows
    category: process_creation
detection:
    selection_specific_options:
        CommandLine|contains|all:
            - '--config '
            - '--no-check-certificate '
            - ' copy '
    selection_rclone_img:
        - Image|endswith: '\rclone.exe'
        - Description: 'Rsync for cloud storage'
    selection_rclone_cli:
        CommandLine|contains:
            - 'pass'
            - 'user'
            - 'copy'
            - 'sync'
            - 'config'
            - 'lsd'
            - 'remote'
            - 'ls'
            - 'mega'
            - 'pcloud'
            - 'ftp'
            - 'ignore-existing'
            - 'auto-confirm'
            - 'transfers'
            - 'multi-thread-streams'
            - 'no-check-certificate '
    condition: selection_specific_options or all of selection_rclone_*
falsepositives:
    - Unknown
level: high

Stages and Predicates

Stage 0: condition

selection_specific_options or all of selection_rclone_*

Stage 1: selection_specific_options

selection_specific_options:
    CommandLine|contains|all:
        - '--config '
        - '--no-check-certificate '
        - ' copy '

Stage 2: selection_rclone_img

selection_rclone_img:
    - Image|endswith: '\rclone.exe'
    - Description: 'Rsync for cloud storage'

Stage 3: selection_rclone_cli

selection_rclone_cli:
    CommandLine|contains:
        - 'pass'
        - 'user'
        - 'copy'
        - 'sync'
        - 'config'
        - 'lsd'
        - 'remote'
        - 'ls'
        - 'mega'
        - 'pcloud'
        - 'ftp'
        - 'ignore-existing'
        - 'auto-confirm'
        - 'transfers'
        - 'multi-thread-streams'
        - 'no-check-certificate '

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
  • copy corpus 4 (sigma 4)
  • --config
  • --no-check-certificate
  • auto-confirm
  • config corpus 16 (sigma 15, splunk 1)
  • copy corpus 5 (sigma 4, chronicle 1)
  • ftp corpus 2 (sigma 2)
  • ignore-existing
  • ls
  • lsd
  • mega
  • multi-thread-streams
  • no-check-certificate
  • pass corpus 2 (sigma 2)
  • pcloud
  • remote
  • sync
  • transfers
  • user corpus 17 (sigma 11, splunk 4, chronicle 2)
Descriptioneq
  • Rsync for cloud storage
Imageends_with
  • \rclone.exe