Join our Newsletter — 33% off our NHI Course
Home› Guides› Watering Hole Attacks for Beginners: When a Trusted…
Guide Attack Techniques & Malware

Watering Hole Attacks for Beginners: When a Trusted Website Becomes the Trap

PDF for newsletter subscribers · free to read online

← All guides
By NHI Mgmt Group, under the editorial direction of Lalit Choda Updated 28 November 2026 10 min read
On this page

A watering hole attack is when criminals hack a website that a chosen group trusts and visits often.

This guide is for anyone who uses the web for work, and for students learning how attacks are planned. You do not need to click anything odd to be affected: the trap sits on a site you already know and use.

In short

  • Attackers pick a website that their real targets visit, such as an industry news site or a members' forum.
  • They hack that site and hide a trap in it, sometimes shown only to visitors from the target group.
  • The trap tries to use weak spots in out-of-date browsers to put harmful software on the visitor's device.
  • Quick updates, a modern browser and tools that block known bad sites lower the risk.

What you will learn

  • Explain what a watering hole attack is in one sentence.
  • Spot how it differs from a random drive-by attack.
  • Check the simple settings that lower your risk.
  • Ask whether your own website could become someone else's trap.
Software fix (patch)
an update that closes a weak spot in a program.
Unknown weak spot (zero-day)
a flaw attackers use before the maker has released a fix.

What is a watering hole attack?

Picture a lion on the plains. Rather than chase animals across the land, it waits by the watering hole where they all come to drink.

A watering hole attack works the same way. The attacker wants to reach a certain group, such as staff at energy firms or people in a political movement. Rather than target each person, they find a website that group visits. Then they hack that site and leave a trap on it.

When people from the group visit, the trap checks their device. If their browser is out of date, it may try to install harmful software, called malware, without any click or download from the visitor.

The site itself is often a real, honest site. Its owners may not know it has been hacked.

Where the comparison stops working: a lion can only catch one animal at a time. A hacked website can try its trap on every visitor, all day, and the visitors cannot see the danger.

Why does it matter?

We are taught to be wary of odd emails and strange links. A watering hole attack gets round that, because the trap sits on a site you already trust.

In 2019, Google researchers reported a small group of hacked websites that attacked iPhone visitors. They said simply visiting a site was enough, and the sites had thousands of visitors a week.[3]

If you work in a targeted industry

What could happen: you read your usual trade news site, and your work laptop is quietly infected.

Check this: let updates install promptly on your browser and laptop.

Next: Software Updates at Home for Beginners

If you run a website for a community

What could happen: attackers hack your site and use it to attack your own members.

Check this: keep the site's software and plug-ins updated, and protect admin access with two-step sign-in.

Next: Watering Hole Attacks Guide

If you look after IT for an organisation

What could happen: a few staff laptops are infected, and nobody spots it because the site looked normal.

Check this: use a filter that blocks known bad websites, and watch its records for blocked requests.

Next: Web and DNS Filtering for Beginners

What does it look like?

From the outside, a hacked site usually looks normal. Here is a made-up scenario card showing what changed behind the scenes.

Example only. All values are made up.

SCENARIO CARD (EXAMPLE)
Site:      news.example.com, a trade news site for
           water engineers                            (1)
Change:    one hidden extra line added to the page    (2)
           loads: check.example.invalid/0000
Who sees:  only visitors from FAKE-Utility offices    (3)
Checks:    browser name and version                   (4)
Others:    see the normal page, nothing happens
  1. In a real file, this line would name an honest site that the target group trusts.
  2. A single hidden line pulls in content from a server the attacker controls.
  3. The trap may show only to the target group. Other visitors see nothing odd.
  4. It looks for an old browser with a known weak spot it can use.

Why this is risky: the visitor did nothing wrong. They went to a site they trust, and the trap ran in the background.

The safer way: an up-to-date browser closes the known weak spots the trap looks for.[5] A filter that blocks known bad web addresses, such as protective DNS, can stop the hidden line from loading. Its records can also show which devices tried to reach a bad address.[4]

How does it work?

  1. Pick the group. The attacker decides who they want to reach, such as people in one industry, region or cause.[1]
  2. Find their watering hole. They work out which websites that group visits often.
  3. Hack the site. They break into one of those sites and add hidden code to its pages.[1]
  4. Check each visitor. The hidden code looks at the visitor's browser. It may also check where the visitor is coming from.
  5. Spring the trap. If it finds a weak spot, it tries to use it to run malware on the device.[1] That malware may let the attacker spy on the device or steal files.[2]
Diagram titled Who visits what. On the left, an attacker. Arrow 1 goes to a trusted trade news website in the middle, labelled hacked: hidden trap added. On the right, three groups of visitors. Arrow 2 goes to members of the public, labelled see the normal page. Arrow 3 goes to staff at the target firm, labelled trap checks their browser. Arrow 4 goes from one target firm laptop with an out-of-date browser, labelled harmful software installed, back to the attacker. A green bar says updated browsers and blocking known bad sites cut the risk at step 3.
Figure 1. The attacker hacks a site the target group trusts, and the trap may only fire for that group.

A watering hole attack is a targeted form of a drive-by attack. In a random drive-by, criminals hit any visitor to any site they can reach. In a watering hole attack, they choose the site because of who visits it.[1]

Comparison diagram titled Random drive-by versus watering hole. Left panel, labelled Random drive-by: any website or advert, aimed at anyone who visits, often to steal money or passwords at scale. Right panel, labelled Watering hole: a site chosen because a target group trusts it, aimed at that group, sometimes showing the trap only to them, often to spy on or get into an organisation. A bar underneath says the same defences help with both: updates, a modern browser, and blocking known bad sites.
Figure 2. A random drive-by casts a wide net. A watering hole waits where a chosen group gathers.

A worked example

Juno Lomax is a project engineer at a firm that designs water treatment plants. Most mornings she reads a small trade news site for the water industry with her coffee.

One Monday, the site looks the same as ever. Behind the scenes, attackers have hacked it over the weekend. They added a hidden line that checks each visitor. Visitors from a list of water firms get extra code that hunts for an old browser.

Juno's laptop had been showing a "restart to update" message for two weeks. She kept putting it off. Her browser was still on an old version with a known weak spot.

The firm's IT lead, Lars Whitlock, uses a web filter that blocks known bad web addresses. On Monday afternoon it starts blocking requests from two laptops to a newly listed bad address. One of them is Juno's.

Lars takes both laptops off the network. A scan finds a hidden program on Juno's laptop that was trying to connect out. The other laptop had been updated, and the scan finds nothing on it. Lars wipes and rebuilds Juno's laptop. He also changes her work passwords, in case the program recorded them.

Lars tells the news site's owner, who had no idea the site was hacked. The owner cleans the site and resets the admin passwords.

Lars then sets updates to install on a deadline, so nobody can put them off for weeks. Juno now restarts the same day an update appears.

Myths and mistakes

What people thinkWhat is true
Sites I trust are safe.Honest sites can be hacked without their owners knowing.
I am safe if I do not click or download anything.Some traps run just from visiting a page, if the browser has a weak spot.
Only big companies are targeted.Small suppliers and community groups can be the way in to a bigger target.
If I saw nothing strange, nothing happened.The trap is designed to stay hidden, and may show only to some visitors.
Updates can wait until the weekend.Delays leave known weak spots open. Restart to update as soon as you can.

What can I do this week?

  • Restart your browser and computer to finish any waiting updates.
  • Turn on automatic updates for your browser and operating system.
  • Check that your browser's built-in safe browsing setting is switched on.
  • Ask your IT team whether they block known bad websites for staff.
  • If you run a website, check that its software and plug-ins are up to date.

Checklist

  • My browser and operating system update automatically.
  • I restart promptly when an update is waiting.
  • I use a modern, supported browser.
  • Safe browsing protection is switched on in my browser.
  • Our organisation blocks known bad web addresses and checks the records.
  • Any website we run is kept updated and its admin access uses two-step sign-in.
  • Staff know to report a laptop that acts oddly after browsing.

Common questions

Why is it called a watering hole attack?

The name comes from nature. Predators wait at a watering hole because the animals they hunt will come to drink. Attackers do the same with websites: they wait on a site their targets will visit, rather than chasing each target with emails.

How is this different from phishing?

Phishing comes to you, usually as a message that tricks you into clicking or replying. A watering hole attack waits for you on a site you choose to visit. There is no odd message to spot, which is why updates and web filters matter so much.

Can I get infected just by visiting a website?

It is possible, though uncommon for up-to-date devices. Google researchers reported cases where simply visiting a hacked site was enough to attack iPhones.[3] Keeping your browser and system updated closes most of the known weak spots these traps rely on.

Who uses watering hole attacks?

They are often linked to well-funded groups who want to spy on a particular industry, region or cause. Google, for example, assessed one 2021 campaign against Hong Kong websites as likely state backed.[2] Criminal groups use similar methods too.

What should a website owner do?

Keep the site's software and plug-ins updated, use strong admin passwords with two-step sign-in, and check for changes you did not make. If you find your site was hacked, clean it, reset admin access and tell your visitors.

Where next?

Ready for the detail? Read the practitioner guide: Watering Hole Attacks Guide. It goes further into detection, browser and network controls, and how to stop your own sites from becoming the watering hole.

Also useful:

Related NHI Mgmt Group resources: Drive-by Downloads Guide · Malware Guide · Malware Outbreak Playbook

Key terms

Watering hole attack
Hacking a website a chosen group trusts, so the site attacks its own visitors.
Drive-by download
Harmful software that reaches a device from a website during normal browsing.
Malware
Any software made to harm, spy on or take over a device.
Zero-day
A weak spot attackers use before the maker has released a fix.
Patch
An update that fixes a weak spot or bug in software.
Protective DNS
A service that refuses to look up known bad web addresses, so devices cannot reach them.

Sources and further reading

  1. Drive-by Compromise (T1189). MITRE ATT&CK. https://attack.mitre.org/techniques/T1189/, accessed 28 Nov 2026.
  2. Analyzing a watering hole campaign using macOS exploits. Google Threat Analysis Group, 11 November 2021. https://blog.google/threat-analysis-group/analyzing-watering-hole-campaign-using-macos-exploits/, accessed 28 Nov 2026.
  3. A very deep dive into iOS Exploit chains found in the wild. Google Project Zero, 29 August 2019. https://projectzero.google/2019/08/a-very-deep-dive-into-ios-exploit.html, accessed 28 Nov 2026.
  4. Protective DNS for the private sector. National Cyber Security Centre (UK). https://www.ncsc.gov.uk/guidance/protective-dns-for-private-sector, accessed 28 Nov 2026.
  5. Mitigating malware and ransomware attacks. National Cyber Security Centre (UK). https://www.ncsc.gov.uk/guidance/mitigating-malware-and-ransomware-attacks, accessed 28 Nov 2026.

PDF for subscribers

Take this guide with you

Every section, table and checklist in one PDF, with links to the sources and related guides. Subscribe to our weekly NHI & AI Identity Journal and we’ll email you a download link.

Free weekly newsletter

Subscribe to the NHI & AI Identity Journal

The latest on NHI and Agentic AI security – articles, research, breaches, news and events every week.

Bonus 33% off our NHI Course when you subscribe.

PDF Downloads for Newsletter Subscribers

Get the guide

Enter your details and we’ll email you a download link.

The full guide is free to read online. The PDF is a thank you for subscribing.

Fill in all fields marked * and tick both boxes to continue.