Join our Newsletter — 33% off our NHI Course
Home› FAQ› Cyber Security› How should security teams detect DNS tunneling in…
Cyber Security

How should security teams detect DNS tunneling in enterprise networks?

← Back to all FAQ
By NHI Mgmt Group Editorial Team Updated November 23, 2026 Domain: Cyber Security

Use behavioural correlation rather than single indicators. High-entropy query strings, unusually deep subdomains, and TXT or NULL records become far more meaningful when they occur together from the same host. Forward endpoint or resolver logs into a central detection platform so analysts can compare patterns over time and investigate the systems that deviate from normal DNS behaviour.

How to spot DNS tunneling patterns in normal enterprise traffic

DNS tunneling is easier to detect when you treat it as a pattern, not a single anomaly. The strongest signals usually combine odd query shape, unusual record type usage, and repetition from the same source. That means looking for correlated behaviour across hosts, resolvers, and time windows, then comparing it to each system’s normal DNS profile.

A practical starting point is to baseline query length, label depth, response mix, and frequency by endpoint or subnet. When a host starts issuing many long, high-entropy names with deep subdomain chains, especially if the traffic is sustained rather than bursty, the pattern becomes much more suspicious. Normal browsing, software update checks, and content delivery can create noisy DNS, but they rarely sustain that shape consistently.

Record type matters too. TXT and NULL records are useful to watch because they can carry data in ways ordinary lookups do not. The useful test is not whether one TXT query exists, but whether the same host is repeatedly using uncommon record types while also showing encoded or repetitive subdomain patterns. That combination is much stronger than any one indicator on its own. For broader DNS hygiene and logging context, use the DNS Security Guide.

Why centralised DNS telemetry matters

DNS tunneling is hard to catch if logs stay fragmented across resolvers, firewalls, and endpoints. A central detection platform lets analysts line up query volume, source host, destination resolver, and record type over time, which is what turns a suspicious lookup into a defensible investigation. Without that correlation, tunneling can look like a series of harmless one-off requests.

Forwarding both endpoint and resolver logs gives you two views of the same behaviour. Endpoint telemetry helps identify the initiating process, while resolver logs show whether the query pattern is visible after internal resolution, forwarding, or security filtering. That separation is important when users, applications, or malware bypass one layer but still leave traces in another. Guidance on logging, resolver controls, and detection workflows is covered in the NIST SP 800-81 Rev. 3 Secure DNS Deployment Guide.

It also helps to compare sources by role. DNS requests from browsers, update services, and endpoints with developer tools open may look noisy for legitimate reasons. Repeated encoded lookups from servers, kiosks, or devices that normally have very simple DNS behaviour deserve faster review because the baseline is easier to define and deviations stand out more clearly.

What to investigate when the pattern looks wrong

Once you have a suspect pattern, move from DNS-only review to host context. Ask which process generated the lookups, whether the destination domain is new or rarely seen, and whether the traffic aligns with any approved tool, remote admin workflow, or software agent. Tunneling often survives because defenders only inspect the query and not the process, parent process, or session that created it.

Check whether the same host also shows outbound connections to uncommon infrastructure, repeated NXDOMAINs, or long-lived sessions that do not match normal browsing. A single odd query is weak evidence. A host that generates sustained, encoded DNS while also exhibiting other signs of covert communication is a stronger candidate for containment and deeper forensics. If you need a protocol-level framing for this behaviour, the T1572 Protocol Tunnelling Defensive Guide is a useful companion.

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 CSF 2.0 and NIST SP 800-53 Rev 5 set the governance and control requirements practitioners need to meet.

FrameworkControl / ReferenceRelevance
NIST CSF 2.0DE.CM-01 — Monitoring for Anomalies and EventsDNS tunneling detection depends on continuous anomaly monitoring of network activity.
DE.AE-02 — Detect Cyber ThreatsDNS tunneling is a threat pattern that emerges from correlated network indicators.
Recommendation — Correlate DNS telemetry and alert on sustained deviations from normal resolver behaviour. Tune detections to combine entropy, record type, and source-host behaviour.
NIST SP 800-53 Rev 5AU-6 — Audit Record Review, Analysis, and ReportingDetecting tunneling requires reviewing and analysing DNS and endpoint logs.
SI-4 — System MonitoringDNS tunneling is identified through continuous monitoring of network communications.
Recommendation — Centralise DNS logs and analyse them for suspicious repetition and anomalies. Monitor DNS traffic continuously and investigate sustained unusual query patterns.
MITRE ATT&CKT1071.004 — Application Layer Protocol: DNSDNS tunneling is a DNS-based command and control technique.
Recommendation — Map suspicious DNS patterns to T1071.004 and hunt for covert channel activity.

Practitioner Guidance

What to prioritise: Build detections around combinations, not isolated indicators. A high-entropy query or a TXT record alone is too easy to justify away, but a cluster of deep labels, repeated unusual record types, and the same source host is much stronger.

What to verify: Confirm that your logging path preserves query name, record type, source system, resolver identity, and time correlation. If any of those are missing, you will struggle to distinguish tunneling from normal application behaviour.

Decision rule: If a host repeatedly produces DNS patterns that are both uncommon for that system and consistent over time, treat it as a potential covert channel and investigate the originating process before assuming it is benign.

Practitioner takeaway: Effective DNS tunneling detection depends on behavioural correlation and baseline awareness, not on chasing one suspicious query at a time.

Free weekly newsletter

Subscribe to the NHI & AI Identity Journal

The latest on NHI and Agentic AI security – articles, research, breaches, news and events every week.

Bonus 33% off our NHI Course when you subscribe.

NHIMG Editorial Note
Reviewed and updated by the NHIMG editorial team on November 23, 2026.
NHI Mgmt Group — the #1 independent authority on Non-Human Identity, IAM, and Agentic AI security. nhimg.org