← All articles

ARTICLE · DATA LEAK ACTIVE TESTING

BAS and data exfiltration testing: why specialisation matters

  • Comparison
  • 6 min read
  • Updated
A row of glowing warning triangles on a circuit board, an image of replayed attack scenariosBreadth or depth

In short

  • BAS first if nothing in your estate has been tested automatically; an exfiltration test when someone asks what data could leave.
  • Already have a BAS? Filter its library on TA0010 and note what each scenario sends. If it is the same test file every time, depth is missing.

Use a BAS to check that your defences react across the attack chain; use an exfiltration test to find out whether your data can get out, and which way. The first spreads its effort over 14 ATT&CK tactics. The second spends all of it on TA0010, the moment customer records, drawings or payroll files leave your network.

BAS (Breach and Attack Simulation) runs attack techniques automatically across the whole chain, from initial access to impact. Data exfiltration testing is a specialisation of it: egress only, with more channels, volumes and kinds of content than a general BAS usually tries.

A BAS and an exfiltration test ask different questions

A BAS checks your defences against a wide range of behaviours: phishing, execution on the endpoint, lateral movement, privilege escalation, persistence. In MITRE ATT&CK, that covers 14 tactics, from reconnaissance (TA0043) to impact (TA0040).

An exfiltration test asks something narrower: if an attacker or a trusted insider tries to get your sensitive data out, does it get out? One file blocked on one channel tells you little. You have to vary destinations, volumes and formats, and check each result against your DLP rules. The TA0010 tactic lists nine techniques, from automated exfiltration (T1020) to transfer to a cloud account (T1537), including alternative protocols (T1048), the command and control channel (T1041), web services (T1567), physical media (T1052) and scheduled transfers (T1029). Enforcis runs the egress step over eight channels (HTTP, HTTPS, FTP, DNS, ICMP, GitHub Gist, Google Drive, DPaste), from a signed Windows agent on a machine that stands in for each exit path you want to test.

Diagram · breadth versus depth

BAS breadth, exfiltration testing depthOn the left, the general-purpose BAS covers the whole attack chain, from initial access to exfiltration, with few variants per step. On the right, exfiltration testing focuses on the egress step alone and breaks it down into channels, formats, volumes and content.Generalist BASThe whole chainExfiltration testingFocus on egressFew variantsVariants per channelInitial accessLateral movementPrivilegesPersistenceExfiltrationExfiltrationChannelsFormatsVolumesContent

What BAS does very well

It would be dishonest to call BAS outdated. It is what got security teams into the habit of checking a control after configuring it.

One tool covers many tactics. The SOC gets repeatable scenarios to check its detections, and a regression after an EDR, proxy or firewall update shows up on the next run. Results come labelled with ATT&CK techniques, which leadership already recognises. If you have never run automated validation of your controls, it is often the right first purchase.

Where breadth reaches its limits

Spread over 14 tactics, the effort thins out. For exfiltration, vendors ship anything from a few generic scenarios to a dedicated module: an upload to an unknown domain, a transfer over an uncommon protocol, a file marked “sensitive” dropped on a web service. Each is stopped or it is not, and the box turns green or red.

DLP tends to give way on the variant nobody tried. A contract blocked as a PDF leaves inside an encrypted ZIP (T1560), because the DLP cannot see into it. A home-grown regular expression catches a card number written with spaces and misses it without. The browser goes through the proxy while a personal cloud sync client on the same laptop may go direct. An upload cut off above a size limit gets through split into smaller chunks (T1030). DLP false negatives: why your rules fail silently covers more of these.

BAS and exfiltration testing: a point-by-point comparison

Criterion General-purpose BAS Specialised exfiltration testing
Question asked Do my defences react across the whole attack chain? Can my sensitive data get out, and which way?
Scope Broad: up to 14 tactics, from initial access to impact Narrow: one tactic (TA0010) and what leads up to it
Depth on exfiltration Varies by vendor, from a few scenarios to a dedicated module Channel, volume and file-count variants; formats from the catalogue or by hand
Link with the DLP Indirect Direct: each result is checked against proxy and DLP logs, rule by rule
Data used The vendor’s test payloads or sample data sets Decoys that mimic your business data
Expected result Prevention and detection rate per technique Dated results per scenario, then fixes prioritised with the team

Same estate, two results: BAS score and exfiltration test

Take a manufacturer with endpoint DLP, a proxy doing TLS inspection and rules on outbound email. Its BAS shows a good score on the Exfiltration tactic: sending to an external server and transferring over an unusual protocol are both blocked.

The team then runs variants over web and network channels, with synthetic files that mimic drawings and customer records. Four gaps could turn up:

  • drawings sent to an external FTP server leave on port 21, a path the proxy never sees;
  • an upload to a personal Google Drive that the proxy cuts off as one large file gets through over HTTPS as many small ones;
  • a customer export, split into small chunks, leaves in DNS queries;
  • GitHub Gist, left open because the dev team asked for it, is not inspected at all.

Illustrative example, made-up figures: on the DNS case, 20 files attempted, 20 transmitted, 18 collected. Two files left but never arrived, and nobody should call that a control until the resolver logs explain it. Those logs show a burst of long subdomain queries to a single domain, and no alert fired. A zero transmitted would need the same logs, to tell a DNS filtering rule from a lookup that timed out.

In Enforcis 1.0 you set the channel, the volume and the number of files. Renaming a file or wrapping it in an encrypted archive is not a generic setting: look in the catalogue for scenarios that include it, or do it by hand as in the box above. Pasting into an AI assistant and sending an Outlook attachment to Gmail are out of scope too; test those yourself, with the same log checks.

If the test confirmed those four gaps, the BAS score would still be accurate. The list of gaps, not the score, is what belongs in the remediation plan.

Next step

See what an egress-only test reports

In the 30-minute guided demo, pre-built results show a campaign across the eight channels, egress paths only, with nothing to install and no access to your environment. The POC, quick and usually free, then runs a standard scenario with synthetic data from a machine on your network, through your real egress controls, so you have a dated egress result to set beside your BAS report. A paid pilot extends that to a limited part of your production.

Depth changes the deliverable

A payroll file getting out does not weigh the same as an internal memo. Each Enforcis scenario comes back dated, as attempted, transmitted and collected. Whether anything blocked or alerted is in your own logs: the proxy access log for the session, the DLP console for an incident, the SIEM for an alert. Rank what got out along three axes:

  1. the sensitivity of the data that got out (personal data, trade secrets, financial data);
  2. the exposure of the channel (open to all machines, or to a few profiles);
  3. the cost of the fix (adjusting a rule, or launching a classification project).

Our team analyses and prioritises the findings with you; someone on your side still decides what gets fixed first.

BAS or exfiltration testing: do you need both?

Usually, yes. When an auditor, the board, NIS2 Article 21(2)(f) or DORA Articles 24 and 25 make you show how your DLP holds up, an exfiltration test gives the more direct answer, as long as each result is checked against your DLP logs. If you already run a BAS, the re-run in the box above shows whether its green ticks go deeper than the vendor’s test file. A mid-sized company without a SOC should pick the tool whose output a small team can act on without outside help.

For human-led approaches, see continuous validation, pentest or red team. If your DLP is Microsoft Purview™, also see how to validate your Purview policies. To choose between vendors, use our criteria for choosing a DLP testing tool.

Checklist: does your tool go far enough on exfiltration?

  • Do the scenarios cover the network and cloud exit paths your users take every day? USB, printing and the clipboard need a separate test on the endpoint.
  • Does the tested content look like your sensitive data, without being real?
  • Does it try format, encoding and volume variants?
  • Is each result linked to the DLP rule that should have reacted?
  • Can you re-run a campaign on demand after each rule change?
  • Does the deliverable say what to fix, and who sets the priorities: the tool, the vendor or your team?

FAQ

Is exfiltration testing a form of BAS?

Think of it as a branch of BAS: the same automated approach, limited to data leaving and taken further on that one step. In the Enforcis console every test carries its MITRE ATT&CK technique, so you can set it beside the matching BAS result.

Is a BAS enough to validate a DLP?

It gives a first signal. To know whether your rules stop your business data on the channels you care about, you need more scenarios, closer to your content, with your DLP logs open. The method is described in How to test your DLP and find out whether it really blocks.

Can you run a BAS and an exfiltration test on the same estate?

Yes. Give the SOC both schedules so the alerts are tagged as tests, then line up the dated results of our campaigns with the BAS results, technique by technique.

Why can a DLP that is “green” in the BAS still leak?

Because green means the vendor’s scenario was stopped, not that your data would be. DLP policies key on content: sensitive information types, exact data match against your own records, sensitivity labels. A generic test file trips few of those, and the block may have come from a proxy category rule rather than the DLP. Re-run the test with content that looks like yours.

What deliverable should you expect from an exfiltration test, compared with a BAS?

A BAS returns a prevention and detection rate per ATT&CK technique. An exfiltration test returns dated results per scenario, which you read alongside your proxy and DLP logs to see what was stopped.

Depth where your data leaves

Where your BAS stops at a handful of exfiltration scenarios, we run controlled ones, mapped to MITRE ATT&CK, with synthetic data through your real egress controls, then go through the results with you to decide what to fix first.