Lesson 4 of 4 · 7 min
DNS in attacks and defence
The same lookup that gets you to a website is also used to fool you into the wrong one, to block sites, and, occasionally, to smuggle data out. What to watch for.
DNS sits so early in every connection that it shows up on both sides of security: attackers rely on how domain names are chosen and resolved, and defenders use the same system to block known-bad destinations. Three uses of DNS are worth understanding on their own.
Phishing and look-alike domains
A phishing site does not need to break DNS; it just needs a domain name close enough to fool a reader in a hurry. The US Cybersecurity and Infrastructure Security Agency (CISA) describes exactly this pattern: “malicious websites may look identical to a legitimate site, but the URL may use a variation in spelling or a different domain (e.g., .com vs .net).” CISA also recommends checking where a link actually points before trusting it: “if you hover your cursor over any links in the body of the email, and the links do not match the text that appears when hovering over them, the link may be spoofed.”
DNS blocking
Because a device asks a resolver before it can reach a site at all, whoever controls that resolver can quietly prevent the connection from ever starting. The Electronic Frontier Foundation explains the mechanism plainly: “an ISP can program its DNS resolver to give an incorrect answer, or no answer, whenever a user tries to look up the location of a blocked site or service.” Switching to a resolver that answers honestly can restore access, and using encrypted DNS (the previous lesson) adds another layer, since it can “prevent any network actor from seeing (and filtering) your DNS traffic.” The EFF also flags the limits of that approach: “if you are using any of the popular encrypted DNS services such as 1.1.1.1 or 8.8.8.8, be aware that governments can target these endpoints” directly.
DNS tunneling
DNS traffic is so routinely allowed through firewalls that it can be abused as a channel of its own. MITRE ATT&CK, the widely used catalogue of real-world attacker techniques, describes this as DNS tunneling: “adversaries may abuse DNS to communicate with systems under their control within a victim network while also mimicking normal, expected traffic.” In practice this means commands or stolen data are encoded into DNS queries and responses, which pass unnoticed among the legitimate lookups every device makes constantly. It is a technique built into an otherwise ordinary, essential protocol, which is part of why it is hard for a network to block outright.
Choosing a resolver
There is no single resolver that is simply “safe”: every choice moves visibility somewhere. Cloudflare notes that its own public resolver, 1.1.1.1, “supports both DoT and DoH”, and other public resolvers offer the same encrypted options; whichever you choose, that operator becomes the party that sees your lookups, as the earlier lesson on visibility described. A resolver that also blocks known-malicious domains can stop a lookup from ever reaching a confirmed phishing or attack domain, but it is a filter, not a guarantee that every dangerous domain will be on its list.
None of this amounts to a promise that any single setting makes a device safe: DNS is one layer among many, and determined, well-resourced attackers adapt around any single defence. Anyone facing a specific, serious threat, a journalist, an activist, someone under targeted surveillance, is better served by expert help than by a checklist. The Access Now Digital Security Helpline offers free, direct technical assistance to people and organizations at risk, and Freedom of the Press Foundation supports journalists with similar digital security guidance.
Key takeaways
- Phishing often relies on domains that merely look correct; CISA recommends checking the exact domain and where a link actually points.
- A resolver that controls the answer can block a site by giving a wrong answer or no answer at all, per the EFF.
- Encrypted DNS can prevent a network from filtering your lookups, but governments have been known to target well-known encrypted resolvers directly.
- DNS tunneling, catalogued in MITRE ATT&CK, hides commands or data inside ordinary-looking DNS traffic, exploiting how routinely DNS is allowed through firewalls.
- No resolver or setting makes a device categorically safe; people facing serious, targeted risk should seek expert help, such as the Access Now Digital Security Helpline.
Check yourself
1. What does CISA say is a common sign of a phishing website’s domain?
- It always uses HTTPS
- It may use a variation in spelling or a different domain, such as .net instead of .com — Right.
- It is always hosted outside the country
- It never uses a domain name at all
CISA describes look-alike phishing domains as using "a variation in spelling or a different domain (e.g., .com vs .net)."
2. How can an ISP or network operator block a website using only DNS?
- By deleting the website
- By programming its DNS resolver to give an incorrect answer, or no answer, for that site — Right.
- By changing the website’s IP address
- DNS cannot be used to block a website
The EFF explains that "an ISP can program its DNS resolver to give an incorrect answer, or no answer, whenever a user tries to look up the location of a blocked site or service."
3. What is DNS tunneling, as described in MITRE ATT&CK?
- A way to make DNS lookups faster
- Adversaries using DNS traffic to communicate with compromised systems while mimicking normal, expected traffic — Right.
- A method for encrypting all web traffic
- A type of physical network cable
MITRE ATT&CK describes DNS tunneling as adversaries abusing DNS "to communicate with systems under their control within a victim network while also mimicking normal, expected traffic."
4. Is switching to a well-known encrypted public DNS resolver a guarantee against government-level blocking?
- Yes, always
- No; the EFF notes governments can target well-known encrypted resolver endpoints directly — Right.
- Only in some browsers
- Only if you also change your IP address
The EFF cautions that "if you are using any of the popular encrypted DNS services such as 1.1.1.1 or 8.8.8.8, be aware that governments can target these endpoints."
Do it with FireAI
Put this lesson into practice on your own Mac.
- Deep inspection, without decrypting anything — Get real detail on a secure connection without FireAI ever reading what’s inside it.
- Threat lists (opt-in) — Check your traffic against public threat data without sending it anywhere.
- Block an app from the internet, or just one company or domain for it — Cut off exactly what you mean to — the whole app, or just one company it talks to.
Sources
- CISA: Avoiding Social Engineering and Phishing Attacks
- EFF Surveillance Self-Defense: Understanding and Circumventing Network Censorship
- MITRE ATT&CK: Application Layer Protocol – DNS (T1071.004)
- Cloudflare Learning: DNS over TLS vs. DNS over HTTPS
- Access Now: Digital Security Helpline
Put it into practice on your Mac
Try every feature free for 17 days, no card needed.