Data exfiltration
| Class | Data exposure |
|---|---|
| Also known as | Data theft; exfil |
| MITRE ATT&CK | T1567 Exfiltration Over Web Service; T1537 Transfer Data to Cloud Account |
| Typical severity | Critical |
| Affects | Servers with outbound internet access, cloud storage, disk and database snapshots, and SaaS accounts with sharing features |
An attacker who can read a database or a storage bucket still has to move a copy to a place they control before the data is theirs. Data exfiltration is that step. Two routes are common in web and cloud systems. In the first, the data is uploaded to a legitimate external service such as Google Drive, Mega, a Telegram bot or a webhook address.1 In the second, it never leaves the cloud provider: it is shared or copied to another account on the same service that the attacker owns.2
The data is first reached by another route: stolen keys (Stolen cloud credentials), a Public cloud storage bucket or Exposed backups. In cloud extortion attacks the copy is made first and the backups are deleted after it, so the victim cannot restore it.3
Uploads to web services
A well-known service gives cover. A server or laptop is likely to be talking to it already before the break-in, firewall rules may already let traffic to it through, and the connection is encrypted with TLS, so a network monitor sees an HTTPS session to a familiar name and not the contents.1 Code repositories, cloud storage, text paste sites and webhooks are all used this way. Recorded cases include uploads to Google Drive, to file.io and anonymfiles.com and to Mega, and messages sent through the Telegram Bot API.1
Discord, Slack and webhook.site let anyone create a webhook address that accepts data pushed to it over HTTPS. An attacker can post staged data to that address directly, or link the victim's email or chat service to it so new messages are sent there automatically.4 The Shai-Hulud malware sent repository secrets to webhook.site.4 In the campaign tracked as Salesforce Data Exfiltration, records left through Salesforce's own API, including its Data Loader application.1
Transfers between cloud accounts
Monitoring that watches for large transfers leaving the network can miss a copy to another account at the same provider. The transfer goes through the provider's own API and stays inside its address space.2 Methods include sharing a disk snapshot or backup with an outside account, adding that account to a bucket policy, and creating an anonymous sharing link or, in Azure, a shared access signature (SAS) URL.2
On AWS, a snapshot of an EBS volume (the disk of a virtual server) is shared by changing its createVolumePermission attribute. With one 12-digit account ID added, the owner of that account can create its own disk from the snapshot:5
aws ec2 modify-snapshot-attribute \
--snapshot-id snap-0abcdef1234567890 \
--attribute createVolumePermission \
--operation-type add \
--user-ids 123456789012The setting Block public access for EBS snapshots, turned on per Region, stops public sharing; private sharing with a named account still works. Encryption changes the steps: only an unencrypted snapshot can be made public, and sharing an encrypted one also requires sharing the customer managed KMS key that encrypts it.5
Storm-0501
In August 2025, Microsoft Threat Intelligence described an attack by the group it tracks as Storm-0501 on a large company with several subsidiaries.3 With a stolen account holding the Global Administrator role in Entra ID, Microsoft's sign-in directory, the group called Microsoft.Authorization/elevateAccess/action, which gave it User Access Administrator over every Azure subscription, and then made itself Owner. It mapped the storage accounts and their protections, including resource locks and immutability policies, and changed accounts that were not reachable from the internet so they accepted connections from the internet and from its own servers. Where key access was enabled, it read the storage account keys.
It then copied the data to its own infrastructure with AzCopy, Microsoft's command-line copy tool, deleted snapshots, VM restore points and whole storage accounts, and demanded a ransom. For all of this the group used Azure's own operations and AzCopy, without the usual ransomware program.3
Detection
On a server, the sign is outbound traffic that does not fit the normal pattern: a process that rarely uses the network sending much more than it receives, or a run of archiving with tar followed by HTTPS uploads from curl or a script.1 In cloud accounts, the calls to watch are snapshot sharing, backup exports, bucket policy changes and SAS URL creation.2
Reads of individual files are harder to see. AWS CloudTrail records S3 object operations such as GetObject as data events, and trails do not log data events unless they are turned on, at extra cost.6 Amazon GuardDuty analyses S3 data events in its S3 Protection feature. Its finding Exfiltration:S3/AnomalousBehavior, default severity High, marks S3 calls that its machine learning model finds unusual for the caller, such as a user or role with no history, or one calling from an unusual location; Exfiltration:S3/MaliciousIPCaller marks calls such as GetObject and CopyObject from an IP address known for malicious activity.7
Limiting where data can go
Outbound traffic from servers can be sent through a web proxy that allows only approved services.1 External sharing in Google Drive and SharePoint can be turned off, blocked for certain domains or limited to certain users, and accounts that hold data get only the permissions they use (Principle of least privilege).2
AWS calls the wider set of controls a data perimeter: account-wide rules so that only trusted identities reach trusted resources from expected networks, on top of each resource's own permissions.8 One part is a deny rule on resource ownership. A policy that denies s3:PutObject when aws:ResourceAccount is not the company's account stops the company's own users and roles from writing into a bucket in another account, such as one the attacker owns; the rule allows nothing by itself and is used alongside the policies that grant access.9 The key aws:ResourceOrgID does the same for every account in an AWS Organization. Some AWS services work with buckets owned by AWS, such as those of AWS Data Exchange, and need an exception in such a rule.910
In SecFlash
SecFlash reports SF-DET-502 on the Detections page when a server sends several times more data than in its busiest minutes of the past two weeks, the pattern left by copying a database or files off the machine.
See also
- Stolen cloud credentials
- Deleting backups
- Ransomware and data destruction
- Public cloud storage bucket
- Exposed backups
- Cloud discovery
- Principle of least privilege
- Category: Data exposure
References
- a b c d e f MITRE (version 1.5, modified 12 May 2026). "Exfiltration Over Web Service, Technique T1567". MITRE ATT&CK.
- a b c d e MITRE (version 1.5, modified 24 October 2025). "Transfer Data to Cloud Account, Technique T1537". MITRE ATT&CK.
- a b c Microsoft Threat Intelligence (27 August 2025). "Storm-0501's evolving techniques lead to cloud-based ransomware". Microsoft Security Blog.
- a b MITRE (version 1.2, modified 12 May 2026). "Exfiltration Over Webhook, Sub-technique T1567.004". MITRE ATT&CK.
- back Amazon Web Services. "Logging data events". AWS CloudTrail User Guide.
- back Amazon Web Services. "GuardDuty S3 Protection finding types". Amazon GuardDuty User Guide.
- back Amazon Web Services. "Data perimeters on AWS". AWS.
- a b Amazon Web Services. "AWS: Deny access to Amazon S3 resources outside your account except AWS Data Exchange". AWS Identity and Access Management User Guide.
- back Amazon Web Services. "AWS global condition context keys". AWS Identity and Access Management User Guide.
External links
- Exfiltration, Tactic TA0010, MITRE ATT&CK
- Data perimeter policy examples, AWS Samples on GitHub