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
- TAM-H-ACT-010Emailing Data Out
- TAM-H-ACT-015Installing Malware From Inside
- TAM-H-ACT-021Making Unapproved Changes to IT Systems
- TAM-H-ACT-022Moving Data Over Other Links
- TAM-H-ACT-026Pasting Company Secrets Into Chatbots
- TAM-H-ACT-029Putting Off-Limits Apps on Work Machines
- TAM-H-ACT-048Uploading Data to Web Services
- TAM-H-CVR-020Masking Network Activity
- TAM-H-CVR-030Setting Traps for Investigators
- TAM-H-DRV-002Acting on Belief
- TAM-H-RCH-006Borrowed or Orphan Hardware
- TAM-H-STG-030Opening a Remote Desktop Door
- TAM-H-STG-035Planting a Remote Hands Box
- TAM-H-STG-040Probing the Defenses
- TAM-H-STG-050Selling Inside Access
- TAM-H-STG-054Switching Off the Guardrails