A drive-by download is malware that installs itself the moment you load a web page — no download button, no attachment, no prompt to approve. You visit a site that has been quietly compromised, a hidden script in the page probes your browser and plugins for a known vulnerability, and if one is unpatched the payload lands without any visible action from you. It is the attack that punishes late patching rather than careless clicking, which is why it defeats teams whose only rule is 'don't click things'.
TL;DR
- A drive-by download installs malware through a vulnerable browser or plugin just by visiting an infected page — no click required.
- Attackers compromise trusted sites or buy ad placements on them, so the victim does nothing unusual.
- Modern browsers ship with sandboxing that blocks most exploit kits; the vulnerable door is an old browser, an abandoned plugin or a disabled update.
- Patching browsers and OSes, disabling risky plugins, and restricting admin rights are the core controls.
- Training still matters: the fake-update and fake-CAPTCHA variants rely on the user clicking Run anyway.
What a drive-by download means in plain terms
Two things get bundled under the name:
- True drive-by downloads install code through an unpatched browser or plugin vulnerability without any user action beyond loading the page.
- Deceptive downloads trick the user into installing something — the 'your Flash Player is out of date, click here to update' banner, the fake CAPTCHA that asks you to paste a command, the 'download to continue' button. Technically these need a click, but the page supplied it so convincingly that security teams treat them as one family.
The classic infrastructure behind the first type is the exploit kit: a criminal toolkit rented by the hour, hosted on compromised sites, that fingerprints each visitor's browser and serves the exploit matching the weakest unpatched component it finds. If everything is patched, the kit shows an ad and moves on — silently, with no trace beyond a page view.
Why drive-by downloads work even on careful teams
- Trust is borrowed, not stolen. The site infected is one your team already visits — an industry news portal, a supplier, a local news site — via a compromised CMS or plugin. Nothing about the visit looks wrong.
- Browsers are the biggest attack surface in the business. Every laptop carries one, they run third-party code all day, and an out-of-date browser or extension re-opens exploits patched months earlier.
- The invisible payload needs no mistake. A fully patched, sandboxed browser usually blocks the exploit outright; the failure is a process failure (updates disabled, plugin abandoned, admin rights too broad), not a person's error — and process failures don't show up in click-rate reports.
The Australian context for the surrounding threat: the Australian Signals Directorate logged more than 84,700 cybercrime reports in 2024-25 — one every six minutes — with small business averaging $56,600 per self-reported incident (ASD Annual Cyber Threat Report 2024-25). A drive-by infection on one finance laptop is the quiet first stage of exactly that kind of incident.
How a drive-by download attack runs
- The staging. Attackers compromise a high-traffic site (or buy ad space on it) and plant a hidden script — often an iframe a pixel tall that loads the exploit kit.
- The fingerprint. The script profiles every visitor: browser version, plugins, screen, installed software.
- The match. The kit picks an exploit for the visitor's weakest unpatched component. Fully patched visitors get nothing — which is why these campaigns run for weeks unnoticed.
- The payload. The exploit runs code in the browser or escapes the sandbox, and a downloader installs the real payload: an infostealer, a keylogger, banking malware or a loader for something bigger.
- The quiet exit. The data leaves over encrypted channels that look like normal HTTPS browsing.
Drive-by download vs phishing vs watering hole
| Drive-by download | Phishing | Watering hole | |
|---|---|---|---|
| Delivery | Vulnerable browser on a compromised or ad-funded page | Email, SMS or chat lure the user clicks | Trusted site the target group visits, infected |
| User action needed | None (exploit variant) or a deceived click (fake update) | A click on the lure | None beyond a normal visit |
| Weakness exploited | Unpatched software | Trust in a message | Trust in a website |
| Primary defence | Patching, sandboxing, least privilege | Trained staff who report | Patching, network segmentation |
The rows matter because the defences differ: phishing is stopped at the person, drive-bys at the software layer — and watering holes need both.
How to prevent drive-by downloads
- Patch browsers automatically and verify it. Chrome, Edge and Firefox all auto-update; the control is confirming nothing has updates disabled — kiosks, meeting-room machines and servers are the usual offenders.
- Kill the abandoned plugins. Flash-era plugins are gone, but browser extensions are the modern equivalent: allow-list a short list, block installs by users.
- Remove admin rights from daily accounts so even a successful exploit cannot install system-level payload.
- Run endpoint protection with web and script blocking, not just file scanning.
- Block or isolate script-heavy sites with no business purpose, and keep browsing segmented from systems that matter.
- Sandbox where the platform supports it — Microsoft Defender Application Guard and similar isolation tools contain a compromised tab.
- Train the deceived-click variants. Fake update banners and fake CAPTCHA pages need the user to click Run or paste a command. Cyber Aware's phishing simulations rehearse those browser-based lures monthly and auto-enrol anyone who clicks into same-day remediation, while human risk reporting shows whether click and report behaviour is improving per person. A security gap assessment evidences the technical controls above for Essential 8, SMB1001 or an insurer.
Signs of a drive-by infection
- A browser running slowly, with unknown extensions or settings that change themselves.
- Security software disabled or failing to update.
- Unexplained traffic at odd hours, or logins from services the user never touched.
- Colleagues receiving messages from the user they did not send — the payload harvesting mail sessions.
Any one of these on a machine that visited only normal sites during the day is reason to pull the device and scan it offline.
FAQ
What is a drive-by download in simple terms? Malware that installs through your browser just by visiting an infected web page — no download button, no attachment, nothing you approve.
Do drive-by downloads still work in 2026? Against fully patched, sandboxed browsers, far less than in the 2010s — modern browsers block most exploit kits by design. The remaining victims are out-of-date browsers, abandoned extensions and users who click the fake-update variants, which is why patch discipline still decides the outcome.
How is a drive-by download different from phishing? Phishing arrives as a message and needs a click on the lure; a drive-by rides a web page the user would have visited anyway. Phishing is stopped by training the person; drive-bys are stopped by patching the software.
Can a drive-by download infect a phone? Yes — mobile browsers carry their own vulnerabilities, and fake 'your browser is outdated' pages on mobile are one of the most common deceptive-download lures in 2026.
What should I do if I suspect a drive-by infection? Disconnect the machine, scan it from outside the OS (rescue USB or another computer), rotate every credential used on it from a different device, and check mailbox rules and connected apps before returning it to service.
Does an ad blocker help? It cuts one of the main delivery channels — malicious ad networks — and blocks many of the fake-update banners too. It is a useful layer, not a substitute for patching.
One last thing
Check one thing this week: whether every work machine's browser actually has automatic updates on — including meeting-room PCs and any staff laptops that have been offline for months. Drive-by campaigns are built to wait exactly for that gap.
Related guides
- What is a watering hole attack? — the trusted-site cousin of the drive-by.
- What is spyware? — the payload class most drive-by kits deliver.
- What is a trojan? — the deceptive-download route that needs a click.
- Compare security awareness platforms — how delivery models stack up for MSP resellers.