A product designer needs to share a prototype drawing with a supplier. The company has an approved file-sharing portal, but the designer uploads the drawing to a personal cloud drive to get it over quickly. The team may have no record of who can open the link or whether it was forwarded. That's the problem data exfiltration prevention helps solve.
To prevent data exfiltration, start with the files your team handles every day. Decide who can access them and where they can go. Then put those rules into practice and check the logs to see what actually happened. This guide walks through those steps and shows how to apply them when an employee leaves or a transfer looks suspicious.

Key takeaways
- Start with the ways employees share and copy files. Include email, chat, websites, desktop apps, removable drives, and printed or captured copies.
- Use data loss prevention (DLP) on managed endpoints and enforce separate controls for server traffic and cloud-to-cloud transfers.
- Give HR, IT, and security a shared offboarding timeline so access changes and evidence collection happen on schedule.
What is data exfiltration?
Data exfiltration is the unauthorized transfer of data out of an organization's controlled environment. It can involve customer records, source code, or even a single confidential contract. Someone may have permission to open a file for work and still need separate approval to send it elsewhere.
If a customer list is accidentally exposed through a public link, that's a data leak. If someone downloads the list without permission, that transfer is an example of data exfiltration. A data breach can involve unauthorized access or disclosure even when no file transfer is confirmed. For more on exposure and unauthorized access, see our guide to data breach vs. data leak.
The person moving the data might be an employee, someone using a stolen account, or an attacker who has gained access to a company system. Each scenario leaves different clues for investigators.
| Source | What it can look like |
|---|---|
| Insider | A sales employee copies customer records to a personal USB drive before leaving. |
| Compromised account | Someone using a stolen employee account forwards confidential attachments to an external inbox. |
| External attacker | An attacker steals records from a compromised server before deploying ransomware. |
How to prevent data exfiltration
Limit access to sensitive data
- Classify the data you need to protect. Start with customer exports, payroll files, source code, and design documents. Record where each dataset lives, who owns it, and where it may be sent. Include exports created by approved applications.
- Apply least privilege. Grant access through role-based groups and give contractors time-limited access. Restrict bulk exports to roles that need them, and remove access when someone changes teams. For examples of how to put these access rules into practice, see our guide to the principle of least privilege.
- Protect files that travel. Use file-level encryption for sensitive documents that need to stay protected when copied. Manage decryption permissions and give staff an approved way to share documents with customers or vendors.
- Reduce account takeover risk. Use phishing-resistant multifactor authentication where possible, train employees to report unexpected login or file-sharing requests, and review mailbox forwarding and cloud sharing settings.
Set a policy for every exit channel
For each channel, identify the legitimate workflow and choose a default action. Block unapproved destinations and devices, require time-limited approval for exceptions, and audit permitted transfers where the risk warrants it. A finance team, for example, might need to send payroll files through an approved provider while uploads to personal storage are blocked.
Base each rule on who is sending the file, what it contains, and where it is going. Test with sample files. Check that approved transfers work, blocked transfers stay blocked, and exceptions expire. Test the same channel in the browser and the desktop app if employees use both.
Use logs to answer three questions. Who tried to send what, and from which device? Where was it going? Did it go through? Record the time and policy outcome to help investigators match events across systems. Restrict access to audit records and set a retention period. Treat any stored attachment or print copy as another sensitive file.
Detect unusual data movement
Look for spikes in downloads or outbound transfers, first-time destinations, after-hours sends, newly connected removable devices, and sensitive files sent soon after an unusual sign-in. Correlate endpoint events with identity, mail, cloud, and network logs. An upload attempt and a confirmed upload call for different responses.
Set alert thresholds by role and channel. Look at how many files the sales team sends during a typical week. Use that baseline to test alerts for unusually high daily file counts or transfer volumes. Use a separate rule for a restricted file sent to a personal destination, where one transfer can be enough to investigate. Review alerts in audit mode first and account for legitimate peaks such as month-end reporting.
Track cumulative activity as well as individual events. Repeated transfers to the same external destination may deserve a review even if each event falls below the per-transfer threshold. Give each alert an owner and include the user, device, destination, policy outcome, and links to relevant evidence.
How AnySecura helps prevent data exfiltration
On managed Windows endpoints, AnySecura helps you control which websites and apps employees can use, how they share files, and how they reproduce sensitive documents. Start with the workflow you want to protect. For example, if employees regularly export customer records, review where they can send the export and whether they can copy or print it.
| Risk to address | How AnySecura helps | What to review |
|---|---|---|
| Personal cloud storage, file-sharing sites, and AI tools | Use Web Access Control to block access to unapproved websites. If the service has a desktop app, use Application Control to block unapproved apps from running, including personal sync clients. | Website access and app launch or block events. |
| Sensitive files sent by email or chat | Use Email Control to set rules for senders and recipients. Pair it with Sensitive Content Inspection to block outgoing emails when an attachment matches a sensitive-content rule. The same inspection module can restrict sensitive file transfers in supported chat apps. | Recipient or destination where available, file, matched rule, and transfer outcome. |
| File copies to USB drives | Use Device Control and Removable Media Control to block unregistered drives, encrypt approved media, and grant temporary exceptions. | User, device ID, file, and copy outcome. |
| Printed copies and screen photos | Use Print Control to restrict printing, require approval where configured, and watermark printed pages. Use screen watermarks to help trace screen photos. | Print jobs and approval records. |
| Connections to unapproved hosts | Use Network Access Control to restrict endpoint connections by application, address, or port. | Source device, destination, port, and enforcement action. |

Keep sensitive files protected after they are copied. Transparent Encryption automatically encrypts files covered by policy. Authorized employees can work with them as usual. If someone copies a protected file outside the trusted environment, it remains encrypted. Transparent Encryption can also restrict screenshots and virtual printing of protected content in supported workflows. For legitimate external sharing, use the approved decryption process.
In your pilot, check what employees see when a policy blocks an action. Then open the audit record and confirm it identifies the action and outcome.
Use the editable Word template to turn your DLP rules into a written policy. It includes 12 examples you can adapt for USB drives, email, cloud sharing, and AI tools. The rollout guide shows how to test the rules before you enforce them. Learn more>>
When you need more than endpoint DLP
Endpoint DLP helps control what people do with sensitive files on managed devices. Add other tools when a transfer happens outside those devices, such as when a cloud service shares a file directly or a server sends data to an external host. You may also need to combine logs from several systems to work out whether a transfer succeeded.
| When you need another tool | What to add | What it helps you do |
|---|---|---|
| A file is shared directly from a cloud account | Cloud DLP or a cloud access security broker (CASB) | Apply sharing policies where supported and review cloud audit logs for external shares or cross-account transfers. |
| A server connects to an unapproved external host | Firewall, DNS security, and network detection and response (NDR) | Use firewall rules to limit outbound connections. Review DNS and network activity for unusual destinations or transfer volumes. |
| A compromised device shows suspicious process activity | Endpoint detection and response (EDR) | Investigate which process ran and isolate the affected device if needed. |
| Evidence is spread across several systems | Security information and event management (SIEM) | Correlate sign-in, endpoint, cloud, and network events to reconstruct the transfer. |
Compare 10 DLP tools side by side to see which ones cover the endpoints, email, and cloud services your team uses. The guide also includes a two-week trial plan so you can test your shortlist against real workflows. Learn more>>
Map your controls to MITRE ATT&CK
To check how your tools work together, use MITRE ATT&CK Exfiltration (TA0010) to map attacker techniques to the controls and logs you want to validate. For example, for a transfer to cloud storage, check which upload rules apply and what the cloud audit log shows.
| ATT&CK technique | Control or detection to validate |
|---|---|
| T1052 / T1052.001, Exfiltration Over Physical Medium / Exfiltration over USB | Removable-device restrictions and copy auditing. |
| T1567 / T1567.002, Exfiltration Over Web Service / Exfiltration to Cloud Storage | Upload controls and cloud storage audit events. |
| T1537, Transfer Data to Cloud Account | Cloud sharing and cross-account transfer policies. |
| T1048, Exfiltration Over Alternative Protocol | Firewall egress controls and network monitoring. |
| T1041, Exfiltration Over C2 Channel | Correlation of EDR alerts with outbound connections and DNS or network telemetry. |
| T1020, Automated Exfiltration, and T1030, Data Transfer Size Limits | Correlation of repeated transfers over time with process, destination, and cumulative volume. |
Offboarding playbook for departing employees
Use the same documented process for departing employees. Give employees advance notice about what you log, who can see it, and how long you keep it. If the notice period is short, run the steps on the same day and prioritize access revocation at the agreed cutoff.
| When | Owner | Actions and records to check |
|---|---|---|
| When notice is received | HR and IT | Confirm the cutoff time, accounts, assigned devices, and handover needs. Review access to sensitive repositories and recent bulk exports. |
| Final two weeks | IT and security | Apply the standard offboarding policy. Require approval for necessary removable-media transfers and block personal cloud uploads. Review outbound email, file-sharing, and USB events for unusual activity. |
| Final day | IT | Collect devices, revoke sign-in sessions and tokens, and remove access to email, cloud apps, and repositories. Preserve the relevant transfer history according to retention or legal-hold requirements. |
| After departure | Security and application owners | Check external sharing links, mailbox forwarding, delegated access, and remaining app grants. Confirm that ownership of business files has transferred. |
HR-to-IT handoff checklist
- Confirm the employee's account identifiers, last working time, and assigned equipment.
- Identify the manager responsible for transferring file ownership and approving any remaining business transfers.
- Record the policy changes, approval expiry times, device return, and access revocation.
- Route suspected incidents to security and legal through the established escalation process.
Once HR and IT have agreed on the offboarding steps, security needs a way to review unusual file activity. See how AnySecura Insider Risk Management helps teams investigate USB copies, email attachments, and other file transfers during the notice period.
What to do in the first 24 hours after suspected exfiltration
- Contain the transfer. Assign an incident lead. Revoke affected sessions or tokens, suspend access as appropriate, and isolate affected endpoints with your response tooling. Record when each action was taken.
- Preserve evidence and determine scope. Secure endpoint, identity, email, cloud, and network logs. Establish which files or records were involved, what the destination was, and which transfers succeeded. Keep the original evidence and document who accessed it.
- Start the notification assessment. Involve legal and privacy teams early. Under GDPR Article 33, a controller generally has to notify the supervisory authority without undue delay and, where feasible, within 72 hours of awareness, unless the breach is unlikely to create a risk to individuals' rights and freedoms. The HIPAA Breach Notification Rule sets separate notification requirements for breaches of unsecured protected health information. Check applicable state laws and contracts as well.
- Close the gap and verify the fix. Identify the failed or missing control, assign an owner, and replay the affected workflow using test data. Verify the enforcement outcome and the audit record.
FAQ about Data Exfiltration Prevention
Can data exfiltration happen without malware?
Yes. An employee can use an approved email app to send a customer list to an unauthorized recipient. Set rules for who can receive sensitive files, even when employees use approved tools.
How can I detect data exfiltration?
Correlate outbound file events with sign-in activity, destination, and volume. For example, a bulk download followed by an upload to a first-time external destination warrants a closer look. Establish whether the destination received the data and whether the transfer was authorized.
What is the difference between data exfiltration and data leakage?
Data leakage describes sensitive data becoming exposed outside its intended boundary. Data exfiltration describes data being transferred out without authorization. A publicly shared folder can be a leak, and a subsequent unauthorized download can be exfiltration.
Can encryption prevent data exfiltration?
File-level encryption can keep a copied file unreadable outside an approved environment if the recipient lacks decryption rights. Pair encryption with controls for file transfers, clipboard actions, and printing because authorized users can sometimes export or reproduce readable content.
Conclusion
Start with one file your team handles regularly, such as a customer export. Decide who can access it, where it can go, and when a transfer needs approval. Apply those rules wherever the file can leave, from email to USB drives.
Once the rules are in place, check what the logs can tell you. Can your team see who tried to send the file, where it was going, and whether it got through? Those details help security review unusual activity during offboarding and respond if a transfer looks suspicious.
Start a free trial of AnySecura to put that workflow to the test on a managed Windows endpoint. Use a sample export to try an approved transfer and a blocked one, then check how each event appears in the audit logs.

