Response playbooks, investigation guides, and Atomic Red Team tests are Pro-only. Upgrade to unlock the full detection package for THREAT-CloudCLI-ScheduledExfil.
Upgrade to ProDetect Scheduled Transfer via Cloud Sync/Backup CLI Tools in Google Chronicle
Adversaries increasingly implement Scheduled Transfer (T1029) not with custom malware beacon loops but by abusing legitimate, already-installed cloud sync and backup command-line tools — rclone, restic, aws-cli (s3 sync/cp), azcopy, and gsutil — invoked on a fixed interval via cron, systemd timers, or Windows Task Scheduler. This approach blends with routine backup/sync traffic, uses signed and expected binaries, and often targets attacker-controlled cloud storage (a non-corporate S3 bucket, a personal rclone remote, a throwaway Backblaze/Azure account) rather than a custom C2 server, evading network-signature and IP-reputation detections. This pattern has been widely observed in ransomware pre-encryption exfiltration (rclone is the single most frequently recovered exfiltration tool across ransomware IR engagements) and in insider-driven bulk data theft where a scheduled job is created to stage and ship data outside normal working hours. This detection complements the existing T1029 coverage (which focuses on raw network beaconing and generic scheduled-task-spawns-transfer-tool patterns) by specifically fingerprinting cloud-storage CLI syntax, non-corporate destination indicators, and the scheduler-persistence mechanism used to make the transfer recurring.
MITRE ATT&CK
- Tactic
- Exfiltration
YARA-L Detection Query
rule scheduled_transfer_cloud_cli_from_scheduler {
meta:
author = "df00tech detection engineering"
description = "Detects cloud sync/backup CLI tools (rclone, restic, aws-cli, azcopy, gsutil, mc) launched by a Task Scheduler or service-host parent process with an upload-style command-line verb, consistent with T1029 Scheduled Transfer"
mitre_technique = "T1029"
severity = "HIGH"
events:
$proc.metadata.event_type = "PROCESS_LAUNCH"
$proc.target.process.file.full_path = /(?i)(rclone|restic|aws|azcopy|gsutil|mc)\.exe$/
$proc.principal.process.file.full_path = /(?i)(taskeng|taskhostw|svchost|schtasks)\.exe$/
$proc.target.process.command_line = /(?i)(sync|copy|\bcp\b|\bput\b|push|backup)/
outcome:
$risk_score = 75
$mitre_technique_id = "T1029"
condition:
$proc
}
rule scheduled_transfer_cloud_cli_recurring {
meta:
author = "df00tech detection engineering"
description = "Detects the same cloud CLI transfer binary invoked repeatedly with upload verbs across multiple days for the same host and user, consistent with a recurring scheduled exfiltration job"
mitre_technique = "T1029"
severity = "HIGH"
events:
$proc.metadata.event_type = "PROCESS_LAUNCH"
$proc.target.process.file.full_path = /(?i)(rclone|restic|aws|azcopy|gsutil)\.exe$/
$proc.target.process.command_line = /(?i)(sync|copy|\bcp\b|\bput\b|push)/
$proc.principal.hostname = $host
$proc.principal.user.userid = $user
match:
$host, $user over 7d
outcome:
$run_count = count($proc.metadata.id)
$risk_score = 70
condition:
$proc and $run_count >= 3
} Two Chronicle YARA-L rules. The first fires on a single-event match of a cloud CLI transfer tool launched by a scheduler/service-host parent process with an upload verb in the command line. The second uses a 7-day match window grouped by host and user to detect 3 or more upload-verb invocations of the same tool family, capturing the recurring-schedule pattern that a single-event rule cannot see.
Data Sources
Required Tables
False Positives & Tuning
- Approved backup automation using rclone/restic scheduled via Task Scheduler to a corporate storage destination
- CI/CD pipelines invoking aws s3 sync or azcopy on a recurring schedule to an approved bucket
- MSP-managed backup tooling built on rclone for scheduled multi-tenant backup rotation
Other platforms for THREAT-CloudCLI-ScheduledExfil
Testing Methodology
Validate this detection against 3 adversary techniques 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.
- Test 1Windows — Scheduled Task Running rclone Sync to External Remote
Expected signal: Windows Security Event ID 4698 (scheduled task created) for task name 'CloudBackupSync'. Sysmon Event ID 1 for schtasks.exe process creation with '/create /sc MINUTE /mo 30' in the command line. When the task fires: Sysmon Event ID 1 for taskhostw.exe spawning cmd.exe spawning rclone.exe with 'sync' in the command line.
- Test 2Windows — Recurring aws s3 sync Invocations Simulating a Scheduled Exfiltration Job
Expected signal: Sysmon Event ID 1: three Process Create events for aws.exe with 's3', 'sync', and '--endpoint-url' in the command line, spaced a few seconds apart (compressed for testing; production pattern spans days). Sysmon Event ID 3: connection attempts to 127.0.0.1:9999.
- Test 3Linux — Systemd Timer Triggering Scheduled restic Backup to External Repository
Expected signal: Auditd or Sysmon-for-Linux: file write events for /etc/systemd/system/restic-sync-test.service and .timer. Process execution events for systemctl with 'daemon-reload' and 'enable --now'. When the timer fires: execve event for restic with 'backup' argument, PPID belonging to systemd.
References (7)
- https://attack.mitre.org/techniques/T1029/
- https://rclone.org/docs/
- https://redcanary.com/blog/threat-intelligence/rclone-mass-file-transfer/
- https://www.cisa.gov/news-events/cybersecurity-advisories
- https://learn.microsoft.com/en-us/windows/win32/taskschd/task-scheduler-start-page
- https://github.com/redcanaryco/atomic-red-team/blob/master/atomics/T1029/T1029.md
- https://www.freedesktop.org/software/systemd/man/systemd.timer.html
Unlock playbooks & atomic tests with Pro
Get the full detection package for THREAT-CloudCLI-ScheduledExfil — response playbook and atomic red team tests, plus investigation guidance and hunting queries.
df00tech Pro — £29/user/month
Related Detections
Tactic Hub
Detection Variants (3)
Different telemetry and tradecraft for the same technique — pick the one that matches the data you collect.
- THREAT-ArchiveStaging-ScheduledExfilScheduled Batch Exfiltration of Compressed Archive StagingUse for archive staging — rar/7z multi-volume splitting ahead of a timed transfer, typical of ransomware double-extortion.
- THREAT-Exfil-ScheduledBulkTransferScheduled Off-Hours Bulk Data TransferUse for network-side detection — off-hours bulk-volume NetFlow, when you have no endpoint scheduler visibility.
- THREAT-Exfiltration-LinuxCronScheduledExfilScheduled Data Exfiltration via Linux Cron JobsUse for Linux hosts — cron/systemd-timer job creation correlated with auditd execution and outbound transfer.