Watering Hole Attack, Explained
If you are reading this, you have probably read about attackers "poisoning a website" that their targets use, and you want to know how that works and how it differs from phishing.
By the end you will be able to define a watering hole attack, explain each stage, tell it apart from phishing and drive-by attacks, recall real examples, and describe the defences.
1. What it is
NIST's glossary defines a watering hole attack as (NIST glossary):
"A security exploit where the attacker infects websites that are frequently visited by members of the group being targeted, with a goal of infecting a computer used by one of the targeted group when they visit the infected website."
The name comes from nature: predators wait at the watering hole because their prey must come there to drink. Wikipedia says the term was named in 2012 by the RSA blog (Wikipedia: Watering hole attack).
The key idea: the attacker does not go to the victim. The victim comes to the attacker's trap, on a site they already trust.
How it differs from phishing
| Phishing | Watering hole | |
|---|---|---|
| How the victim arrives | The attacker sends them a message | They visit a site they normally use, with no message |
| Trust | Faked (a pretend sender) | Real (a genuine site that has been compromised) |
| Victims | Chosen by sending | A defined group who share a habit, such as an industry or region |
| Warning signs | Odd sender, link or request | None visible: the site looks normal |
It is considered a form of social engineering in the sense that it relies on habit and trust (Wikipedia's social engineering article lists "water holing"), but there is no deception of the user. They simply browse as usual.
2. How it works
- Choose the target group. For example, employees of a sector, members of a profession, or people in a region.
- Find the sites they use. Industry news, forums, supplier portals, professional associations. Public information and observation can reveal these (see reconnaissance).
- Compromise one of those sites. By exploiting the site's own weaknesses, or a third party it uses (for example an advertisement network, an embedded script or a software update service).
- Plant the trap. Malicious code that runs when visitors load the page.
- Wait and filter. Many campaigns deliver the payload only to selected visitors, based on details such as language settings, location or browser, to avoid detection. In the 2012 Council on Foreign Relations case, the site delivered malware that targeted Internet Explorer zero-day vulnerabilities only to users with specific language settings (English, Chinese, Japanese, Korean or Russian), according to Wikipedia.
- Infect. Visitors who match and have a vulnerable browser or plugin, or who are tricked into running a download, become infected.
- Follow up. The attacker uses the foothold to move deeper (see privilege escalation).
Relationship to drive-by attacks
MITRE ATT&CK describes Drive-by Compromise (T1189): a user visits a compromised or malicious website, scripts check the browser and plugin versions, and exploit code runs if a vulnerable one is found. It adds that targeted campaigns, "watering hole attacks", focus on websites visited by specific communities. So a watering hole is a targeted form of drive-by attack. Drive-by downloads are covered in their own post.
3. Real examples
| Case | What happened (per Wikipedia) |
|---|---|
| Council on Foreign Relations, 2012 | The think tank's website hosted malware that exploited Internet Explorer zero-days and was delivered selectively to users with certain language settings |
| Havex campaign, 2013 | Malware aimed at industrial control systems in energy, aviation, pharmaceutical, defense and petrochemical sectors in the US and Europe, using supply chain and watering hole tactics |
| CCleaner, 2017 | The popular cleaning tool's installer contained malware from August to September 2017, distributed through official servers with valid developer certificates. A closely related supply chain attack |
(Software update and download pages are also "watering holes" in this sense: users trust them without thinking.)
4. Why it is hard to stop
- No suspicious message to catch. Email filters and awareness training do not help.
- The site is legitimate. Reputation-based blocking does not flag it, at least at first.
- Users did nothing wrong. They visited a normal site.
- It can target exactly the people who matter, and stay hidden from everyone else.
- Defenders often cannot see the compromise, which happens on a third party's site.
5. Defence
The defence is mostly about limiting what a malicious page can do, because you cannot always know which page is compromised.
For individuals and endpoints
| Control | Why it helps |
|---|---|
| Keep the browser, plugins, operating system and apps updated | Exploit code relies on known vulnerable versions (MITRE T1189 mitigation) |
| Remove unneeded browser plugins and extensions | Less attack surface |
| Use browser sandboxing and exploit protection | MITRE lists browser sandboxes and exploit protection as mitigations |
| Use an ad blocker or content blocking | MITRE notes ad blockers can help prevent malicious code served through ads from executing |
| Use security software with web protection | Blocks known bad content |
| Do not run unexpected downloads or prompts, even from familiar sites | A "update your plugin" prompt is a classic lure |
| Work as a standard user, not an administrator | Limits what a successful exploit can do |
For organizations
| Control | Why it helps |
|---|---|
| Prompt patching of endpoints and browsers | Closes the doors the exploit needs |
| Protective DNS and web filtering | Blocks known malicious domains and categories (the CISA/NSA/FBI guidance recommends protective DNS) |
| Network monitoring | MITRE suggests watching for unusual outbound connections, unexpected child processes spawned by browsers, and unusual file writes |
| Endpoint detection and response | Detects the behaviour after exploitation |
| Application allowlisting | Prevents unapproved programs from running |
| Network segmentation and least privilege | Contain a single infected machine |
| Threat intelligence about your sector | Learn which sites in your industry are being abused (see threat intelligence) |
| Isolation of browsing | Remote browser isolation can contain malicious web content |
| Supply chain hygiene | Verify the integrity of software before installing |
If you run a website
Your site could be the watering hole. Keep the site software and plugins updated, review third-party scripts and ad providers, use strong access control and multi-factor authentication for administration, monitor file changes, and have a plan for investigating and notifying visitors if you are compromised.
6. Common mistakes
| Myth | The facts |
|---|---|
| "I only visit trusted sites, so I am safe" | A trusted site is the point of the attack |
| "Phishing awareness training protects us" | There is no message to spot |
| "A padlock means no malware" | HTTPS only encrypts the connection |
| "It only happens to governments" | Any group with a shared habit can be targeted, and small sites can be compromised |
| "Antivirus will stop it" | It helps, but unpatched software remains the main route |
| "It is the same as phishing" | No message is involved. The victim browses normally |
Closing
A watering hole attack turns a site a group already trusts into the trap. It avoids the usual warning signs, so the defence is to keep software updated, limit what a browser can do, and watch for strange behaviour after a visit.
Keep these points:
- The attacker compromises where the targets already go.
- No suspicious message and no user mistake are needed.
- It is a targeted form of drive-by compromise.
- Patching, sandboxing, filtering, least privilege and monitoring are the defences.
- Software download and update sites are watering holes too.