Definition
DNS Security encompasses the technologies and practices that protect DNS infrastructure from attacks such as DNS poisoning, amplification attacks, and hijacking, ensuring the integrity and availability of domain name resolution.
People Also Ask
Common questions about DNS Security answered by our security experts.
DNS Security in Practice
DNS is involved in almost every network interaction and is monitored in relatively few organisations. That combination makes it both a highly effective control point and a reliable blind spot.
This entry covers the practice of securing and using DNS. The specific protocol extension providing record integrity is covered in DNSSEC.
Why attackers rely on it
Malware needs to find its command infrastructure, and it usually does so by name rather than address, because names are easier to change when infrastructure is taken down. That means the lookup happens before the connection — and blocking at the DNS layer stops the connection from being attempted at all.
DNS is also a viable exfiltration channel. Data encoded into subdomain queries reaches an attacker-controlled name server, and because DNS is almost universally permitted outbound, it frequently succeeds where other channels would be blocked. It is slow and it is reliable.
What monitoring surfaces
Queries to known malicious domains. Queries to newly registered domains, which are strongly associated with phishing infrastructure. Unusual query volume from a single host, which is the tunnelling signature. Long or high-entropy subdomains, which encoded data produces. And internal systems querying external resolvers directly, bypassing whatever controls you configured.
That last one is worth checking specifically. A device using a public resolver instead of the corporate one is outside every DNS policy and log you maintain.
Encrypted DNS complicates the picture
DNS over HTTPS and DNS over TLS protect queries from observation in transit, which is good for privacy and awkward for organisational visibility — particularly where a browser uses its own encrypted resolver, bypassing the operating system configuration entirely.
The workable approach is to provide an encrypted resolver you operate, so queries are protected in transit while remaining visible to you, and to block or detect direct use of external encrypted resolvers.
Internal DNS is an information source for attackers
Record names describe infrastructure. An attacker who can query internal DNS broadly — or transfer a zone — obtains a map of server names, functions and naming conventions without scanning anything.
Zone transfers should be restricted to authorised secondaries, which is well understood and still occasionally found open. Internal resolvers should not be reachable from outside, and internal names should not resolve publicly.
Split-horizon configurations — different answers for internal and external queries — are the standard approach, and the common failure is an internal name accidentally published in the external zone, where it advertises infrastructure indefinitely.
Resolver availability is worth planning as well. Because essentially every interaction begins with a lookup, a resolver outage presents as a total network failure to users. Redundancy and a tested failover path matter more than the single-service nature of DNS usually suggests.
A common mistake worth avoiding
Where to start
Check whether internal systems can reach external DNS resolvers directly. If they can, your DNS controls are optional from the endpoint's perspective, and malware will simply use its own resolver.
See blocking the quiet exfiltration path. GuardsArm delivers managed security.
Related Terms
DNSSEC
DNSSEC (Domain Name System Security Extensions) is a suite of specifications that add authentication to DNS responses through digital signatures, preventing DNS spoofing and cache poisoning attacks.
DNS Poisoning
DNS Poisoning (also called DNS Spoofing) is an attack that corrupts DNS cache data so that domain name queries return incorrect IP addresses, redirecting users to malicious websites without their knowledge.
Network Security
Network security encompasses the policies, practices, and technologies designed to protect the integrity, confidentiality, and accessibility of computer networks and data. It includes both hardware and software solutions that defend against unauthorized access and cyber threats.
Related Reading
DNS Security for Healthcare: Blocking the Quiet Exfiltration Path
DNS is allowed out of almost every network, inspected by almost nobody, and will happily carry data out one query at a time. Logging, blocking and…
Microsegmentation in Hospitals: Start Small, Reduce Lateral Movement
Most microsegmentation projects fail by starting too big. How to map real flows, pick a first segment that proves the model, and enforce without…
Speak With an Expert
Book a free consultation to discuss dns security for your organization.
Related Services
Need Help With DNS Security?
Our certified security professionals can help you implement the right dns security strategy for your organization. Get a free assessment today.