Home › Cybersecurity wiki › What is pharming?

Wiki

What is pharming?

Pharming redirects the lookup of a trusted address to an attacker's system, often without the visible address looking wrong.
The user enters credentials on a page they believe is the real one.
The attack sits in name resolution or in the local mapping, not only in the text of a mail.

Methods of Pharming

The methods falsify either the name service's answer or the local file that resolves names before the name service is asked.
Both lead the browser to show the right characters and still open the wrong host.
Defense therefore has to protect resolution, not only the spelling of links.

DNS Poisoning

DNS poisoning returns a wrong address for a real name to the machine that asked.
That can happen at the resolver, in a cached record, or on a name server of the target domain that was taken over.
Users see the certificate and the address, and a mismatch there is the practical signal to stop entering data.

Host File Modification

The host file on the device maps names locally and is read before ordinary name lookup.
Malware writes the attacker's address there for a bank or a service.
Protection is a system that notices changes to that file, and a device on which unknown programs cannot write system files.

Impacts of Pharming

The effects are captured credentials, diverted payments, and a loss of trust that hits the real service even though its servers were never compromised.
People often notice the attack only at a charge they did not make.
The real operator has to explain that the address looked right and the wrong host still answered.

Identity Theft

Identity theft follows when credentials, one-time codes, or personal details are entered on the copied page.
The attacker uses them at once, while a second factor is still valid.
Services should still check unusual sign-ins, because the victim saw the real address and did not have to click a phishing link.

Damage to Reputation

The real service's reputation suffers because customers connect the fraud with the brand whose name they typed.
Correction works only when the operator explains the resolution path and narrows the accounts involved.
Silence strengthens the impression that the service itself was unsafe.

Prevention of Pharming

Prevention means protecting name resolution and the local mapping against change, and taking certificate warnings seriously.
Users stop when the certificate does not match the service they expect.
Operators watch their name records and keep administrative access to DNS tight.

Technical Measures

Technical measures are resolvers that check answers, monitoring of one's own name records, integrity protection for the host file, and enforcement of valid certificates.
Administrative accounts for DNS get a second factor and narrow rights.
A browser warning about the certificate is not clicked through on instructions that tell the user to do exactly that.

User Education

User education explains that a correct-looking address is not enough when the system already resolves the name wrongly, and that certificate warnings are a reason to stop.
It shows where to report a suspicious sign-in instead of trying the password again on that page.
The knowledge adds to technical control of resolution and does not replace it.

Conclusion

Pharming forges the mapping of a real name, not only the link in a message.
DNS and the host file are the two practical levers, and certificates are the visible warning.
Protection sits in the integrity of resolution and in taking the warning seriously, not in retyping the address.