A Bank's Customers Were Logging In — Just Not to the Real Bank

In 2017, attackers hijacked DNS records for a major Brazilian bank, redirecting all of its online customers to perfectly cloned phishing sites for roughly five hours. Every login, every transaction, every credential — harvested in real time. The attackers even obtained valid HTTPS certificates for their fake domains, so browsers showed the reassuring padlock icon. Customers had no idea.

That's the terrifying efficiency of a DNS spoofing attack. It doesn't require breaking into your network or exploiting a software vulnerability. It poisons the system your devices trust to find the right website — and sends everyone somewhere else entirely.

If you manage infrastructure, run a business, or simply care about where your data actually goes when you type a URL, this is the attack you need to understand right now.

What Is a DNS Spoofing Attack?

A DNS spoofing attack — also called DNS cache poisoning — occurs when a threat actor corrupts the Domain Name System (DNS) resolver cache, replacing legitimate IP address mappings with malicious ones. Instead of reaching your bank, your email provider, or your company's internal portal, your device gets silently redirected to an attacker-controlled server.

DNS is the internet's phone book. Your device asks a DNS resolver, "What's the IP address for mail.yourcompany.com?" A spoofed response gives it the wrong number — one that routes to a fake site designed to steal credentials, install malware, or intercept communications.

How the Attack Actually Works

Here's the simplified chain of events I walk through when training security teams:

  • Interception: The attacker positions themselves to intercept DNS queries — either by compromising a resolver, exploiting a network vulnerability, or sitting on the same local network (think public Wi-Fi).
  • Forged response: Before the legitimate DNS server can reply, the attacker sends a spoofed response with a malicious IP address, matching the transaction ID of the original query.
  • Cache poisoning: The resolver caches this forged record. Now every user who queries that resolver for the same domain gets sent to the attacker's server — for as long as the poisoned record's TTL (time-to-live) persists.
  • Credential theft or payload delivery: The victim lands on a cloned login page, enters credentials, and hands them directly to the attacker. In more sophisticated operations, the attacker proxies the traffic to the real site so the victim never notices anything wrong.

Why DNS Spoofing Remains Dangerously Effective in 2026

You might think this is an old-school attack. It is — Dan Kaminsky demonstrated the fundamental flaw in DNS in 2008. But "old" doesn't mean "solved."

According to the CISA cybersecurity advisories, DNS-related attacks continue to appear in threat campaigns targeting both government and private-sector networks. The reason is simple: DNSSEC adoption is still inconsistent, and most organizations don't monitor DNS traffic with the rigor they apply to email or endpoint security.

I've personally audited organizations running multi-million-dollar security stacks who had zero visibility into their DNS query logs. Firewalls, EDR, SIEM — all top-tier. DNS? Default settings on the router from 2019.

The Verizon DBIR Connection

The Verizon 2024 Data Breach Investigations Report found that credential theft and phishing remain the top initial access vectors in confirmed breaches. A DNS spoofing attack supercharges both — it makes phishing invisible by eliminating the suspicious URL that trained employees might otherwise catch. When the address bar shows the correct domain name, even security-aware users get fooled.

DNS Spoofing vs. DNS Hijacking: What's the Difference?

People use these terms interchangeably, but they're distinct attack techniques:

  • DNS spoofing / cache poisoning: Corrupts the cached records in a DNS resolver so it returns malicious IP addresses for legitimate domains.
  • DNS hijacking: Changes the DNS settings on a device, router, or at the registrar level to point to a rogue DNS server entirely.

Both redirect traffic. The difference is where the manipulation happens. Spoofing targets the resolver's cache. Hijacking targets the configuration. In practice, I've seen threat actors chain both techniques together — hijack a router's DNS settings AND poison upstream resolver caches for redundancy.

Real-World Damage: More Than Just Stolen Passwords

A DNS spoofing attack enables far more than credential theft. Here's what I've seen or studied in real incidents:

  • Ransomware delivery: Users redirected to sites serving drive-by downloads that deploy ransomware payloads. No phishing email required.
  • Man-in-the-middle interception: Attacker proxies traffic between the victim and the real server, capturing session tokens, API keys, and sensitive data in transit.
  • Email interception: Spoofed MX records redirect incoming email to attacker-controlled mail servers. Think about what arrives in your company's inbox — invoices, contracts, password reset links.
  • Supply chain compromise: Poisoned DNS records for a software update server can redirect devices to download trojanized updates.

How to Detect a DNS Spoofing Attack

Detection is the weak link for most organizations. Here are the practical indicators I tell teams to watch for:

  • Unexpected certificate warnings: If users report TLS errors on internal or common sites, investigate immediately. It could indicate DNS redirection to a server without a valid certificate.
  • DNS query anomalies: Spikes in NXDOMAIN responses, unusual query volumes to external resolvers, or queries to domains with abnormally short TTLs.
  • Login failure surges: A sudden increase in "wrong password" reports from users who insist they're entering correct credentials. They might be submitting them to a cloned site.
  • Passive DNS monitoring: Tools that log and analyze DNS resolutions over time can flag when a domain suddenly resolves to a new, unrecognized IP.

Seven Defenses That Actually Work

Here's the stack I recommend. Not all of these require a budget — some just require attention.

1. Deploy DNSSEC

DNSSEC cryptographically signs DNS records, so resolvers can verify that a response hasn't been tampered with. NIST has published detailed guidance on implementing DNSSEC for federal agencies, and the same principles apply to any organization. It's the single most effective technical control against cache poisoning.

2. Use Encrypted DNS (DoH/DoT)

DNS over HTTPS (DoH) or DNS over TLS (DoT) encrypts DNS queries, preventing on-path attackers from intercepting or modifying them. Most modern browsers and operating systems support these protocols natively.

3. Lock Down Your Resolvers

Restrict your internal DNS resolvers to accept queries only from your network. Disable open recursive resolution. Randomize source ports and query IDs — the two fields an attacker must guess to successfully poison a cache.

4. Monitor DNS Logs Like You Monitor Email

Feed DNS query logs into your SIEM. Create alerts for resolution changes on critical domains — your banking providers, SaaS platforms, identity providers. If your SSO login portal suddenly resolves to an IP in a hosting range you've never seen, you want to know in minutes, not months.

5. Enforce Multi-Factor Authentication Everywhere

Even if a DNS spoofing attack captures a user's password through a cloned login page, multi-factor authentication can block the attacker from using that credential. MFA is your safety net when the network-layer defenses fail.

6. Adopt Zero Trust Architecture

Zero trust principles — verify explicitly, least-privilege access, assume breach — reduce the blast radius of any DNS-based redirection. If your network doesn't trust a device just because it's "inside the perimeter," DNS spoofing can't pivot as far or as fast.

7. Train Your People

Social engineering doesn't stop being relevant just because the attack is technical. Your employees need to recognize the signs — unexpected certificate warnings, login pages that feel slightly off, sudden password failures. Security awareness training turns your workforce into a detection layer.

Our cybersecurity awareness training program covers DNS-based threats alongside phishing, credential theft, and social engineering tactics. For organizations that want to test and reinforce these skills, our phishing awareness training for organizations runs realistic phishing simulations that include DNS-adjacent scenarios — cloned portals, spoofed domains, and lookalike URLs.

The 60-Second Version: What You Need to Remember

A DNS spoofing attack redirects your traffic at the infrastructure level — below the line where most security tools and most users are watching. It makes phishing invisible, enables credential theft at scale, and can persist in resolver caches for hours or days.

Your defenses come down to four priorities: implement DNSSEC, encrypt your DNS traffic, monitor your DNS logs aggressively, and train your people to recognize the symptoms. Skip any one of those, and you're leaving a gap that threat actors have been exploiting for nearly two decades.

DNS is the foundation of every connection your organization makes. If that foundation is poisoned, nothing built on top of it can be trusted.