← All articles

ARTICLE · DATA LEAK ACTIVE TESTING

Data exfiltration testing: definition, method and stakes

  • The guide
  • 6 min read
  • Updated
Beams of orange and blue light streaking towards a vanishing point, an image of data leaving the information systemSynthetic data, never your real data

Decoys, channels, logs, retests

  • An exfiltration test sends synthetic data out through real channels; your proxy, DLP and SIEM logs then say whether it was blocked, flagged or let through.
  • Enforcis 1.0 runs eight network and cloud channels (see the 8 channels); endpoint, email and generative AI stay manual tests.
  • Each failure gets an owner, a ranked fix and a rerun of the same scenario.

The new DLP policy went live last quarter and the console has been quiet since. A rule that never matches raises no alerts either, so on the dashboard a broken rule looks exactly like a working one. Data exfiltration testing tells them apart: send a decoy out through a real channel, then check what arrived.

A data exfiltration test is a controlled simulation of sensitive information leaving your environment, to check whether your controls block it, detect it or let it through. The data is fake; the proxy, the DLP and the channel are the ones your staff use every day.

The founding team has done this since 2021, first at Holiseum with the ransomware dry-run exercise (Tir à Blanc de Ransomware), which won awards in 2022 at the Cybernight and the Cas d’Or, then across more than 40 exercises. Enforcis grew out of that work in 2025.

Exfiltration testing next to audits, pentests and BAS

It gets confused with three neighbours, set out in the table. The gap between a rule as configured and a rule at work is where DLP false negatives hide; the trade-off with breach and attack simulation has its own article, BAS and exfiltration testing.

At a glance

Approach Question asked What it delivers Its limit for exfiltration
Exfiltration testing Can sensitive data get out, and does anyone see it? Dated results per scenario, rerun on demand, in production with synthetic data Assumes access is already gained: does not test ingress
BAS Are the simulated techniques stopped? Automated, broad-spectrum attack simulation Little evasion, often in a simulated environment, less depth on egress
Pentest Can someone get in and move further? Proof of exploitability Point-in-time and not exhaustive, focused on ingress
DLP configuration audit Is the rule set up as intended? Configuration compliance Reads the rule without seeing it run; siloed view
The pentest, the audit and any BAS tool stay in the programme; the test covers the step none of them watches, a file on its way out.

Why test egress rather than ingress

In double-extortion ransomware the stolen files are the leverage: backups bring the encrypted servers back and do nothing about the publication. Verizon finds ransomware in 48% of the breaches it analysed (source: Verizon, 2026 Data Breach Investigations Report). That figure counts ransomware with or without data theft, so read it as the size of the threat, not a measure of exfiltration.

Data theft is also spotted late: IBM and the Ponemon Institute put the average time to identify and contain a breach at 247 days (source: IBM, Cost of a Data Breach Report 2026), and the UK’s NCSC handled 204 nationally significant incidents in a year, more than double the year before (source: NCSC (the UK’s National Cyber Security Centre), Annual Review 2025).

Diagram · how an exfiltration unfolds

  1. 1DiscoveryLocate sensitive data
  2. 2CollectionGather the target files
  3. 3StagingStructure, archive or compress
  4. 4AutomationScript the transfer
  5. 5ExfiltrationLeave through an authorised channel
This is the sequence a real operator follows; our campaigns focus on its last step, exfiltration, with tests mapped to MITRE ATT&CK (see the Exfiltration tactic explained for defenders).

Exfiltration channels to cover

Family Example channels Controls involved
Endpoint Removable devices, clipboard, printing, local applications Endpoint DLP agent, EDR
Network HTTPS, DNS, transfer protocols, unusual ports Proxy, firewall, egress filtering
Email Attachments, message body, automatic forwarding to a Gmail inbox Email DLP, gateway
Cloud and SaaS Personal storage (Google Drive, Dropbox), collaboration tools (Teams, Slack), link sharing CASB, SaaS DLP, native policies
Emerging uses Prompts to generative AI (ChatGPT, Copilot), browser extensions Browser controls, web gateway

Enforcis 1.0 tests eight network and cloud channels: HTTP, HTTPS, FTP, DNS, ICMP, GitHub Gist, Google Drive and DPaste. Google Drive coming back clean says nothing about Dropbox or Teams, which need their own test. Two network channels rarely get checked: DNS, and HTTPS (see HTTPS and the limits of TLS inspection). Pasting a contract into a generative AI assistant gets data out too.

From a developer’s machine, expect the GitHub attempts to succeed. It is a legitimate destination, often excluded from TLS inspection, and a git push over SSH never touches the web proxy. Blocking it would stop your developers working; separate the company’s own GitHub from every other account instead. With GitHub Enterprise Cloud and Enterprise Managed Users, the proxy can inject the sec-GitHub-allowed-enterprise header so only your enterprise is reachable, which needs TLS inspection on github.com and git restricted to HTTPS. ATT&CK files this path under T1567.001, Exfiltration to Code Repository.

Exfiltration testing method: five steps, rerun after every change

  1. Define what is sensitive. Without classification, the DLP does not know what to recognise. The decoys mimic your real data categories: customer files, blueprints, health records, credentials.
  2. Build realistic synthetic data. Credible enough to trigger your rules, with no value at all: enough to test in production without using any real business data.
  3. Run the exfiltration scenarios. One channel at a time, from a representative machine on each egress path you want to test (Windows agent, signed binary).
  4. Observe what gets transmitted. For each scenario: what was expected, attempted, transmitted and collected. To sort each send into blocked, detected but not blocked, or not detected, match it against proxy logs, the DLP console (Activity explorer in Microsoft Purview) and the SIEM, keyed on send time, give or take a few minutes, and a marker unique to the decoy such as its hash. An alert nobody handles does not count as a success.
  5. Prioritise and start again. Rank failures on the grid below, fix them, then retest the same scenario. Today our team analyses and prioritises the findings with you.

Illustrative example, made-up figures: a Google Drive scenario expects 20 files; 20 attempted, 12 transmitted, 12 collected. The proxy denied the 8 missing uploads; of the 12 that got through, the DLP raised 4 alerts, none triaged. Reading: 8 blocked, 4 detected but not blocked, 8 not detected.

When to rerun the test

Diagram · the loop

Run, read, fix, rerunA four-step cycle: send decoys channel by channel, match the results against your logs, close the path, then rerun the same scenario after each change.RUNREADFIXRERUNSendthe decoysMatchyour logsClosethe pathSamescenarioON DEMANDafter a change

Rerun after a DLP agent or policy update, a proxy or firewall change, a new SaaS application or a cloud migration. Each run is started on demand; set side by side, two runs of the same scenario show which paths you closed and which reopened. The comparison continuous validation, pentest or red team explains when to choose which.

Exfiltration test example: a Microsoft Purview email rule

Take a common set-up: a Microsoft Purview DLP policy on the Exchange location, with a rule that blocks outbound mail when an attachment carries the “Confidential” sensitivity label. The team runs four variants with a fake technical blueprint: direct send, compressed archive, copy into the message body, upload to personal storage from the browser. Email is outside the Enforcis 1.0 channels, so the first three are manual tests.

Diagram · assumed control, actual egress

One rule, four paths: only one is blockedFour ways of sending the same fake technical blueprint meet the email DLP rule. The direct email send is blocked. The compressed archive, the copy into the message body and the upload to personal storage get through, or generate an alert that nobody reads.Email DLP ruleDirect sendby emailCompressedarchiveCopied into themessage bodyUploaded topersonal storageBlockedonly case coveredGets outor unread alertGets outor unread alertGets outor unread alert

The direct send is blocked; the other three get through, or trigger an alert nobody reads. The body copy passes because the label is file metadata: pasted text does not carry it. The browser upload was never in scope for an Exchange policy; that is the Devices location (Endpoint DLP). To check, filter Activity explorer in Purview on DLP rule matches around the test time. To go further, see how to test your DLP.

Next step

From a guided demo to your own exfiltration test

To see what the five steps produce before you try them, the guided demo spends 30 minutes on pre-built results, a campaign across the 8 channels and its report, with nothing to install and no access to your environment. The POC, quick and usually free, runs one standard scenario with synthetic data from a machine on your network, through your real egress controls: step 3 of the method above, on a single path. A paid pilot then takes a limited part of your production, and we work through the findings with you.

Who uses exfiltration test results

The CISO takes the transmitted-to-expected count for each channel into the DLP metrics for the board, and into the answer to what NIS2 expects from management. The SOC goes through the decoys one by one: did each reach the SIEM, and did anyone pick it up? In a mid-sized company without a CISO, the IT director uses the first run to decide where the next pound of budget goes.

Checklist before a first test

  • Sensitive data categories are identified.
  • Controls in place are inventoried (endpoint, network, email, cloud).
  • The SOC is informed, unless you want to measure its detection blind.
  • Only decoys will be used for the test.
  • An owner is assigned for each family of fixes.
  • The date of the next run is set.

To compare solutions, see our criteria for choosing a DLP testing tool; for vocabulary, the DLP and exfiltration glossary.

Frequently asked questions

How does an exfiltration test differ from a DLP configuration audit?

An audit checks that your rules are set up as intended, without ever seeing them run. We push a decoy out through a real channel (HTTPS, DNS, Google Drive, GitHub Gist) from a real Windows machine and record what gets transmitted. The audit can pass while the rule stays silent on a remote salesperson’s laptop.

Why test data egress rather than ingress?

Ingress already has its tests: pentests, phishing simulations, vulnerability scans. Egress controls are mostly checked on paper. Our tests start from the assumption that the attacker, or an insider, is already in the network, and measure what they could take away.

Do you need a DLP already?

No. Without a DLP, the test shows which channels are open (HTTPS, DNS, FTP, Google Drive or GitHub Gist) and helps you decide where to invest. With a DLP, it shows what gets past it on the scenarios you tested; the DLP’s own logs then show what it stopped or flagged.

Should you block GitHub after a test like this one?

Rarely: your developers need it. Close off accounts and repositories outside the company instead. MFA cannot tell them apart; a proxy rule can (the sec-GitHub-allowed-enterprise header, with Enterprise Managed Users), at the CISO’s discretion.

Exfiltration testing on your own exit paths

We push decoys out through your real exit paths, show you what got through on each, and agree the order of fixes with you.