malvertising
termKept in this browser · My desk
Using online advertising, bought or hijacked, to send people to malicious pages or deliver malware.
MITRE describes attackers buying ads, impersonating brands and showing benign content to ad-network checkers while real victims reach the malicious page. In 2016 ESET reported banners on major news sites that carried a script in their alpha channel and led, after checks, to Flash exploits.
How it works. An online advertisement is rarely served by the site that displays it. At the hearing of the United States Senate Permanent Subcommittee on Investigations (PSI) on 15 May 2014, Senator John McCain, who had initiated the inquiry, described the weak points: a single ad routinely passes through five or six companies before it reaches the consumer; ad networks often let the advertiser deliver the creative itself, which is cheaper, so a malicious advertiser can swap a reviewed ad for malware and the networks frequently learn of it only after it is served; and one visit to one website can contact hundreds of third parties. The location targeting that ordinary advertisers buy also lets an attacker keep a malicious ad away from the cities where the networks' scanning facilities are clustered. MITRE ATT&CK (Adversarial Tactics, Techniques, and Common Knowledge) files the purchase of ads for this purpose as Acquire Infrastructure: Malvertising (T1583.008, created in February 2023): ads placed prominently in search results, ads spoofing well-known brands that lead to clones of official sites with trojanized software, click routing that sends ad-network crawlers and policy enforcers to benign pages while real victims reach the malicious one, deliberate typos to dodge brand-reputation monitoring, and automation at scale to resist cleanup.
Drive-by malvertising. Here the ad itself delivers the exploit, and no click is needed. McCain told the subcommittee that ads on YouTube served by Google's network in February 2014 infected viewers with malware built to break into bank accounts, and that on Friday 27 December 2013 criminals got into Yahoo!'s ad network and served ads that, by independent estimates, infected around 27,000 computers to generate bitcoins; Alex Stamos of Yahoo! testified that the malware hit Windows users with out-of-date Oracle Java, mostly at European addresses. McCain added that a raided Russian criminal network kept calendars marked with United States federal holidays and three-day weekends, when the security staff of ad networks are thinnest. In 2016 ESET reported the Stegano campaign on major news sites: a script hidden in the alpha channel of banners, checks of the visitor's environment, then Flash exploits, later judged a new wave of the AdGholas group.
Lure malvertising. Here the ad sends a person to a fake page. The Federal Bureau of Investigation (FBI) warned on 21 December 2022, in public service announcement I-122122-PSA of its Internet Crime Complaint Center (IC3), that criminals buy search-engine ads under domains similar to real businesses; the ads appear at the very top of results with minimal distinction from genuine results and lead to copies of official pages offering malware named after the program sought, or to fake cryptocurrency exchanges that collect logins. Malwarebytes reported in February 2014 that the ZeusVM banking trojan had been noticed in a malvertising campaign. Microsoft Threat Intelligence reported on 6 March 2025 a campaign detected in early December 2024 that affected nearly one million devices: redirectors embedded in inline frames (iframes) of illegal streaming sites, four or five layers of redirection, first-stage payloads hosted on GitHub (one on Discord and one on Dropbox) and signed with twelve newly created certificates, all since revoked, then the Lumma or Doenerium information stealers and the NetSupport remote management tool; Microsoft tracks the actors under the name Storm-0408.
Scale and blame. At the same hearing Craig Spiezle of the Online Trust Alliance put malvertising incidents at 209,000 in a year, up over 200 percent, generating over 12.4 billion malicious ad impressions, and George Salem of Google said the company had disabled more than 350 million ads in 2013 and scanned billions every day. Responsibility diffuses along the chain: McCain recalled a malicious ad for luxury watches on Major League Baseball's website in June 2012, shown to 300,000 people, after which it remained unclear which company had delivered it.
Defences. Ads run on reputable sites, are targeted by the network's own tools and are reviewed by automated checks that can be shown something else, so blocking or isolating third-party ad content and keeping browsers patched removes most of the risk. The FBI advises checking the address before clicking an ad, typing a business's address instead of searching for it and using an ad-blocking extension, and tells businesses to use domain protection services that warn of look-alike registrations and to tell users where their genuine downloads are. MITRE notes that the purchase happens outside any enterprise's view, so detection belongs at the drive-by and execution stages. Microsoft's recommendations for its 2025 campaign include browsers with Microsoft Defender SmartScreen, which blocks known malicious sites, network protection, and an attack surface reduction rule that blocks executables unless they meet a prevalence, age or trusted-list criterion. Its neighbours are phishing, which shares the lure; information stealers and malware loaders, which are what the ads deliver; and stegomalware, when the ad itself hides the code.
Also known as: malicious advertising, publicidade maliciosa
Sources
- MITRE ATT&CK, Acquire Infrastructure: Malvertising, T1583.008, last modified 15 April 2025 (read 2026-11-23): adversaries purchase online ads to distribute malware; spoofed brands; routing ad-network crawlers to benign sites while victims reach malicious pages
- ESET Research, Readers of popular websites targeted by stealthy Stegano exploit kit hiding in pixels of malicious ads, 6 December 2016, updated 15 December 2016 (read 2026-11-23): Browser Defence and Broxu banners on major news sites; a script in the alpha channel; environment checks; Flash exploits; a new wave of AdGholas
- Jérôme Segura, Malwarebytes, Hiding in plain sight: a story about a sneaky banking Trojan, 17 February 2014 (read 2026-11-23): ZeusVM noticed in a malvertising campaign; configuration appended to a JPEG
- US Senate Permanent Subcommittee on Investigations, hearing S. Hrg. 113-407, Online Advertising and Hidden Hazards to Consumer Security and Data Privacy, 15 May 2014, GovInfo text (read 2026-11-23): Senator McCain: an ad passes through five or six companies; advertisers deliver their own ads; hundreds of third parties per visit; YouTube ads in February 2014 and the Yahoo! ad network on 27 December 2013 infecting without a click, about 27,000 computers; calendars marked with US holidays; the MLB ad of June 2012 shown to 300,000; Alex Stamos (Yahoo!): out-of-date Java, mostly European addresses; George Salem (Google): more than 350 million ads disabled in 2013; Craig Spiezle (Online Trust Alliance): 209,000 incidents, over 12.4 billion malicious impressions
- FBI Internet Crime Complaint Center, Public Service Announcement I-122122-PSA, Cyber Criminals Impersonating Brands Using Search Engine Advertisement Services to Defraud Users, 21 December 2022 (read 2026-11-23): ads bought under domains similar to real businesses appear at the very top of search results; look-alike pages serve malware named after the wanted program or fake cryptocurrency exchanges; check the URL, type the address, use an ad blocker; businesses should use domain protection services
- Microsoft Threat Intelligence and Microsoft Defender Experts, Malvertising campaign leads to info stealers hosted on GitHub, Microsoft Security Blog, 6 March 2025 (read 2026-11-23): detected in early December 2024; nearly one million devices; malvertising redirectors in iframes on illegal streaming sites; four to five redirect layers; payloads on GitHub, one on Discord and one on Dropbox; twelve signing certificates, all revoked; Lumma stealer, Doenerium and NetSupport; Storm-0408; mitigations including SmartScreen, network protection and attack surface reduction rules