Select the right control for exfiltration and for volumetric abuse.

These two abuses sit side by side because they are mirror images of each other, and knowing which one you face decides where your money should go.

Tunnelling is like smuggling a message out of a building by hiding it inside ordinary grocery orders. Data is encoded into query names and answers. The shape is long labels, high randomness, TXT or NULL record types, steady two-way volume to a single zone, and one client that queries that zone far more than any other.

A random-subdomain flood is like thousands of callers phoning your receptionist, each asking for a different person who does not work there. Because every name is new, the receptionist cannot remember any of them, so every call reaches your back office. The shape is a surge of unique, non-existent names under a target zone, designed to bypass every cache between the attacker and your servers.

 

DNS tunnelling

Random-subdomain flood

What works

Volume and behaviour features: bytes per client per zone per hour, query rate to one second-level domain, and record-type mix. These are hard to disguise without destroying the channel’s own throughput.

Detection is easy. NXDOMAIN share and unique-name rate both jump within minutes. You do not need a model for this.

What fails

Label-length thresholds alone. Legitimate services use long encoded labels, and low-and-slow tunnels stay under any fixed threshold you set.

Spending on a better detector, when the real problem is capacity.

The real controls

Find the client and zone, then block or investigate; mitigation is straightforward once you know where to look.

A sensible SOA minimum so resolvers absorb repeat failures, response rate limiting at the authoritative layer, and enough anycast capacity to spread the load (Moura et al., 2018).

KEY TAKEAWAY   Detection and mitigation are different budgets. For tunnelling, detection is the hard part and mitigation is simple once you know which client and which zone. For floods, detection is trivial and mitigation is the hard part: capacity, rate limiting and negative caching, configured in advance. Buying a detection product for a problem whose remedy is capacity leaves you knowing about an outage you still cannot prevent.