Join our Newsletter — 33% off our NHI Course

What does Domain Name System (DNS) Tunnelling look like in a real intrusion?

DNS tunnelling often looks like repeated, unusual DNS requests carrying encoded data rather than normal name resolution. In an intrusion, you may see high query volume, long or random-looking subdomains, and traffic to domains that should not be needed by the host. Defenders should baseline DNS behaviour, inspect suspicious query patterns, and restrict outbound DNS paths.

DNS tunnelling is usually visible first in the resolver and egress path, not in the payload itself. A host that is not acting like a normal client will generate repeated lookups with encoded-looking labels, unusually long subdomains, and a steady pattern of queries to a small set of domains. The key question is whether the traffic still resembles name resolution, or whether DNS is being used as a covert transport channel.

In a real intrusion, the pattern often changes from occasional lookups to a sustained stream of requests that carries commands out or data back. That can include high query volume, low cache reuse, and names that look random, segmented, or algorithmically generated. Because the technique abuses ordinary DNS infrastructure, defenders need to judge behaviour against a baseline rather than treat each request in isolation. The DNS Security Guide and the Command and Control (C2) Guide both help frame how tunnelling shows up as covert communication, beaconing, and DNS abuse.

What makes DNS tunnelling dangerous is that it can blend into routine enterprise traffic if controls are too permissive. If a host can talk to external resolvers freely, the attacker can hide data in query names and use the responses as an exfiltration or command path. That is why suspicious DNS often appears alongside broader command-and-control behaviour rather than as a standalone anomaly. For hunting, NDR Guide is useful for understanding how flow data, packet metadata, and baseline deviations expose the pattern even when the payload is encrypted or encoded.

How DNS tunnelling differs from normal DNS behaviour

Normal DNS traffic is usually repetitive in a boring way: the same domains are queried often, the labels are short enough to be human-readable, and the query rate fits the application’s function. DNS tunnelling breaks that pattern. The visible signs are long or random subdomains, odd label structure, many unique queries to the same parent domain, and request timing that does not match ordinary browsing, software update, or service discovery activity.

Another clue is context. A workstation, server, or container should not suddenly need constant DNS lookups to unfamiliar infrastructure just to do its job. If the host is generating DNS traffic that seems unrelated to its role, that is often the first signal that DNS is being used as a surrogate channel. The DNS Security Guide is the most direct reference for the defensive side of that distinction, especially around protective DNS, DNS logging, and tunnelling detection.

What defenders usually see during an intrusion

Once tunnelling is established, defenders often see the DNS layer become “busy” in a way normal applications do not need. Common observations include bursts of queries, repeated lookups that do not resolve in the usual way, and subdomains that carry encoded blobs rather than meaningful labels. In more mature intrusions, the attacker may also rotate domains, use multiple subdomains to split a payload, or shift between DNS and other channels to avoid a simple signature.

The important operational point is that the tunnel may be only one part of the intrusion. DNS is often the fallback path for control, staging, or exfiltration when direct HTTPS or socket-based communication is blocked. That means a DNS tunnel can be a symptom of broader compromise, not merely a networking oddity. The MITRE D3FEND Guide is useful here because it maps the defensive techniques that analysts use to spot anomalous query behaviour, apply outbound traffic filtering, and analyse suspicious domain patterns.

Risk and Threat Considerations

DNS tunnelling matters because it converts a trusted, always-on protocol into a covert channel. If outbound DNS is unconstrained, the tunnel can carry command traffic, exfiltrated data, or staging content while appearing to be ordinary name resolution. That makes it especially dangerous in environments that rely on DNS permissiveness for convenience rather than on explicit inspection and policy.

Failure mechanism: The organisation treats DNS as low-risk background traffic, so encoded labels, abnormal query volume, and unusual domain dependencies are not baselined or blocked in time.

Impact: Attackers can maintain communications, move data out, and keep a foothold even when other egress paths are restricted, which can prolong dwell time and delay containment.

Standards & Framework Alignment

This section maps relevant standards and security frameworks to the operational risks and controls described in this guidance.

MITRE ATT&CK addresses the attack and risk surface, while NIST SP 800-53 Rev 5 and CIS Controls v8 set the governance and control requirements practitioners need to meet.

Framework Control / Reference Relevance
MITRE ATT&CK T1095 — Non-Application Layer Protocol DNS tunnelling is a covert channel that abuses a non-HTTP network protocol.
T1071 — Application Layer Protocol DNS is commonly used as a legitimate protocol abused for command-and-control traffic.
Recommendation — Map abnormal DNS transport to T1095 and hunt for covert channel patterns in resolver telemetry. Correlate DNS anomalies with T1071-style C2 behaviour in network detections.
NIST SP 800-53 Rev 5 SC-7 — Boundary Protection Outbound DNS control and filtering are core boundary protections against tunnelling.
AU-6 — Audit Review, Analysis, and Reporting DNS tunnelling detection depends on reviewing logs and anomalies at scale.
Recommendation — Restrict and inspect DNS egress at the boundary to reduce covert-channel abuse. Analyze DNS logs for abnormal query volume, entropy, and domain patterns.
CIS Controls v8 CIS-13 — Network Monitoring and Defense DNS tunnelling is primarily detected through network monitoring and anomaly analysis.
CIS-8 — Audit Log Management DNS logs are the evidence source for spotting tunnelling behaviour.
Recommendation — Monitor DNS traffic continuously and alert on suspicious query structure or volume. Centralize and retain DNS logs so investigators can baseline and compare resolver activity.

Practitioner Guidance

What to verify: Check whether the querying host actually needs external DNS access, whether the domain pattern matches its role, and whether the queries are being made through an approved resolver path. The first useful discriminator is not “does this look strange,” but “does this system have any legitimate reason to generate this volume and structure of DNS at all?”

Decision rule: If the host is sending long, high-entropy, or high-frequency DNS queries to a narrow set of domains, treat it as a potential covert channel and investigate for command-and-control or exfiltration before assuming it is harmless lookup noise. If the same pattern appears across multiple hosts, look for shared infrastructure or common tooling rather than isolated misconfiguration.

Practitioner takeaway: DNS tunnelling is rarely identified by one perfect indicator, it is identified by a collection of behavioural mismatches, so baselining, resolver visibility, and egress control are the decisive controls.