Security operations

What Is Data Exfiltration? How Data Is Stolen and How to Stop It

Data exfiltration is how a breach becomes a theft: data quietly leaves your network. Here are the methods, the warning signs and the controls that stop it.

Cysoro Security TeamPublished · 6 min read
Data leaving the networkSECURITY OPERATIONSDataexfiltrationHow data is stolen — and stopped.
Quick answer

Data exfiltration is the unauthorized transfer of information from a computer, network or cloud service to a person, location or service that should not receive it. It is the stage of an attack where stolen data actually leaves your environment, usually after an attacker gains access, finds sensitive files, copies them to a staging area and sends them out through email, cloud storage, a command channel or a USB drive.

Key takeaways

  • Data exfiltration is the theft stage of a breach: access alone is not the loss, the unauthorized transfer out is.
  • Common paths are email, cloud uploads, DNS tunneling, command channels, removable media and misconfigured cloud storage.
  • Prevention combines least privilege, data classification, DLP, egress controls and monitoring of outbound traffic for unusual volume or destinations.

A breach becomes a crisis at the moment data leaves. Until then, an attacker may only have a foothold. Once customer records, passwords or source code are copied out, the loss is real, and it is very hard to undo.

What is data exfiltration?

Data exfiltration is the unauthorized transfer of information from a system, network or cloud service to an outside destination. NIST defines exfiltration as the unauthorized transfer of information from an information system.

The key word is unauthorized. Backing up a file to company storage is normal. Sending the same file to a personal cloud account, an attacker server or a USB drive is not. The destination, not the file, makes it exfiltration.

MITRE ATT&CK groups exfiltration as tactic TA0010, described as the stage where the adversary is trying to steal data. It sits after collection, where the attacker gathers data, and before the impact, such as extortion or public release. You can read the tactic on the MITRE ATT&CK exfiltration page.

How does data exfiltration work?

Exfiltration usually follows four steps: gain access, find and collect the data, stage it in one place, then transfer it out. Each step is a chance to detect the attack, and attackers try to make each step look normal.

How exfiltration happens1Gain accessphishing, stolenpassword, insider2Find datasearch files, DBs,cloud buckets3Stage itcompress, encrypt,split into chunks4Transfer outcloud, email, DNS,USB or C2 channelDetection works best at staging and transfer, when volume and destinations change.
The four stages of data exfiltration, from access to transfer out. Illustration by Cysoro.

Access often comes from phishing, a stolen password or a compromised supplier account. Discovery is the attacker searching file shares, databases and cloud storage for the most valuable data. Staging means compressing or encrypting files into one archive, often in a temporary folder.

Transfer is the exfiltration itself. Attackers split large files into small chunks, send them slowly over days, or hide them inside normal-looking traffic so that volume alarms do not fire. Unit 42's 2025 incident response report, cited by Vectra AI, found a median time to exfiltration of about two days, with nearly one in five cases seeing data stolen within the first hour.

What are the main methods of data exfiltration?

The main methods are transfers over a command-and-control channel, web services, cloud accounts, alternative protocols such as DNS, and physical media. MITRE ATT&CK lists these as separate techniques under TA0010, because each one needs a different detection.

Exfiltration over a command-and-control channel

Malware already talking to its controller can send stolen data back through the same channel. The traffic blends with the control traffic, so it does not look like a separate upload.

Exfiltration to a cloud account

An attacker or insider uploads files to a personal or attacker-controlled cloud account. CISA advisories on ransomware groups have described this method using common file transfer and synchronization utilities.

DNS tunneling and alternative protocols

DNS tunneling hides data inside DNS queries, which most networks allow through firewalls. Other covert channels use ICMP, HTTP headers or steganography inside images.

Email and web uploads

Files leave through email attachments, personal webmail, file-sharing sites or code repositories. A mail-forwarding rule can quietly copy messages outside the company for months.

Physical media and insiders

Copying files to a USB drive, external hard drive or even a printed stack bypasses every network control. Insiders with legitimate access are the hardest to detect, because their first steps look like normal work.

Data exfiltration vs data breach vs data leakage: what is the difference?

These terms describe different parts of the same problem. A breach is the event, exfiltration is the theft, and leakage is any loss of control, accidental or deliberate.

TermWhat happensIntentExample
Data breachData is accessed or exposed without permissionUsually maliciousAttacker reads a customer database
Data exfiltrationData is moved out to an outside destinationDeliberate theftAttacker uploads that database to a cloud account
Data leakageData leaves a controlled environmentAccidental or maliciousEmployee emails a file to the wrong person
Data lossData is destroyed or becomes unavailableAccidental or maliciousRansomware encrypts files with no backup

Modern ransomware often combines exfiltration with encryption. BlackFog research cited by Vectra AI found that 93% of ransomware attacks in the first half of 2024 involved data exfiltration, with attackers stealing data before encrypting it so they can threaten to publish it.

What are real examples of data exfiltration?

Double-extortion ransomware is the clearest example: attackers steal data, encrypt systems, then demand payment twice, once to decrypt and once not to publish. CISA advisories on groups such as Medusa and Interlock have described exfiltration using file transfer tools before encryption.

Insider cases are quieter but common. An employee leaving for a competitor copies source code or a customer list to a personal drive. A compromised email account forwards invoices and contracts to an outside address. Both are exfiltration, even though no malware was involved.

Cloud misconfiguration is a third pattern. A storage bucket left public does not need an attacker to copy data out; anyone who finds the link can download it. That is leakage that becomes exfiltration the moment someone takes the data.

How do you detect data exfiltration?

Detect exfiltration by watching what leaves, not just what comes in. Most security tools focus on inbound attacks, so outbound monitoring is where exfiltration is caught.

  • Unusual volume: a user or server suddenly uploads far more than its normal baseline.
  • Unusual destinations: traffic to new, rare or personal cloud services, or to countries you do not do business in.
  • Unusual timing: large transfers at night, at weekends or just before an employee leaves.
  • Encoded DNS: long, random-looking DNS queries, or a sharp rise in DNS volume.
  • New rules and tools: new mail-forwarding rules, new cloud sync tools, or large archives appearing in temporary folders.

MITRE's detection guidance for exfiltration techniques focuses on exactly these signals: a high volume of transfers, transfers to unusual destinations, and scheduled or chunked transfers designed to blend in. Combine network, endpoint and cloud logs, because no single log sees every path.

How do you prevent data exfiltration?

Prevention combines knowing what you hold, limiting who can reach it, and controlling what can leave. No single tool covers every path, so layer the controls.

Six controls that stop exfiltration1. Discover and classify sensitive data — know what must not leave2. Least privilege — only the people who need data can reach it3. DLP on email, web and endpoints — block or alert on sensitive uploads4. Egress filtering — allow only approved destinations and protocols5. Encryption and strong authentication — stolen files and passwords help less6. Monitoring and a practiced response plan — act in hours, not weeks
Layered prevention for data exfiltration, from classification to response. Illustration by Cysoro.

Start with discovery and classification. You cannot protect data you do not know exists, so find customer records, credentials, source code and financial data, and label them. Then apply least privilege: remove access people no longer need, and require phishing-resistant MFA for cloud and email accounts.

Use data loss prevention (DLP) on email, web and endpoints to block or alert on sensitive uploads, and egress filtering to allow only approved destinations. Block personal cloud storage and USB use where the business does not need them, and keep an incident runbook for exfiltration. Proofpoint's prevention guidance makes the same point: combine discovery, least privilege, monitoring and DLP. For a wider starting point, our small business cybersecurity checklist covers access control, backups and monitoring together.

What should you do if you suspect data exfiltration?

Act fast, preserve evidence, and do not tip off the attacker before you have contained the transfer. Speed matters, because every hour gives the data more time to spread.

  1. Contain first: isolate the affected device or account, disable the compromised credentials, and block the destination if you can identify it.
  2. Preserve logs: save network, endpoint, email and cloud logs before they rotate, and do not wipe the device.
  3. Work out what left: compare staged files, transfer logs and cloud audit trails to list the data involved.
  4. Notify the right people: tell your security team, legal counsel and, where the law requires it, regulators and affected customers.
  5. Fix the path: close the misconfiguration, revoke the access, and add the detection that should have caught it.

If you use cloud services, check their audit logs first: they often show exactly which account uploaded what, and when. Our guide on how to secure your Wi-Fi also helps close a common entry path into a small network.

The bottom line

Data exfiltration is the moment a security incident becomes a data loss. Attackers and insiders use the same everyday channels you do — email, cloud storage, DNS and USB drives — which is why watching outbound traffic matters as much as blocking inbound attacks.

Classify your sensitive data, limit who can reach it, block the exits you do not need, and monitor the ones you do. You can start by checking what your network exposes with our free DNS lookup tool.

Frequently asked questions

What is data exfiltration in simple terms?

Data exfiltration is data theft over a network. Someone copies sensitive information out of a computer or cloud service without permission, usually to sell it, use it for fraud, or demand a ransom for its return.

What is the difference between data exfiltration and a data breach?

A data breach is the wider event where data is exposed or accessed without permission. Data exfiltration is one way that happens: the data is actually moved out. A breach can occur without exfiltration, for example when data is viewed but not copied.

What is the difference between data exfiltration and data leakage?

Exfiltration is deliberate theft by an attacker or a malicious insider. Data leakage is broader and can be accidental, such as an employee emailing a file to the wrong person or a misconfigured cloud bucket left open.

What data do attackers exfiltrate most often?

They target customer records, passwords and API keys, financial data, health records, source code and trade secrets. Credentials are especially valuable because they unlock further access.

How can you detect data exfiltration?

Look for large or unusual outbound transfers, uploads to personal cloud storage, DNS queries with long encoded names, traffic to new or rare destinations, and activity at odd hours. DLP tools and network monitoring flag these patterns.

Can data exfiltration happen without malware?

Yes. An insider can copy files to a USB drive, email them to a personal account, or upload them to cloud storage. A compromised account can do the same with no malware on the device at all.

Is data exfiltration illegal?

Yes, when it is done without authorization. It can be prosecuted as computer intrusion, theft of trade secrets, fraud or identity theft, depending on the data and the country.

How do you stop data exfiltration?

Classify sensitive data, give people only the access they need, block personal cloud uploads and USB use where appropriate, use DLP and egress filtering, encrypt data, and monitor outbound traffic with a practiced incident response plan.

Sources

  1. MITRE ATT&CK — Exfiltration (TA0010)
  2. NIST CSRC — Glossary: Exfiltration
  3. Proofpoint — What Is Data Exfiltration?
  4. Vectra AI — What Is Data Exfiltration?
  5. CISA — Cybersecurity Advisories
Written & fact-checked byCysoro Security Team

The engineers and analysts who build Cysoro's domain scanner, email-authentication checks and free security tools. We test what we write about every day — SPF, DKIM, DMARC, certificates, look-alike domains and phishing — and check each guide against the relevant standards, government guidance and vendor documentation.

  • Email authentication
  • Phishing & BEC
  • Domain & DNS security
  • Small-business security

Checked against MITRE ATT&CK tactic TA0010, the NIST definition of exfiltration, and Proofpoint and Vectra AI guidance.

How we write and fact-check →

Free tools for this topic

No account needed.

See where your domain stands

Free for up to 3 domains. No card, no installs.

Start free