A coral-red figure inside a shut server room copies files into a box that sends them out through an ordinary cable.

Data Exfiltration

Data exfiltration is the unauthorized transfer of data out of a computer system or network. In an attack, it is the step where an outside attacker or malicious insider with access copies or moves files and records, often to a place they control and often after gathering and packing them first, through routes that can look like normal traffic.

The term turns up in breach and ransomware reports: the attackers "exfiltrated" data. That names one specific step. Getting into a network and getting data out of it are separate events, and data exfiltration is the second.

CyberRecaps is supported by its readers. We may earn an affiliate commission at no extra cost to you if you buy through a link on this page.

Ghost in the Wires by Kevin Mitnick
A child photographs answers left in a drawer and sends the photos out hidden among ordinary group chat messages.

Explain It Like I'm 10

Think of a classmate who slips back into the classroom at break and finds tomorrow's test answers in the teacher's drawer. They leave the sheet where it is and photograph each page instead. Later they send the photos to a friend a few at a time, through the same group chat the whole class uses all day. Nothing is missing from the drawer, and a few more pictures in a busy chat look like nothing at all. Data exfiltration works roughly like that: someone already inside copies the information and moves it out in ways that blend into normal activity.

Data Exfiltration Quiz

Test your knowledge about Data Exfiltration - maybe you already know everything about it.

EasyQuestion 1 of 3

What is data exfiltration?

Files are gathered into one pile, packed into a smaller locked crate, and sent out while the originals stay behind.

How Data Exfiltration Works

Exfiltration comes after the way in. Whoever takes the data has already reached it: an outside attacker who broke in, or an insider who already had access.

From there, the work tends to happen in steps. The attacker collects the data they want, and may gather it in one place before sending anything. MITRE ATT&CK, a public knowledge base of attacker tactics and techniques drawn from real-world observations, calls this staging. Staging can reduce the number of connections out to the attacker's own server, and MITRE lists that, together with avoiding detection, as a reason attackers do it.

Next, the data is often packed. Compression makes it smaller, so there is less to send. Encryption hides what the data is from anyone inspecting it, and ATT&CK notes that this can make the exfiltration less conspicuous to a defender.

Last comes the transfer, over one of the routes described below. The data can be copied rather than moved, so the original files may stay exactly where they were.

Five tubes leave one building toward a C2 server, a DNS tunnel, cloud storage, a second cloud account and a USB drive.

The Routes Data Leaves By

ATT&CK treats exfiltration as a tactic of its own, its word for a goal the attacker pursues: Exfiltration (TA0010), whose aim is stealing data. It lists ten techniques under that tactic. Grouped by route, they come down to a few families:

  • The attacker's existing channel: Malware an attacker steers remotely stays in contact with a server the attacker controls, to take instructions and send results back. That line is the command and control (C2) channel. Data can travel over it too, encoded into the normal traffic "using the same protocol as command and control communications."
  • A different route out: Data can leave over a different protocol, meaning a different kind of network traffic, from the one the C2 channel uses. Some techniques hide data inside traffic that looks routine: DNS tunneling, for instance, tucks it inside ordinary DNS queries.
  • A trusted web service: Data can be uploaded to a legitimate online service, such as cloud storage. ATT&CK files this as exfiltration over web service and notes that these services can give attackers cover, because computers on the network are likely talking to them already.
  • Another cloud account: In cloud environments, data can be shared, synced or backed up to a second account the attacker controls on the same service.
  • Physical media and other connections: Data can leave on a removable drive, or over a different network connection from the one the C2 channel uses.

Exfiltration through AI assistants

MITRE added AI-Enabled Exfiltration (T1700) to the tactic in ATT&CK v20, released on October 13, 2026. It covers AI assistants and agents that an organization has connected to its data and to tools. An attacker can use prompt injection, instructions slipped into a request or into data the agent takes in, to make the agent use its tool connections in ways nobody authorized or intended, including to send data out. The agent does what its connections allow; the instructions come from the wrong person.

A new catalogue entry shows when MITRE added the technique, not when the attack method first existed. An abused agent does not need a special route out: MITRE notes that other exfiltration techniques, such as exfiltration over a web service, likely apply to move the data out of the network. The lesson reaches beyond AI: a system that can both read sensitive data and reach the outside is a possible route.

Red packets hide among ordinary packets on a network line while the monitor stays calm and the originals stay untouched.

Why Exfiltration Is Hard to Notice

A copy leaves nothing obviously missing: when data is copied rather than moved, files and databases can look untouched.

The transfer can also be made to resemble traffic the network already carries. Data sent over the C2 channel uses that channel's normal protocol. A web service the organization already uses can offer cover. Encrypted data can look like scrambled content to an inspector who cannot read it, rather than the records inside.

Size and timing can be tuned as well. ATT&CK describes attackers sending data in fixed-size chunks, or keeping packets under certain sizes, to stay below the thresholds that trigger network transfer alerts, and scheduling transfers for certain times of day to blend in with normal activity.

None of this makes exfiltration invisible. It means the transfer alone may not stand out, which is why defenders also watch the steps around it.

Three small scenes compared: a breach with access only, a leak with exposed files, and exfiltration with files moving out.

Data Exfiltration vs. a Data Breach vs. a Data Leak

The difference is what happened to the data:

Term

What it describes

Is an unauthorized transfer out of the system required?

Data breach

Someone without authorization gets access, or potential access, to sensitive information

No: access is enough

Data leak

Sensitive data is exposed, often by accident

No: exposure is enough

Data exfiltration

Data is transferred out of a system without authorization, often copied or moved to storage an attacker controls

Yes: that transfer is what makes it exfiltration

IBM's explainer sums up the overlap: "All data exfiltration requires a data leak or a data breach, but not all data leaks or data breaches lead to data exfiltration."

Attacker-controlled storage is a common destination for malicious exfiltration, not a requirement. NIST defines exfiltration as the unauthorized transfer of information from a system, and NIST's control for preventing exfiltration covers both intentional and unintentional exfiltration. IBM's explainer, by contrast, counts it only once the data reaches storage under the attacker's control.

Terminology varies across sources. Calling a leak accidental and exfiltration deliberate is common usage rather than a fixed standard.

An attacker holds a box of stolen files and a countdown clock as a leak site board lists victim companies.

Why Data Exfiltration Matters

Stolen data is leverage. Once a copy sits with the attacker, the attacker can threaten to release it. A ransomware group can use this on a dedicated leak site, a criminal-run website where a group lists organizations it says it has breached and publishes their stolen data if a ransom goes unpaid.

Encrypting the victim's files is not required for that pressure. In its 2026 report on more than 750 incidents it investigated, Palo Alto Networks' Unit 42 saw more attackers "skip encryption and move straight to data theft and disruption." From the attacker's perspective, Unit 42 says, that route is faster and quieter and avoids the signals defenders relied on to detect ransomware.

So exfiltration can be one step in a bigger attack or the point of the whole thing. That is what ATT&CK's tactic label captures: a goal, with many techniques for reaching it.

A recent case: theft without ransomware

A joint advisory from US, UK, Canadian and Australian agencies, last updated in July 2025, describes how the Scattered Spider group works. The group has exfiltrated data after gaining access and "threatened to release it without deploying ransomware." In many instances it went for an organization's access to Snowflake, a cloud data platform, to take large volumes of data in a short time, "often running thousands of queries immediately." For more recent incidents, the advisory adds, citing trusted third parties, the group may have deployed ransomware as well.

The case shows theft as the whole attack, with ransomware a possible addition. It also shows what exfiltration from a cloud service can look like: not one big file, but a burst of requests for data.

A defender links four monitor panels showing file reads, compression, a traffic spike and a burst of cloud queries.

How Defenders Detect Data Exfiltration

Because the transfer can blend in, detection also looks at the chain around it. Defenders look for combinations of events that stand out against normal activity:

  • Data read, then sent: ATT&CK's detection guidance for exfiltration over the C2 channel watches for processes that read sensitive files and then immediately start unusual outbound connections or bulk transfers, and for programs that do not normally use the network suddenly sending data out.
  • Staging and packing: Sensitive files copied into temporary or public folders and then compressed can reveal the gathering step before anything leaves.
  • Traffic that departs from the usual: NIST's control for preventing exfiltration includes analyzing traffic profiles to spot deviations from the volume and types of traffic expected.
  • Unusual activity in cloud services: A sudden run of thousands of queries against a cloud data platform, as in the Scattered Spider case, is the kind of pattern to look for.

Each signal has gaps. Small chunks and scheduled transfers can keep each transfer under alert thresholds and in step with normal traffic. The clues can also be scattered: Unit 42 found that in many engagements the evidence was in the logs, but teams had to stitch together data from several disconnected sources, which slowed detection in the critical early minutes. Speed adds pressure: in the fastest cases Unit 42 investigated, attackers went from first access to data exfiltration in 72 minutes.

Four control stations along a data tube, with a sealed crate passing the scanner unread.

Preventing Data Exfiltration, and Where Each Control Stops

Four kinds of control help, and each has a boundary:

  • Less data within reach: Limiting what users, applications and AI agents can access reduces how much data is exposed if one of them is compromised or misused. In plain terms, that is least privilege, giving each account, program or agent only the access its job needs, and removing permissions it no longer needs. For AI agents, one of ATT&CK's mitigations is restricting file permissions to limit what an agent can expose. The boundary: these controls reduce exposure, but they do not stop misuse of data that stays legitimately accessible.
  • Fewer ways out: NIST's control includes disconnecting external network interfaces except when explicitly needed. For AI assistants, one of ATT&CK's mitigations is keeping them contained within the organization's network, without outside access. The boundary: the routes the business needs stay open, including the web services its computers already use, and those are the routes that give cover.
  • Inspecting what leaves: Data loss prevention (DLP) tools watch data on devices, on the network and in storage, using content inspection and context such as who is sending what, where and when, to spot sensitive data leaving. What a tool can inspect depends on where it sits. Network inspection cannot read encrypted traffic without appropriate visibility; ATT&CK's DLP mitigation, for example, covers sensitive data sent over unencrypted protocols. Endpoint DLP works on the device instead: it can inspect content the device can read and block or restrict actions on sensitive files, and Microsoft's documentation describes restricting uploads of sensitive files to unapproved cloud services through supported browsers. The boundary: a file the attacker encrypts before sending cannot be inspected where the plaintext or the key is unavailable. Encryption creates blind spots; it does not automatically defeat every DLP control.
  • Watching behavior: The detection signals above can work without reading the content; ATT&CK's analytics flag file reads followed by unusual outbound sessions, "particularly with encrypted or binary payloads." Their boundary is the set of gaps described above: small or scheduled transfers, trusted services, and clues spread across systems.