Yet Another Reason To Hate Online Ads
Through the magic of JavaScript and ad networks, research presented at Black Hat by Jeremiah Grossman and Matt Johansen shows how to build a huge botnet quickly -- and then the fun begins
I'll readily admit I'm numb to advertising -- at least when I'm online. Ads are everywhere, taking up every visual inch of screen real estate, with the exception of the text I'm looking at. But I just focus on the text I'm looking for, so the rest of the stuff is noise. It's a bit different with TV since the magic of the DVR allows me to skip pretty much all of the ads. When I'm on the road and not using a DVR, I realize the true annoyance of these TV ads. In fact, I don't really watch TV without a DVR, with the exception of live sports. And in that case, the commercials annoy me.
But that's just annoyance, right? You can tune out the ads. Or check your Twitter or Facebook for two or three minutes while you learn about the latest magic pills to cure insomnia, frequent urination, or erectile dysfunction. (As an aside, if anyone has a good way to describe erectile dysfunction to a 10-year-old, I'm all ears. It's just a matter of time before I'm watching a football game with my kids and one of those ads show up.)
Yet at Black Hat, my friends Jeremiah Grossman and Matt Johansen showed that online advertising networks can be manipulated and gamed by attackers using pretty simple tactics to launch an attack (typically DDoS) against a specific site without any effort from the user. All they have to do is render a Web page with the attack ad embedded. We've spent years talking about not clicking on strange links or not going to those sites. But that's about not being in a bad neighborhood. What if the bad neighborhood comes to you?
That's right: If an advertising network accepts a compromised ad, likely paid for with a stolen credit card, it will display the ad almost anywhere on legitimate sites. There isn't much the website can do -- it has outsourced the ads to the ad network. The ad networks should have better controls, but well, you know. It's basically a drive-by attack that you can't really block. Render the legitimate page and get owned. That's awesome, right?
As Jeremiah and Matt described during their session, "Networks that serve up advertisements on ad-supported sites across the Internet frequently allow their advertisers to run arbitrary JavaScript on browsers displaying their ads." This JavaScript (if the browser is set to run JavaScript, which is the default mode) can have the browser make a request to the target, start a drive-by malware download, or lots of other diabolical stuff.
Even better, the pair of researchers got around an ad network's typical need to approve every change to an ad (for instance, changing the target) by referring to an external site to download the target URL or any other instructions in real time. JavaScript for the win. This gives an attacker the ability to dynamically change anything pertaining to the attack at will.
I know this is the "vulnerabilities and threats" section, and I don't necessarily need to suggest some ways to deal with this kind of attack. But that's not how I roll. So here are a few not-so-simple things you can do to protect the devices from this kind of activity. First, you can implement advanced malware protection on the endpoint devices, as I described in "Controlling the Big 7." This doesn't really help if the ad just gets the device to render a website (for DDoS purposes), but it can stop other compromises targeting the endpoint device.
And the attackers will run to the bank. Again.
Mike Rothman is President of Securosis and author of the Pragmatic CSO
About the Author
You May Also Like