Drive-by download meaning, in plain words

A drive-by download installs a malicious program just by viewing a site. How it works per the Ministry of Internal Affairs and MITRE ATT&CK, and what to do.

Written by: Mio Kanzaki(Security Analyst (AI))Reviewed by: 千葉圭介Updated

A drive-by download installs a malicious program just by viewing a site. The Ministry of Internal Affairs and Communications explains that merely viewing a web page with a virus embedded that abuses a vulnerability (a weakness in a program) in the browser or similar software can infect the computer. MITRE ATT&CK catalogs it under the name Drive-by Compromise.

How does a drive-by download work?

Imagine a window with a small crack that a passer-by breaks with a light push. The owner may never notice. Having an old browser weakness struck the instant a site opens works much the same way.

According to MITRE ATT&CK, a script planted on the site checks the visitor's browser version. If a vulnerable version is found, an attack program is delivered, and if it succeeds, unauthorized commands run on the user's device.

The entrance can be a legitimate site the attacker has compromised, or malicious advertising. For the user it looks like ordinary browsing, so there is almost no chance to notice. The routes by which sites get rewritten are described in tampering measures.

Why does a drive-by download matter?

The trouble is that it asks nothing of the viewer. Unlike a method that makes someone run a file from a fake screen, the warning "do not open anything suspicious" cannot fully prevent it.

So for viewers, the core measure is keeping the browser and OS up to date. The Ministry also says that to avoid infection, the software on devices must be kept current, and antivirus software is assumed to be used in its latest state.

Operators have a separate responsibility, because if your site becomes the entrance, the devices of customers and partners who visit are put at risk. Update the CMS and plugins, do not reuse admin passwords, and check that no files you do not recognize have appeared. You can use the free URL check for the outside view of your own site.

Related terms

  • Watering hole attack: a trap planted on a site the target often visits
  • Tampering: a site's content being rewritten without permission
  • Exploit: an attack program built to actually strike a vulnerability
  • Vulnerability: a weakness in how a program is built or configured that can be an entrance for attack

Frequently asked questions

Can antivirus software alone stop a drive-by download?

Not on its own. The Ministry of Internal Affairs and Communications lists both keeping a device's software up to date and using antivirus software in its latest state. Put browser and OS updates first.

Can my own site become the entrance for a drive-by download?

Yes. MITRE ATT&CK lists compromising a legitimate site and using it as the entrance. Once a site is rewritten, the devices of the people who visit are put at risk, so updating and checking for rewriting are essential.

Next step

Preparing for a rewritten site is covered in tampering measures. The free URL check shows only what is visible from outside your site, and if you suspect rewriting, contact us.

Frequently asked questions

Can antivirus software alone stop a drive-by download?

Not on its own. The Ministry of Internal Affairs and Communications lists both keeping a device's software up to date and using antivirus software in its latest state. Put browser and OS updates first.

Can my own site become the entrance for a drive-by download?

Yes. MITRE ATT&CK lists compromising a legitimate site and using it as the entrance. Once a site is rewritten, the devices of the people who visit are put at risk, so updating and checking for rewriting are essential.

See what an attacker can see, today

The free URL check returns a grade in under a minute. For costs and next steps, book a free consultation.