The short version
- Outbound rules widen with every business request and almost never tighten again.
- Network DLP only reads what passes through it: first find the paths that go round it.
- Test segment by segment, with synthetic data, and read each test against the firewall and proxy logs.
Test your egress filtering before you tune a single network DLP rule. The DLP can only judge traffic that reaches it, and the exceptions, direct server routes and uninspected protocols around it decide more about what leaves your network than its rule set does.
Egress filtering is the set of rules that decide which traffic may leave: from which segments, over which protocols, to which destinations. In many policies the original outbound rule has never moved: allow everything to the Internet, a proxy for browsing, the DLP for the rest. A configuration review shows the intent; only an active test shows what gets out.
Egress filtering, the neglected side of network security
Inbound filtering follows a simple rule: deny everything, then open case by case. Outbound, business pressure turns that round. An application breaks, a supplier asks for an address range to be opened, an update fails: the rule widens. It almost never tightens again.
The typical result after a few years:
- an inherited “any to Internet” rule, placed at the bottom of the policy but still active;
- proxy exceptions granted to servers “temporarily”;
- server segments that go out directly, without passing through the proxy or inspection;
- DNS resolution allowed to any external resolver.
Each of those is a route the DLP never sees. Map them before you touch the DLP rules: that map is where any data exfiltration testing should start.
Diagram · the paths outside inspection
The four areas to check
1. Proxies and their exceptions
The network DLP usually hangs off the proxy, so start there. First, check the proxy is mandatory: a machine that tries to reach the Internet directly must be refused by the firewall, not merely configured to use the proxy. From a workstation and from a server, run Test-NetConnection 1.1.1.1 -Port 443 and nslookup example.com 8.8.8.8. Both should fail, and the firewall log should show the deny. Next, the bypass list: every domain excluded from inspection is a possible channel. Finally, the categories allowed through without analysis, storage and file-sharing services in particular.
2. Allowed protocols
HTTP and HTTPS are not the only protocols that go out. List what the policy lets through in practice (DNS, ICMP, NTP, SMTP, SSH, ports opened for a partner, video conferencing) and ask of each one whether a control that can recognise sensitive data sees it. When data leaves over one of these rather than the attacker’s command channel, MITRE ATT&CK calls it T1048, Exfiltration Over Alternative Protocol. The DNS channel is often open by default, and forcing internal resolvers does nothing against a browser or malware using DNS over HTTPS to 1.1.1.1 or 8.8.8.8 on port 443. Undecrypted HTTPS traffic is most of your web traffic. QUIC runs over UDP 443, which many proxies cannot inspect; block it outbound and browsers fall back to TCP. And if ICMP echo leaves the network, its payload can carry data: from a Windows server, ping -l 1400 8.8.8.8 should get no reply.
3. Network segments
A user workstation, an application server, an admin bastion and a development environment have different outbound needs, yet often share one policy. Server segments are the most exposed: they hold the data, they often go out directly for updates, and an attacker with a foothold there will look for exactly that path. A database server rarely has any reason to reach the Internet.
4. The “allow all” rules
Nobody writes them that way. Export the policy and look for destination “any”, overly broad objects (whole cloud provider ranges) and rules with no owner or review date. Then sort by hit count and last-used date, which most next-generation firewalls record per rule: a broad rule still in use needs investigating, one with no hits since your last review can go. An outbound rule with no named owner is a rule to delete, not to document.
The indicators worth tracking
Track each indicator per segment, and date every run so drift shows up.
| Indicator | What it reveals | How to obtain it |
|---|---|---|
| Block rate of exfiltration scenarios | The share of synthetic data egress attempts actually stopped | Replay of attack scenarios from each segment |
| Detection rate without blocking | Flows seen by the DLP or the SOC but not stopped | Correlation between tests and the alerts generated |
| Egress channels outside inspection | The protocols and destinations that escape the DLP | Inventory of allowed flows cross-checked against the inspection scope |
| Time to detection | The time between the attempt and an actionable alert | Test timestamps compared with SOC alerts |
| Drift over time | Regressions after a rule change or a migration | Repetition of the same scenarios at regular intervals |
The second row is the easy one to misread. A transfer that was detected but not blocked, with nobody handling the alert, is a successful exfiltration in all but name. It is the same failure as DLP false negatives: rules that look active and fail without a sound.
A concrete scenario: the staging server
Take a typical mid-sized company that has locked down browsing on its workstations: mandatory proxy, TLS inspection, network DLP on outbound uploads. The workstation side is in good shape.
An active test runs from a staging server: a synthetic data set that mimics a customer file extract, sent over HTTPS to an online storage service. The upload completes. The proxy logs have nothing from that host; the firewall log shows the sessions, accepted under an exception created two years earlier for a deployment, with no owner and no review date. No alert is raised.
Illustrative example, made-up figures: 12 decoy files attempted, 12 transmitted, 12 collected, and no proxy log entry for the host. Read against the logs: the data left outside the proxy, so outside the DLP’s reach.
The DLP rules were correct and can stay as they are. The fix: remove the exception, force the segment through the proxy, allow only the update destinations it needs. Then replay the same scenario. Nothing should be transmitted, and the firewall or proxy log should show the refusal. One limit: a clean result here says nothing about the next segment, which needs its own test machine.
Next step
Start with the server segment you trust least
The demo takes 30 minutes and runs on pre-built results: a campaign across the 8 channels (HTTP, HTTPS, DNS and ICMP among them), the report and its detail, with no installation and no access to your environment. For a first result from the segment you doubt, the POC (quick, usually free) replays a standard scenario with synthetic data from a representative Windows machine placed there, through your real egress controls. The paid pilot extends the measurement to a limited part of your production.
Egress filtering verification checklist
- List all segments and, for each one, the Internet destinations that are genuinely necessary.
- Check that direct egress (outside the proxy) is blocked at the firewall for workstations and servers.
- Inventory the proxy and TLS inspection exceptions, with an owner and a review date.
- Restrict DNS resolution to the internal resolvers, block DoH to the public ones, and decide what happens to outbound UDP 443 (QUIC).
- Remove or justify every outbound rule with destination “any”.
- Replay exfiltration scenarios with synthetic data from each segment.
- Read each test against the firewall and proxy logs and the SOC alerts: a transfer that fails is not, on its own, proof that a control stopped it.
- Prioritise the fixes according to the sensitivity of the segment’s data and the ease of the channel.
- Repeat the tests after every significant policy change.
For step 6, synthetic data in production lets you test the real network paths without exposing any real data.
Frequently asked questions
Does egress filtering replace network DLP?
No. Egress filtering reduces the number of possible paths; the DLP analyses the content of what travels along the allowed paths. The two are complementary, and a hole in one makes the other ineffective on that channel.
Should you move to a “block all” outbound policy?
For server segments, yes: an explicit allow list. For workstations, a mandatory proxy with inspection is more realistic. Either way, no segment should reach the Internet unchecked.
How often should you test your egress controls?
After every notable change to the network policy, and on a regular basis in between. Regressions mostly come from exceptions added along the way, which an annual audit detects too late.
Can you test safely in production?
For your real data, yes, as long as you use only decoys and synthetic data. The operational risk remains: alerts at the SOC or the MSSP, load on the machines under test. We scope scenarios and time slots with the network team and the SOC before launch.

