Pharming fraud is a cyberattack that redirects you from a legitimate website to a fake copy by corrupting the Domain Name System (DNS) lookup or your device's hosts file. You type the correct address, but your computer is sent to an attacker's server instead, where fake login pages steal passwords, card details and other personal information.
Key takeaways
- Pharming redirects the correct web address to a fake site, so it works even without a clicked link.
- It spreads through DNS poisoning, rogue DNS servers, router hijacking and malware that rewrites the hosts file.
- HTTPS warnings, DNSSEC, trusted DNS, router updates and malware scans are the strongest defenses.
You type your bank's address correctly, press Enter, and the page looks right. The problem is that it is not your bank at all. Pharming fraud corrupts the lookup that turns a web address into a server, so the right URL can still deliver you to a fake site.
What is pharming fraud?
Pharming fraud is a cyberattack that redirects traffic from a legitimate website to a fraudulent copy by corrupting DNS resolution or the hosts file on a device. The fake site harvests logins, card numbers and personal details.
The name blends "phishing" and "farming". Like phishing, the goal is usually stolen credentials. Unlike phishing, pharming does not need you to click a suspicious link. The redirection happens in the background, before the page even loads.
Think of DNS as the internet's phone book: it turns yourbank.com into the numeric IP address of the bank's server. Pharming edits that phone book. Your browser asks for the bank and is handed the attacker's number instead.
Because the address bar can still show the address you typed, victims often have no idea anything is wrong until money disappears or an account is locked. That invisibility is why pharming is rated as one of the more dangerous forms of online fraud.
How does pharming work?
Pharming works by intercepting the step between typing a domain name and reaching its server. Attackers poison a DNS cache, run a rogue DNS server, hijack a router, or install malware that rewrites local settings.
There are four common routes in. First, DNS cache poisoning: false records are injected into a DNS server's cache, so everyone using that server gets wrong answers for a domain. Second, rogue DNS servers: malware changes your device or router to use an attacker-controlled DNS server for every lookup.
Third, router hijacking: attackers exploit a weak router password or unpatched firmware to change the router's DNS settings, poisoning every device on the network at once. Fourth, hosts-file tampering: malware edits the local hosts file, which overrides DNS for specific domains on that one computer.
Once the redirect is in place, the fake site is usually a close copy of the real one. It asks for your username and password, and sometimes for card details, one-time codes or security answers. Everything you type goes straight to the attacker.
Pharming vs phishing: what is the difference?
Phishing and pharming share a goal — stealing your credentials — but they attack different steps. Phishing tricks the person; pharming tricks the infrastructure that person relies on.
| Phishing | Pharming | |
|---|---|---|
| Trigger | You click a malicious link or open a fake message | You visit a site normally; the lookup is corrupted |
| What is attacked | The person, through deception | DNS, the router, or the device's hosts file |
| Address bar | Usually a look-alike or shortened URL | Can show the correct address you typed |
| Scale | One victim per click, sent in bulk | Everyone using a poisoned server or router |
| Main defense | Spot the fake message, verify the sender | HTTPS warnings, trusted DNS, patched routers |
| Needs malware? | No, usually just a convincing message | Often yes, or a compromised DNS server |
The two attacks are often combined. A phishing email can install the malware that sets up pharming, and a pharming redirect can lead to a phishing-style fake login page. Our guide to phishing email examples shows the message side of that pairing.
What are the main types of pharming attacks?
Pharming attacks fall into two broad families: DNS-based attacks that poison shared infrastructure, and host-based attacks that change settings on one device or router.
DNS cache poisoning
An attacker injects false DNS records into a resolver's cache. Every user of that resolver who asks for the target domain is sent to the fake IP until the poisoned record expires. Larger resolvers mean larger victim pools.
Rogue DNS servers
Malware changes a device's DNS settings to point at a server the attacker controls. From then on, some or all lookups go through the attacker, who can redirect banking, email and shopping sites at will.
Router hijacking
Attackers log in to a home or office router with a default password, or exploit unpatched firmware, and change its DNS settings. Every phone, laptop and smart device on that network is then affected, which makes this variant hard to spot.
Hosts-file pharming
Malware edits the operating system's hosts file, which takes priority over DNS. When you visit a listed domain, your computer skips the real lookup entirely and goes to the attacker's IP. Only that one machine is affected, but the redirect is persistent.
What are real examples of pharming fraud?
The best-documented pharming case is DNSChanger, a malware operation the FBI dismantled in 2011. It shows how a quiet DNS change can scale to millions of victims.
Beginning in 2007, the ring behind DNSChanger infected about 4 million computers in more than 100 countries, including about 500,000 in the United States. The malware changed infected computers' DNS settings to point at rogue servers run by the attackers.
Victims were redirected to fake sites and manipulated advertising, generating at least $14 million in illicit fees, according to the FBI. The malware also blocked antivirus updates, leaving victims exposed to further infection.
Six Estonian nationals were arrested in the FBI's Operation Ghost Click, and the FBI obtained a court order for temporary clean DNS servers so infected users would not lose internet access while they cleaned their machines. The clean servers were switched off on 9 July 2012.
Smaller pharming attacks rarely make headlines, which is part of the risk. A single compromised router in a small office can silently redirect staff to fake banking and email pages for weeks before anyone notices.
How do you spot pharming fraud?
Pharming is designed to be invisible, but it leaves clues. Check for these before you log in anywhere important:
- A browser certificate warning. If your browser says the connection is not private or the certificate does not match, stop. This is the strongest pharming signal.
- A missing padlock or "http" instead of "https". Real banks and email providers use HTTPS. A plain-HTTP login page is a red flag.
- A site that looks slightly wrong. Odd fonts, broken images, missing pages or clumsy wording can betray a copied site.
- Unusual login requests. A site asking for your full card number, PIN or one-time code on the first screen deserves suspicion.
- Antivirus or update failures. DNSChanger-style malware blocks security updates. If updates suddenly fail, investigate.
- Other devices behaving the same way. If every device on your Wi-Fi lands on the same odd page, suspect the router, not one computer.
- Search results that look right but feel wrong. If a familiar site loads with strange ads or redirects, close it and check from another network.
If anything feels off, stop and verify from a different device or network. You can check a domain's DNS records with our free DNS lookup tool.
Also check the site's certificate with the SSL checker, and read Imperva's pharming explainer for the technical detail behind DNS manipulation.
How do you prevent pharming fraud?
No single control stops pharming, because it attacks several layers at once. Combine these defenses and the attack gets much harder to pull off.
For individuals
Never click through a certificate warning to log in. Close the tab and try again later, or contact the company through a known number. A real site will fix its certificate; a fake one cannot get one for the real domain.
Use encrypted DNS. DNS-over-HTTPS (DoH) or DNS-over-TLS (DoT) encrypts your lookups so they are harder to tamper with on the network. Most modern browsers offer this in settings.
Secure your router. Change the default admin password, update the firmware, and turn off remote administration. Our guide to how to secure your Wi-Fi walks through the settings that matter.
Keep devices patched and scanned. Pharming malware usually arrives through a malicious download or an unpatched flaw, so updates and antivirus scans remove its easiest entry points.
For businesses
Deploy DNSSEC where you control domains. DNSSEC adds cryptographic signatures to DNS records, so resolvers can detect forged answers. It does not fix a compromised device, but it raises the bar for cache poisoning.
Monitor DNS and domains. Watch for unexpected DNS changes, look-alike domains and certificate issuance for your brand. Cysoro's DNS and domain security covers monitoring for these changes.
Enforce HTTPS and HSTS. HSTS tells browsers to refuse plain-HTTP connections to your site, which removes the downgrade route pharming relies on.
What should you do if you were pharming-redirected?
Act quickly, and assume any credentials you typed on the fake site are compromised. Speed limits the damage.
- Close the fake site and do not enter anything else. Note the address and take a screenshot if you can do so safely.
- Run a full malware scan on the device, and check its DNS settings and hosts file for entries you did not add.
- Check your router. Log in, verify the DNS servers listed, and reset the router to factory settings if anything looks wrong.
- Change passwords for every account you may have used on the fake site, from a clean device, and turn on two-factor authentication.
- Check bank and card statements for unfamiliar transactions and tell your bank if you entered payment details.
- Report it. Tell the real company, report fraud to the FTC at reportfraud.ftc.gov, and file a complaint with the FBI's IC3 if money was lost.
The bottom line
Pharming fraud is phishing without the click: it corrupts the address lookup itself, so the correct URL can still take you to a fake site. The DNSChanger case, with about 4 million infected computers, shows how far that quiet redirect can reach.
Your best defenses are simple habits: never ignore a certificate warning, use encrypted DNS, keep your router locked down and patched, and use two-factor authentication everywhere it matters. Check your own domain's DNS and certificate health with the free DNS lookup tool.
Frequently asked questions
What is pharming fraud in simple terms?
Pharming fraud is when an attacker changes the internet's address book so that a real website address takes you to a fake copy. You did nothing wrong — you typed the right address — but the lookup behind the scenes was corrupted.
What is the difference between pharming and phishing?
Phishing tricks you into clicking a bad link or opening a fake message. Pharming corrupts DNS or your device so the correct address itself leads to a fake site. Phishing needs your click; pharming does not.
Can pharming happen if I type the address myself?
Yes. That is what makes pharming dangerous. If DNS settings on your device, router or DNS server are poisoned, typing the address by hand still sends you to the attacker's site.
How do I know if a website has been pharming-redirected?
Look for browser certificate warnings, a missing padlock, odd spelling in the address bar, a site that looks slightly wrong, or login pages asking for unusual details. A certificate warning is the clearest sign — stop and do not enter credentials.
Does HTTPS protect against pharming?
HTTPS helps a lot. A fake site usually cannot present a valid certificate for the real domain, so your browser warns you. Always treat certificate warnings as a stop sign, and never click through them to log in.
What should I do if I think I was pharming-redirected?
Close the site, do not enter any details, and run a full malware scan. Check your DNS settings and router, change passwords for any accounts you may have used, enable two-factor authentication, and report the fake site to the real company.
Is pharming illegal?
Yes. Pharming is fraud and computer intrusion. In the DNSChanger case, six Estonian nationals were arrested and charged with wire fraud and computer intrusion after infecting about 4 million computers.
Sources
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.
Checked against the FBI's Operation Ghost Click case, Imperva and Avast pharming explainers, and Wikipedia's pharming overview.
How we write and fact-check →