DET-092 · human · confidence Medium

Outbound DNS Anomaly Review

Watch DNS queries leaving the network for patterns typical of tunneling, such as long names and unusual volume to a single domain.

DNS tunneling hides data inside query names or responses, which many firewalls let through by default. An insider can use it to move data out of a segment that blocks everything else. Resolver logs, DNS appliances, or a network sensor let you see every query.

The usual tells are very long or random-looking subdomains, high query counts to a single parent domain, large TXT responses, and hosts that bypass the approved resolver. Count by registered domain per host per hour and compare to the fleet.

Data sources
DNS resolver logsZeek dns.logFirewall DNS logsNIDS alerts
Platforms
Network

Logic

dns | eval sub_len=len(subdomain) | stats count dc(query) as uniq avg(sub_len) as avg_len by src_ip, parent_domain, span=1h | where uniq>500 AND avg_len>40

False positives

CDNs, anti-virus cloud lookups and some email security tools use long, high-entropy names. Allowlist them after review.

Catches 16 techniques