Cyber Security Community Question

How do I protect against DNS Tunneling and data exfiltration through my network?

Posted on 2025-11-03 • In Cyber Security • By Charles Baker

I noticed some weird, high-volume traffic on port 53 during a routine log audit. I suspect someone might be using DNS tunneling to bypass our firewall. How can I detect this specifically, and what are the best tools to block non-standard DNS queries?

3 Answers 13,077 Views

All answers to this question 3 Answers

Susan Nelson Answered on 2025-11-10
Answered

DNS Tunneling is a favorite for attackers because port 53 is almost always open. You need to look for "Entropy" in your DNS queries. Normal queries look like "https://www.google.com/search?q=google.com," but tunneling queries often look like long, random strings of characters as subdomains (e.g., "https://www.google.com/search?q=a1b2c3d4.malicious-domain.com"). Tools like Cisco Umbrella or Infoblox are designed specifically to analyze these patterns. You should also restrict your internal clients so they can only talk to your internal DNS server, which then forwards to a secure, filtered upstream provider like Cloudflare (1.1.1.1) or Quad9.

Daniel Roberts Answered on 2025-11-12
Answered

Have you tried setting a threshold for the size of DNS packets? Tunneling often involves unusually large TXT records or null records.

Richard Lewis Commented on 2025-11-15
Commented

Great point. Monitoring packet size is a solid "low-tech" way to catch basic tools like Iodine or DNScat2. However, more advanced attackers use many small packets to stay under the radar. That's why "Query Volume" per source IP is a better metric. If one workstation is making 50,000 DNS requests an hour, it’s a red flag. You should also enable DNSSEC to ensure the integrity of the responses your servers are receiving.

Barbara King Answered on 2025-11-17
Answered

Use an EDR (Endpoint Detection and Response) tool on your servers. It can often see the process that is generating the DNS traffic and kill it before the data leaves.

Charles Baker Commented on 2025-11-19
Commented

EDR adds that "host-based" visibility that the network firewall lacks. Combining network logs with endpoint data is the only way to get the full picture.

Write a Comment

Your email address will not be published. Required fields are marked (*)

Join the LearnersEra Community

Ask questions, share knowledge and learn from professionals across technology, project management and certification topics.

Change Country and Nearest City

Select your country and nearest city to see courses available in your region.