Is Your WordPress Website Distributing Malware in Google Image Search?

lead graphicWell, is it? Is your answer – “what the hell are you talking about?”

It turns out that thousands of hacked sites are infecting Google image search results with images redirecting to Fake AV sites. And, unfortunately for you and for me, WordPress sites are a prime target for this kind of attack. A PHP injection into a WordPress site can generate spammy websites, hijack Google Image SERPs and result in your WordPress website tossing unsuspecting Google Image searchers to a FakeAV site.

Depressing, right? Might be time to check your website to see if it’s been hijacked in this way.

The issue was raised by Bojan Zdrnja, an Internet Storm Center researcher, who reported that he had been receiving a lot of emails about people being infected by Google Image search results.

Russian internet security researcher Denis Sinegubko looked in even more detail into it, highlighting the problem in this post on his blog. He says the following:

The attack uses cloaking to feed keyword-rich pages with hot-linked images to search engine bots and return a malicious JavaScript that redirects to fake AV sites to visitors that come from search engines.

How Does it Work?

For all of the nitty-gritty details, check out Denis’ in depth post. But for you and me, here’s how it works:

1. Stolen FTP Credentials are used to upload a malicious PHP file to your website.

2. Spammy websites are generated on-the-fly. As they are keyword rich they appear in the first page of Google’s image search and web SERP.

3.  Link farm is created – free blogs are registered linking to the spam sites, which are all interlinked themselves.

4. User searches in Google Image search and unknowingly clicks on one of the images and the exploit happens. You know that page where the image appears as a thumbnail with the webpage behind it? Your browser automatically sends a request to the bad page which runs the attacker’s script. The browser is redirected to the FakeAV site.

What Can We Do?

Of course, part of the responsibility is with Google to ensure that their search results don’t get filled up with spam. But Webmasters also need to take responsibility to make sure that their site isn’t hacked – especially if it is propagating malware around the internet. Here’s some advice for WordPress users about how to protect your website:

1. Don’t Save Your FTP Password

Your FTP password is not safe sitting around in FileZilla or any number of other FTP programs. In FileZilla, for example, password are stored as plain text. This makes them accessible by any malware that is running on your computer. You could try a secure FTP program like WinSCP.

2. Scan Your Website

Regularly check your website with a plugin such as Donncha O’Caoimh’s Exploit Scanner.

3. Scan Your Server

Make sure there are no folders on your server that you don’t recognize.

4. Be Aware of Your Keywords

Use Google Webmaster Tools to check what keywords are being used to find your website. If there are strange search terms popping up then you know you might have a problem.

5. Stay Malware Free

Keep your computer malware free. This will prevent rogue programs from stealing passwords and other information you have stored. There are lots of free programs that will help you do it – try Avira, Spybot and AdAware. You should have a firewall installed – Zone Alarm and Comodo are popular. If you are infected you can visit a forum like Bleeping Computer where there are experts on hand to help with malware removal.

6. Stay up-to-date

Keep your computer up-to-date with all of the latest software updates. This means you’ll be covered by any security patches that have been released.

This problem highlights just how important it is for webmasters to use the internet responsibly. If you are concerned about browsing the internet safely you can use the FireFox Addon Noscript which will prevent scripts from running in your browser.

Featured Plugin - WordPress Pop-Up Chat Plugin

No javascript required, no third part chat engine, just fully featured chat right in your own database on your own WP sites - couldn't be easier.
Find out more

Featured Plugin - WordPress Newsletter Plugin

Now there's no need to pay for a third party service to sign up, manage and send beautiful email newsletters to your subscriber base - this plugin has got the lot.
Find out more

Featured Plugin - WordPress Facebook Plugin

Would you like to add Facebook comments, registration, 'Like' buttons and autoposting to your WP site? Well, The Ultimate Facebook plugin has got that all covered!
Find out more

Featured Plugin - WordPress Wiki Plugin

To get a wiki up and running you used to need to install Mediawiki and toil away for days configuring it... not any more! This plugin gives you *all* the functionality you want from a wiki, in WordPress!!!
Find out more

Featured Plugin - WordPress Google Maps Plugin

Simply insert google maps into posts, sidebars and pages - show directions, streetview, provide image overlays and do it all from a simple button and comprehensive widget.
Find out more

Featured Plugin - WordPress Ecommerce Shopping Cart Plugin

Out of all the WordPress ecommerce plugins available, MarketPress has got to be the winner - easy to configure, powerful functionality, multiple gateways and more. A simply brilliant plugin!
Find out more

Featured Plugin - WordPress Infinite SEO Plugin

Fully integrated with the SEOMoz API, complete with automatic links, sitemaps and SEO optimization of your WordPress setup - this is the only plugin you need to help you rank your site number 1 on Google - nothing else compares.
Find out more

Featured Plugin - WordPress Q&A Site Plugin

It's now incredibly easy to start your own Q&A site using nothing more than WordPress - The Q&A plugin simply and brilliantly transforms any site, or page, into a perfect support or Q&A environment.
Find out more

Featured Plugin - WordPress Membership Site Plugin

If you're thinking about starting a paid, or just private, membership site then this is truly the plugin you've been looking for. Easy to use, massively configurable and ready to go out of the box!
Find out more

Comments (13)

  1. This could be a big one. I’ve been redirected while browsing google images. I don’t think half the people out there will even know they’ve been infected.

    I don’t understand why anything that redirects should even make it to google image search, really.

  2. Not a real big fan of Exploit Scanner because of all the false positives, but I see your intent behind it. Personally the free plugins that have helped me the most are WebsiteDefenders Security and Ultimate Security Checker which have both shown me how to seal up certain vulnerabilities in my blogs. Gotta stay on top of this!

Participate