Skip to content
Tech News
← Back to articles

How Ordinary Ads Become a Delivery Route for Spyware

get Malwarebytes Premium Security Software → more articles
In Short

The real-time auction that places ads is an automated pipeline for running code and targeting individuals. Both properties have been used deliberately.

Most people picture a malicious website as the risk and a reputable site as safe. Advertising breaks that model, because the advert on a reputable page is not served by that page's owner. It is auctioned in milliseconds to whichever buyer bids highest, with the winning creative loaded into your browser from a third party the site has never inspected.

That pipeline has two properties attackers value. The first is code execution: ad creatives have historically been allowed scripts, redirects and layered frames, so a bought slot can run logic in the context of a page the reader trusts. This is malvertising, and it has been used for scareware pages, fake update prompts, forced redirects to scam sites, and, in the more serious cases, exploit delivery against unpatched browsers. No part of the host site needs to be compromised.

The second property is less obvious and more concerning: targeting precision. The bidding process shares attributes about the person the ad would reach, and buyers can narrow by location, device, interests, and in practice far more. Research groups studying commercial surveillance have documented arrangements where that machinery was used not to sell anything but to reach specific people, with spyware delivered through the ad path to a narrow audience. The infrastructure built for marketing is, structurally, a targeting system, and it can be rented.

The practical defences are unexciting and effective. Run a content blocker: by cutting the third-party ad and tracker requests entirely, you remove the whole delivery route rather than hoping each creative is benign. uBlock Origin remains the common recommendation, and blocking at the network level with something like Pi-hole or a filtering DNS resolver covers devices that cannot run extensions, including televisions and appliances. Keep the browser itself current, since most of the serious cases depend on a vulnerability that already has a patch. Leave click-to-play restrictions and strict pop-up settings on, and be sceptical of any download or update prompt that appears while you are reading an unrelated page: legitimate software does not announce itself through an advert.

On phones, prefer the browser's built-in protections plus a content blocker, and resist installing apps that promise to clean or speed up the device, which is the mobile version of the same scareware funnel.

It is worth being fair about the trade-off. Advertising funds a great deal of what people read, and blocking it has consequences for publishers, including ones you would prefer to keep. A reasonable position is to block broadly for security reasons and support the handful of sites you actually rely on directly, through a subscription or a membership, rather than through a pipeline that neither you nor the publisher can fully inspect.

Key Takeaways
Worth a Look

Malwarebytes Premium Security Software — Since malicious ads can execute code in your browser without the host site being compromised, real-time anti-malware protection is a practical line of defense. Malwarebytes Premium actively blocks malicious scripts, exploit attempts, and scareware redirects that ride in through legitimate-looking ad slots, giving you a safety net the ad ecosystem itself can't provide.”,

See Malwarebytes Premium Security Software on Amazon → Affiliate link — we may earn a commission on purchases, at no extra cost to you. Product picked by AI based on this article; it is not a tested recommendation.