DNS security basics: threats, DNSSEC and practical hardening

DNS security basics: threats, DNSSEC and practical hardening

DNS security is about protecting the system that turns names into addresses, because attackers abuse it for phishing, command and control, tunneling and hijacking. The controls with the best return are strong registrar account protection, DNSSEC where it fits, DNS query logging and filtering of known-malicious domains.

Why DNS matters to attackers

Almost every connection starts with a DNS lookup. Users type names, applications call APIs by name and malware looks up its servers by name. That makes DNS both a dependency every network needs and a place where attackers can hide, redirect traffic or take control of a brand.

Because DNS has to work for the business to work, it is often allowed through firewalls with little inspection. Defenders who treat it only as plumbing miss a source of detection data and a set of attack paths that are easy to close.

How attackers abuse DNS

Phishing and lookalike domains

Phishing campaigns depend on domains that look trustworthy. Attackers register names that resemble a real brand, swap characters or add familiar words. A user who clicks sees a login page on a domain that resolves normally, so nothing in DNS itself looks broken. Blocking newly registered or known-malicious domains at the resolver removes many of these links before a user reaches them.

Command and control

Malware needs a way to reach its operators. Using domain names instead of fixed addresses lets attackers move their servers without updating the malware. Some malware generates many candidate domain names and tries them until one works. From a defender’s view this shows up as repeated lookups of odd, unfamiliar names, often from a single host.

DNS tunneling

DNS tunneling hides other data inside DNS queries and answers. The attacker controls a domain and its name server, and the infected host encodes data into the names it looks up. Since DNS is rarely blocked outright, the traffic can carry stolen data or instructions out of a network that restricts other protocols. Unusually long names, a high volume of queries to one domain and many unique subdomains are common signs.

Hijacking and tampering

If an attacker changes where a domain’s records point, they control where users and email go. This can happen by taking over the account at the registrar or DNS host, by changing records at the provider, or by tampering with DNS infrastructure. CISA has published an emergency directive on mitigating DNS infrastructure tampering, which shows how seriously this class of attack is treated.

Dangling records and subdomain takeover

A dangling record is a DNS entry that still points to a resource that no longer exists, such as a decommissioned cloud service. If an attacker can claim that resource, they can serve content under your trusted subdomain. Regular review of your zones against the services you actually run closes this gap.

What DNSSEC does and does not do

DNSSEC adds digital signatures to DNS data. A resolver that validates those signatures can tell whether an answer really came from the zone owner and was not altered on the way. This helps against forged answers and cache poisoning.

DNSSEC does not encrypt DNS traffic. Anyone who can observe the network can still see which names are queried. It also does not protect a domain whose registrar account has been taken over, because an attacker with that access can change the signed records or the delegation themselves. DNSSEC authenticates answers; it is one layer, not a complete defense.

Protect the accounts that control your domains

The most damaging DNS attacks often start with an account, not a protocol flaw. Whoever controls your registrar and DNS hosting accounts controls your domain.

  • Require multi-factor authentication on registrar and DNS provider accounts, and prefer phishing-resistant methods where offered.
  • Use a registry lock, where your registrar supports it, so changes need extra verification.
  • Limit who can change records, and review that list when people change roles.
  • Use a shared mailbox you control for registrar contact addresses, and keep it protected too.

Visibility: log and filter DNS

DNS logs show which hosts looked up which names, including lookups that happen before a connection is made. That makes them valuable for investigations: if a domain is later reported as malicious, you can search the logs to find which devices contacted it.

Send resolver logs to your central logging or SIEM platform and keep them long enough to be useful. Pair logging with filtering: a protective DNS service or resolver policy can refuse to resolve known-malicious domains, which stops many phishing and malware connections at the first step.

How DNS security fits into prioritization

DNS controls reduce the chance that a flaw or a phishing link turns into an incident, but they do not replace patching. To decide what to fix first, see our guide to patch prioritization with CVSS, EPSS and KEV. If you need background on how flaws are tracked, read what is a CVE.

What defenders can do

  1. Turn on multi-factor authentication for every registrar and DNS hosting account, and enable registry lock for your most important domains.
  2. Inventory your domains and zones, including old and forgotten ones, and remove records that point to resources you no longer run.
  3. Log DNS queries from your resolvers and forward them to your central logging platform.
  4. Filter known-malicious domains at the resolver or through a protective DNS service.
  5. Alert on tunneling signs such as very long names, many unique subdomains under one domain and unusual query volume from a single host.
  6. Enable DNSSEC signing for your zones where your provider supports it, and use validating resolvers, understanding that it authenticates answers but does not encrypt them.
  7. Restrict internal hosts so they can only use your approved resolvers, so malware cannot bypass your filtering and logging.
  8. Review changes to DNS records through a controlled process and alert on unexpected changes to name server or mail records.

Further reading

Explainers on Cyber Strike News

Sources

Spotted an error or outdated detail? Email contact@cyberstrikenews.com with the article link. We correct and note every change. Read our Editorial Policy.

Similar Posts