Guides

What Is Malvertising? How Malicious Ads Infect Devices and How to Stop Them

Malvertising hides malware inside ordinary online ads — even on sites you trust. Here is how it works, the cases that proved it, and the defenses that stop it.

Cysoro Security TeamPublished · 9 min read
TRUSTED NEWS SITEFREE DOWNLOAD — CLICK HERESponsored · looks like a real adThe ad is the malware. GUIDES Malvertising Malware hiding in plain sight.
Quick answer

Malvertising, short for malicious advertising, is the use of malicious or hijacked online advertisements to spread malware, force redirects to phishing sites, or steal login and financial information. Attackers insert malicious ads into legitimate ad networks, so the ads appear on trusted websites and can compromise a device even if the victim never clicks, by exploiting the browser or running hidden scripts.

Key takeaways

  • Malvertising hides malware in ads served by legitimate ad networks, so it appears on trusted sites.
  • Some malvertising needs no click at all — a drive-by download can infect a device just by loading the ad.
  • The strongest defenses are an updated browser, an ad blocker, protective DNS and never downloading software from a search ad.

You do not have to visit a shady website to get malware. Sometimes the malware comes to you, inside an ordinary ad on a site you trust. That is malvertising — and it works precisely because the ad looks normal, the site looks normal, and nothing about it asks you to be suspicious.

What is malvertising?

Malvertising, short for malicious advertising, is the use of malicious or hijacked online advertisements to spread malware, force redirects to phishing sites, or steal login and financial information. Attackers insert malicious ads into legitimate ad networks, so the ads appear on trusted websites and can compromise a device even if the victim never clicks.

CISA, the US cybersecurity agency, defines it as the use of malicious or hijacked website advertisements to spread malware, and calls it a significant vector for exploitation. The ads bypass built-in browser protections against pop-ups and forced redirects, and they can run hidden scripts, spawn a forced redirect, or load a payload for malicious purposes.

The key point is the delivery channel. The attacker does not need to hack the website you are visiting. They only need to get a malicious ad into the ad network that serves that site — and ad networks serve billions of ads a day, which makes that far easier than hacking a single site.

How does malvertising work?

Malvertising follows the same supply chain as ordinary advertising, with a malicious payload swapped in at one step. Understanding that chain shows where the defenses belong.

How malvertising reaches your screen1. Attacker buysad space with afake company orhijacked account2. Ad networkserves the ad tolegitimate sites,often undetected3. Ad loads ona trusted siteyou alreadyvisit4. Payload firesredirect, fakedownload, ordrive-by downloadThe ad network is the weak link: one malicious ad can reach thousands of sites at once.Criminals can also tailor ads for a targeted campaign against a specific victim.
Malvertising abuses the ad supply chain, not the website you are visiting. Illustration by Cysoro.
  1. The attacker buys ad space through an ad network, using a fake company, a stolen account, or a legitimate-looking front. Some attackers hijack an existing advertiser's account instead.
  2. The ad passes review by looking clean at first. The malicious code is often hidden, loaded later from another server, or only shown to certain visitors — for example, only to people in one country, or only on the first visit.
  3. The ad network serves it to the websites in its network, which can include news sites, blogs, forums and other trusted pages.
  4. The ad loads in your browser when you visit one of those pages. At that point it can redirect you, show a fake download or update prompt, or exploit a browser vulnerability to download malware without a click.

Criminals can also tailor malicious ads for a targeted campaign against a specific victim, not just for broad attacks. CISA notes this in its guidance, and it is why malvertising is not only a consumer problem — it is also a way to reach specific employees or organizations.

What are the main types of malvertising?

Malvertising takes several forms, and they differ in what they ask of the victim. Some need a click; some need nothing at all.

Drive-by downloads

The most dangerous form. The ad exploits a vulnerability in your browser or a plugin, and malware downloads and runs when the ad loads. You do not click anything, and you may not notice anything happened. Keeping your browser and operating system updated is the main defense, because most drive-by attacks use known vulnerabilities that already have patches.

Malicious search engine ads

The attacker buys a sponsored ad at the top of search results for a popular brand or piece of software. The ad links to a look-alike site that looks identical to the real one, and offers a download that is actually malware, or a login form that steals credentials. This is the form the FBI warned about in December 2022.

Fake updates and tech support scams

The ad shows a convincing warning — "Your Flash Player is out of date" or "Your computer is infected, call this number" — and offers a download or a phone number. The download is malware, and the phone number reaches a scam call center that charges for fake repairs.

Forced redirects and scareware

The ad forces your browser to a different site, often a fake antivirus page or a phishing page, and sometimes locks the browser with a full-screen warning that is hard to close. The goal is to panic you into downloading something or entering credentials.

Cryptocurrency and financial scam ads

The ad impersonates a cryptocurrency exchange, a bank or an investment platform, and prompts you to enter login credentials or send funds. These are common in search results and on social media, and they are the form the FBI singled out in its 2022 warning.

What are real examples of malvertising?

Malvertising is not theoretical. It has been documented in major cases over more than a decade, and the FBI's own warning shows it is still a live threat.

In December 2022, the FBI's Internet Crime Complaint Center issued a public service announcement warning that cybercriminals were buying search engine ad placements to impersonate well-known brands. The ads appeared at the very top of search results, with minimal distinction from organic listings, and directed victims to malicious sites that installed ransomware or harvested login and financial credentials. The FBI noted that the ads were also used to impersonate websites involved in finances, particularly cryptocurrency exchange platforms.

Earlier cases show the same pattern with different payloads. In March 2022, operators of the Mars stealer abused Google Ads to promote a malicious look-alike site for OpenOffice, distributing malware to people searching for the real software. A site impersonating the GIMP image editor used malvertising to drop the Vidar info stealer. The SANS Internet Storm Center disclosed an AnyDesk malvertising campaign on Google Search that dropped IcedID malware instead of the popular remote desktop app.

More recently, researchers have documented targeted malvertising campaigns that examine a visitor's IP address, operating system, location, device and browser before deciding where to send them — a technique known as a traffic distribution system. The FBI described related systems in a June 2026 public-service advisory. That targeting is what makes modern malvertising hard to detect: the malicious payload only appears for the victims it wants.

Malvertising vs adware vs phishing: what is the difference?

These three terms are often confused, because they all involve ads or deception. They are different things, and the difference matters for how you defend against them.

MalvertisingAdwarePhishing
What it isMalicious ads served through ad networksUnwanted software on your device that shows adsFake messages or sites that trick you into acting
Where it livesOutside, in the ad supply chainInside, installed on your deviceIn your inbox, messages or search results
Needs a click?Sometimes no — drive-by downloadsAlready installedYes, you must click or enter data
Main defenseAd blocker, updated browser, protective DNSAntivirus scan, remove the softwareVerify the sender, type URLs yourself
Can appear on trusted sites?YesNot relevantYes, via look-alike domains

Malvertising and phishing often work together: a malicious ad redirects you to a phishing site, or a phishing email sends you to a page that serves a malicious ad. That is why the defenses overlap, and why you should treat any unexpected download prompt or login page as suspicious, wherever you found it. Our guide to what spear phishing is covers the phishing side in detail.

How do you spot a malicious ad?

Malicious ads are designed to look normal, so there is no single giveaway. Look for these warning signs instead, and treat any one of them as a reason to stop.

  1. A search result marked as an ad for software, a bank or a crypto exchange. Type the address yourself instead of clicking the ad.
  2. A download offer that arrives unprompted. Legitimate software does not push a download at you from an ad.
  3. An urgent warning about your device — "infected", "out of date", "call this number". Real security software does not advertise this way.
  4. A page that looks identical to a real site but has a slightly different address. Check the domain letter by letter.
  5. A redirect you did not ask for. If a page sends you somewhere else without a click, close the tab.
  6. A browser warning or full-screen lock. Close the browser from the task manager if you cannot close the tab normally.
  7. An ad that does not match the site. A crypto exchange ad on a cooking blog, or a software download ad on a news site, is worth a second look.

The FBI's advice is simple and worth following: check the URL before you click an ad, type the business's URL into the address bar instead of searching for it, and use an ad-blocking extension when performing internet searches.

How do you protect yourself from malvertising?

CISA recommends four approaches for organizations, and the same ideas work for individuals: standardize and secure web browsers, deploy advertisement-blocking software, isolate web browsers from operating systems, and implement protective DNS technologies. Here is what that means in practice.

Four defenses against malvertising (CISA)1Secure and update your browserauto-updates on, unused plugins removed, pop-ups blocked2Use an ad blockerstops most malicious ads from loading at all — the FBI recommends this3Use protective DNSblocks known malicious domains before your browser reaches them4Isolate the browserseparate browser profile or sandbox for risky browsing and downloads
CISA's four recommended defenses against malvertising, adapted for individuals and small teams. Illustration by Cysoro.
  • Keep your browser updated and turn on automatic updates. Most drive-by downloads use known vulnerabilities that already have patches.
  • Use an ad blocker. This is the single most effective step for most people, because it stops the ad from loading at all. The FBI explicitly recommends an ad-blocking extension when performing internet searches.
  • Use protective DNS that blocks known malicious domains, either from your DNS provider or from your router.
  • Never download software from a search ad. Go to the vendor's own site by typing the address, or use your operating system's app store.
  • Keep antivirus running and run a full scan if anything unexpected happens.
  • For businesses: standardize browser configurations, deploy ad blocking centrally, and isolate browsers from the operating system where you can.

You can check whether your own site is serving safe headers with the free security headers checker.

Test your phishing-spotting skills with the free phishing quiz.

What should you do if you clicked a malicious ad?

Act quickly, and do not panic. The right steps depend on what happened after the click.

  1. If you only visited a suspicious page: close the tab, clear your browser cache, and run a full antivirus scan. Do not download anything from the page.
  2. If you entered a password: change it immediately from a trusted device, sign out of all sessions, and check for new forwarding rules or unknown devices on the account.
  3. If you downloaded a file: do not open it. Delete it, then run a full scan. If you already opened it, disconnect the device from the network and contact IT or a security professional.
  4. If you entered payment details: call your bank's fraud line immediately and ask them to watch or block the card.
  5. Report it: in the US, report fraud to the FTC and financial losses to the FBI's IC3 at ic3.gov. Report the ad to the ad network or the site where you saw it.
Do not trust a page that tells you to call a numberLegitimate security software never asks you to call a phone number from a browser warning. Close the tab, and if the browser will not close, end it from the task manager.

The bottom line

Malvertising works because it hides in plain sight: a malicious ad on a trusted site, a sponsored result at the top of a search, a download offer that looks exactly like the real one. The site is not the problem — the ad supply chain is.

The defenses are simple and they work: an updated browser, an ad blocker, protective DNS, and a rule never to download software from a search ad. Start by checking your own site's headers with the free security headers checker.

Read our spear phishing guide for the phishing half of the same threat.

Frequently asked questions

What is malvertising in simple terms?

Malvertising is malware hidden in online ads. Criminals buy or hijack ad space on legitimate websites and ad networks, so a malicious ad can appear on a site you trust and infect your device or send you to a fake site.

Can malvertising infect you without clicking?

Yes. Some malvertising uses drive-by downloads: the ad exploits a vulnerability in your browser or a plugin, and malware downloads when the ad loads, with no click needed. Keeping your browser updated closes most of these holes.

How is malvertising different from adware?

Adware is unwanted software already on your device that shows you ads. Malvertising is the delivery method: malicious ads served from outside, usually through a legitimate ad network, that can install malware or redirect you to a scam site.

Can malvertising appear on trusted websites?

Yes, and that is what makes it dangerous. Malicious ads are inserted into legitimate ad networks, so they can appear on news sites, blogs and other trusted pages. The site itself is not hacked — the ad network is abused.

Does an ad blocker stop malvertising?

An ad blocker stops most malvertising by preventing the ads from loading at all, which is why the FBI recommends using one when searching. It is not perfect, so combine it with an updated browser, protective DNS and careful downloading habits.

What should I do if I clicked a malicious ad?

Close the tab, do not download anything or enter any credentials, and run a full antivirus scan. If you entered a password, change it from a trusted device. If you downloaded a file, delete it and scan before opening anything else.

Is malvertising illegal?

Yes. Malvertising is fraud and computer crime. Depending on the country it can be prosecuted as wire fraud, identity theft, computer intrusion and money laundering, with long prison sentences.

Sources

  1. CISA — Capacity Enhancement Guide: Securing Web Browsers and Defending Against Malvertising for Federal Agencies
  2. CISA — Capacity Enhancement Guide: Securing Web Browsers and Defending Against Malvertising for Non-Federal Organizations
  3. BleepingComputer — FBI warns of search engine ads pushing malware, phishing
  4. Tripwire — Don't click too quick! FBI warns of malicious search engine ads
  5. Group-IB — What Is Malvertising? Meaning, Attacks & Examples Explained
Written & fact-checked byCysoro Security Team

The engineers and analysts who build Cysoro's domain scanner, email-authentication checks and free security tools. We test what we write about every day — SPF, DKIM, DMARC, certificates, look-alike domains and phishing — and check each guide against the relevant standards, government guidance and vendor documentation.

  • Email authentication
  • Phishing & BEC
  • Domain & DNS security
  • Small-business security

Checked against CISA's malvertising capacity enhancement guides and the FBI's December 2022 public service announcement on malicious search engine ads.

How we write and fact-check →

Free tools for this topic

No account needed.

See where your domain stands

Free for up to 3 domains. No card, no installs.

Start free