Phishing & scams

Pharming Attack Examples: 6 Real Cases and How to Stop Them

Pharming is phishing without the click: the attacker poisons DNS so the correct address leads to a fake site. These six real cases show how it works.

Cysoro Security TeamPublished · 10 min read
yourbank.comcorrect address typedFAKE SITEDNS sent you here insteadLogin stolenno click, no typo, no warning PHISHING & SCAMS Pharmingattacks Right address. Wrong site.
Quick answer

A pharming attack redirects you to a fake website even when you type the correct address, by poisoning DNS records, changing router settings, or infecting your device with malware that alters DNS. Real cases include the 2016 hijack of a Brazilian bank's 36 domains and the FBI's Operation Ghost Click, in which DNSChanger malware infected about 4 million computers and earned at least $14 million.

Key takeaways

  • Pharming needs no click: DNS poisoning sends the correct address to a fake site.
  • The biggest cases hijacked whole banks and ISPs, not individual users.
  • DNSSEC, HTTPS checks, router passwords and patched devices are the main defenses.

Phishing asks you to click a bad link. Pharming does not bother. It changes the signposts of the internet itself, so the correct address takes you to a fake site, and everything looks normal until your password is gone. That is what makes it one of the most dangerous scams most people have never heard of.

What is a pharming attack?

A pharming attack is a cyberattack that secretly redirects you to a fake website, even when you type the correct web address. It corrupts the Domain Name System, or DNS, which translates names such as your bank's domain into the IP addresses computers actually connect to.

Think of DNS as a phone book. Phishing gives you a fake phone number in a message. Pharming rewrites the phone book itself, so every call to the right name reaches the wrong number. Purdue University's DNS security course puts it plainly: pharming exploits DNS poisoning to change IP addresses and redirect URLs to fraudulent sites, and it is potentially more dangerous than phishing because the user did nothing wrong.

The fake site is usually a perfect copy of the real one, designed to steal login details, card numbers or personal information. Because you typed the address yourself, you have no reason to be suspicious, which is exactly the point.

How does a pharming attack work?

A pharming attack works by corrupting one of the steps between you and the real website. The main methods are DNS cache poisoning, changing a router's DNS settings, infecting a device with malware that alters DNS, and hijacking a domain's DNS records at the registrar.

In DNS cache poisoning, the attacker tricks a DNS resolver into storing a fake answer, so everyone using that resolver is sent to the attacker's server. In a router attack, the attacker changes the DNS server address in the router settings, which affects every device on that home or office network at once.

Malware-based pharming works on one device: the malware changes the system's DNS settings or its hosts file, the local file that maps domain names to IP addresses. And at the largest scale, attackers who compromise a domain registrar or DNS provider can change the DNS records for a whole organization, redirecting all of its websites. Each method leads to the same result: the right address, the wrong site.

How pharming redirects a correct addressYou typeyourbank.comcorrect addressPoisoned DNSreturns the attacker'sIP address insteadFake sitea perfect copy ofthe real bankYou log incredentials go tothe attackerNo click, no bad link, no typo. The address was right.That is why HTTPS certificate checks and DNSSEC matter.
Pharming rewrites the lookup, not the link. Illustration by Cysoro.

Pharming vs phishing: what is the difference?

Phishing relies on the victim making a mistake, such as clicking a link in a fake email. Pharming removes the victim from the equation: the redirect happens automatically, before the user can judge anything.

That difference changes who is at risk. Phishing can be stopped by training people to spot suspicious messages. Pharming can hit even a careful user, which is why the defenses are technical, at the DNS, router and browser level, rather than behavioral. The two attacks are often combined: a phishing email installs the malware that then carries out pharming.

PhishingPharming
Needs a click?Yes, usually a link or attachmentNo, the redirect is automatic
Victim's roleMust be tricked into actingNone, typing the right address is enough
ScaleOne victim at a timeWhole networks or organizations at once
Main defenseTraining, email filters, MFADNSSEC, HTTPS checks, router security
Typical goalPasswords, card numbers, moneyPasswords, card numbers, malware delivery

Both are covered by the same reporting routes, and our phishing email examples show the message-based side of the same threat. Pharming is the infrastructure side.

Example 1: the Brazilian bank hijacked for five hours

In October 2016, attackers took over the entire online operation of a major Brazilian bank for about five hours. They compromised the bank's DNS hosting service and changed the DNS records for all 36 of the bank's domains, redirecting visitors to perfect replicas hosted on malicious servers.

Anyone visiting the bank's genuine websites was silently sent to the fakes, which used free HTTPS certificates from Let's Encrypt to look legitimate. The attackers also captured the bank's internal email and FTP servers, and Kaspersky researchers who investigated believe they may have intercepted online banking, mobile, point-of-sale and ATM transactions during the window.

The bank, which had about 5 million customers and $25 billion in assets, was locked out of its own network during the attack. Kaspersky believes the operation began at least five months earlier, and that the attackers compromised the bank's account at its DNS provider. As The Register reported, the attackers transferred all 36 domains to phony websites, and the bank regained control after about five hours.

Example 2: Operation Ghost Click and DNSChanger

Operation Ghost Click is the largest pharming case ever prosecuted. Beginning in 2007, an Estonian criminal ring used malware called DNSChanger to infect about 4 million computers in more than 100 countries, including about 500,000 in the United States, among them computers belonging to NASA.

DNSChanger changed the infected computer's DNS settings to point at rogue servers controlled by the gang. When victims tried to visit real sites such as Netflix, the IRS or Apple's iTunes, they were redirected to fake pages, and legitimate advertisements were replaced with the gang's own ads. The scheme generated at least $14 million in illicit fees.

The FBI announced the takedown in November 2011, after a two-year investigation, arresting six Estonian nationals and seizing the rogue servers. Because so many computers depended on the rogue DNS servers, the FBI obtained a court order to replace them with clean servers until July 2012, to keep victims online while they cleaned up. The FBI's announcement remains the definitive account of the case.

Example 3: Brazilian ISPs poisoned in 2011

In November 2011, attackers hacked the DNS caches of several major Brazilian ISPs, changing the records for high-traffic sites such as Google Brazil, YouTube, Gmail and Hotmail, along with large Brazilian portals. Users on those ISPs who typed the correct addresses were redirected to a site that forced them to download a banking trojan.

The scale was enormous: Brazil had over 70 million internet users at the time, and each affected ISP served at least 3 million subscribers. A single poisoned cache entry could therefore put millions of online banking accounts at risk, which is why DNS cache poisoning is treated as a infrastructure-level threat rather than a consumer nuisance.

The same month, the FBI's Ghost Click arrests made headlines, and the two cases together pushed DNS security up the agenda. The lesson from both is that pharming scales: one poisoned resolver or one hijacked registrar can affect more people than a million phishing emails.

Example 4: the 2007 attack on more than 50 banks

In 2007, attackers targeted more than 50 financial institutions across the United States, Europe and Asia in a coordinated pharming campaign. They created an imitation web page for each targeted bank, using a combination of malware and DNS server poisoning to redirect customers to the fakes.

The attack was notable for its preparation: each fake site was tailored to its bank, so customers saw the branding, layout and login flow they expected. The campaign showed that pharming was not a one-off trick but an industrial process, with attackers able to run dozens of parallel fake banks from the same infrastructure.

It also showed the limits of user training. Customers who checked the address, avoided links in emails and typed the URL themselves were still redirected, because the corruption was in the DNS layer below the browser.

Example 5: the Venezuelan volunteer organization in 2019

In 2019, attackers targeted a Venezuelan volunteer organization, redirecting its users to a fake website and stealing their personal information. The case is smaller than the bank hijacks, but it matters because of who was targeted: volunteers, not wealthy banking customers.

Pharming is often framed as a financial crime, but the same technique works for surveillance, intimidation and identity theft against activists, journalists and aid workers. A fake site can harvest names, addresses and contacts, which are valuable to an attacker who wants to map a network rather than empty an account.

For organizations in sensitive work, that makes DNS security a safety issue, not just a fraud issue. Using trusted DNS, HTTPS and official apps matters more when the people visiting your site face real-world consequences.

Example 6: the Kaminsky attack that forced a global patch

The Kaminsky attack, disclosed in the summer of 2008, was not a pharming campaign against users, but the vulnerability that made large-scale pharming possible. Researcher Dan Kaminsky showed that DNS cache poisoning could be done reliably and at scale, by flooding a resolver with fake answers until one was accepted.

The flaw was so serious that DNS servers worldwide were patched in a coordinated emergency effort. Before Kaminsky, cache poisoning was thought to be hard because the attacker had to guess a 16-bit transaction ID. Kaminsky's method removed that barrier, and Purdue's course material notes that DNS servers worldwide were quickly patched to defend against it.

Modern DNS servers randomize transaction IDs and source ports, and DNSSEC adds cryptographic signatures to DNS answers, but the Kaminsky episode is a reminder of why DNS security is infrastructure work. When the phone book itself is vulnerable, every site in it is at risk.

Six defenses against pharming1. Use trusted DNSa reputable resolver, not an unknown one2. Secure your routerchange the admin password, update firmware3. Keep devices patchedmalware cannot change DNS on a patched device4. Heed HTTPS warningsnever bypass a certificate error5. Enable DNSSECsigned DNS answers cannot be forged6. Use official appsbanking apps skip the browser DNS pathFor organizations: lock the registrar account with MFA and registry lock.
Defenses at the device, router and DNS level, together. Illustration by Cysoro.

How do I protect myself from pharming?

Protect yourself at three levels: your device, your router and your DNS. Keep devices patched and run reputable security software, change your router's default admin password and update its firmware, and use a trusted DNS resolver rather than an unknown one.

Pay attention to HTTPS. A valid certificate does not prove a site is genuine, as the Brazilian bank case showed, but a missing padlock or a certificate warning is a real signal, and you should never bypass it. If a familiar site suddenly looks different or asks for details it never asked for, stop and check through another channel, such as the company's official app.

For a quick check, use our DNS lookup tool to see what a domain resolves to.

Also use the SSL checker to verify a site's certificate. If the DNS answer looks wrong, or the certificate does not match the company, do not log in.

How do organizations prevent pharming?

Organizations prevent pharming by locking down the DNS chain itself. That means MFA and a registry lock on the domain registrar account, DNSSEC signing so answers cannot be forged, and monitoring for unexpected DNS changes.

The Brazilian bank case is the cautionary tale: the attackers are believed to have compromised the bank's account at its DNS provider, and Kaspersky's researchers noted the attack could have been avoided if two-factor authentication had secured the DNS infrastructure. A registrar account is as sensitive as a bank account, and it should be protected like one.

Organizations should also monitor their domains for look-alikes and unexpected changes, and publish DNS records such as CAA that limit which certificate authorities can issue certificates for the domain. Our DNS and domain security platform covers domain monitoring and certificate monitoring for small teams.

What should I do if I fell for a pharming site?

Act quickly, and assume the credentials you entered are compromised. Change the password from a clean device, turn on two-factor authentication, and check the account for changes, new payees or transactions you do not recognize.

  1. Change the password from a different, clean device, and change it anywhere else you reused it.
  2. Turn on two-factor authentication on the affected account, preferably with an authenticator app or security key.
  3. Call your bank if it was a financial account, and ask them to watch for fraud.
  4. Check your device and router for changed DNS settings, and reset them to a trusted resolver.
  5. Report the fake site to the real company, and in the US to the FBI's IC3.

Do not try to investigate the fake site from the same device, and do not enter more details to test it. If the site installed anything, run a full security scan, and if in doubt, reset the device. See our guide on how to know if your phone is hacked for the signs to check afterwards.

The bottom line

Pharming is phishing with the victim removed: the correct address leads to a fake site, and careful users are hit just as hard as careless ones. The real cases, from a Brazilian bank hijacked for five hours to 4 million computers infected by DNSChanger, show the scale it can reach.

You cannot spot pharming by reading messages more carefully, because there is no message. Protect the DNS chain instead: trusted resolvers, a secured router, patched devices, DNSSEC, and respect for certificate warnings. Check a suspicious domain now with the DNS lookup tool.

Frequently asked questions

What is a pharming attack?

A pharming attack secretly redirects you to a fake website even when you type the correct web address. It works by corrupting DNS, the system that translates domain names into IP addresses, so your browser is sent to an attacker's server instead of the real one.

What is the difference between phishing and pharming?

Phishing tricks you into clicking a bad link or opening a fake message. Pharming needs no click: the redirect happens at the DNS level, so even a careful user typing the correct address can land on a fake site. That is why pharming is often described as more dangerous than phishing.

How can I tell if a website has been pharming-redirected?

Check for a missing or invalid HTTPS padlock, a certificate warning, a slightly wrong address, or a site that looks right but asks for details it never asked for before. If in doubt, close the tab, type the address again in a fresh browser, or use the company's official app.

Can antivirus stop pharming?

Antivirus helps against malware-based pharming, which changes DNS settings on your device, but it cannot stop DNS poisoning at your ISP or a hijacked domain registrar. That is why router security, DNSSEC and HTTPS checks matter as well.

What is DNS cache poisoning?

DNS cache poisoning is an attack in which fake DNS answers are planted in a resolver's cache, so everyone using that resolver is sent to the attacker's IP address for a real domain. The Kaminsky attack of 2008 showed how serious this could be, and DNS servers worldwide were patched in response.

How do I protect myself from pharming?

Use a reputable DNS resolver, keep your router firmware updated and change its default admin password, keep your devices patched, use HTTPS and pay attention to certificate warnings, and never ignore a browser warning about a site's identity.

What should I do if I entered my password on a pharming site?

Change the password immediately from a clean device, turn on two-factor authentication, check the account for changes or transactions you do not recognize, and tell your bank if it was a financial account. Report the fake site to the real company and to your national reporting service.

Sources

  1. FBI — International Cyber Ring That Infected Millions of Computers Dismantled
  2. The Register — Brazilians whacked: Crooks hijack bank's DNS to fleece victims
  3. Dark Reading — Cybercriminals Seized Control of Brazilian Bank for 5 Hours
  4. Razorpay — What Is Pharming Attack and How To Protect Yourself
Written & fact-checked byCysoro Security Team

The engineers and analysts who build Cysoro's domain scanner, email-authentication checks and free security tools. We test what we write about every day — SPF, DKIM, DMARC, certificates, look-alike domains and phishing — and check each guide against the relevant standards, government guidance and vendor documentation.

  • Email authentication
  • Phishing & BEC
  • Domain & DNS security
  • Small-business security

Checked against the FBI's Operation Ghost Click announcement, Kaspersky's Brazilian bank investigation as reported by The Register and Dark Reading, and Purdue University DNS security course material.

How we write and fact-check →

Free tools for this topic

No account needed.

See where your domain stands

Free for up to 3 domains. No card, no installs.

Start free