DNS Tunneling
Cheat sheet · https://pcornel.dk/topic.php?topic=4796
Answer
DNS tunneling hides data or command-and-control traffic inside DNS queries and responses, such as long encoded subdomains. Detect it by unusually long names, high query volumes and rare TXT or NULL records.
Remember
- Long, random subdomains are a sign.
- High query volume to one domain is a sign.
- TXT and NULL records carry data.
First checks
- DNS logs: long/high-entropy subdomains, high volume to one domain — tunnelling signs
zeek dns.log analysis— queries- Protective DNS alerts — detection
Verify in this order
data → encoded in DNS queries → attacker domain
Where it usually breaks
First mismatch in endpoint/identity → path/reachability → policy selection → enforcement/session → protected flow → telemetry/detection; preserve identity/policy/pre-state before mutation.
Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=4796