
One of the "truths" from the Internet's early days was that one could not be infected by malware by visiting web pages or clicking on images. Some truths, however, turn out to be untrue at a later point in time.
These days' malicious web pages are perhaps the most used attack vector, and this part of the history was rewritten years ago.
Recent weeks have also shown that images are used as a malware spreading technique; particularly images that appear after performing a Google image search. This will be discussed in this security article.
Google writes about images search on its official blog 20 July 2010:
When you think about “information,” what probably comes to mind are streams of words and numbers. Google’s pretty good at organizing these types of information, but consider all the things you can’t express with words: what does it look like in the middle of a sandstorm? What are some great examples of Art Nouveau architecture? Should I consider wedding cupcakes instead of a traditional cake?
This is why we built Google Images in 2001. We realized that for many searches, the best answer wasn’t text—it was an image or a set of images. The service has grown quite a bit since then. In 2001, we indexed around 250 million images. By 2005, we had indexed over 1 billion. And today, we have an index of over 10 billion images.
A search result for images associated with a particular topic may look like the one below:
Note that the images from the search above have not been checked. We have no reason to believe that they are compromised!
Search Engine Optimization (SEO) poisoning is the most common technique used in order to get "the malicious images" high on a result page from an image search. SANS Internet Storm Center has a good description on the cybercriminals' setup functions. The short version is like this:
Currently most of the compromised web pages lead to fake antimalware. However, any types of malware may of course be distributed by using this technique.
Several stakeholders are involved in avoiding infections resulting from malware that uses this technique.
Google has become quite good at identifying ordinary web pages that have been compromised, by displaying a This site may be compromised warning directly below the page title resulting from a search result.
We hope that Google introduces a similar technology in its image result system. As of now, Google blacklists the sites that auto-generated pages from compromised web sites refer to.
Webmasters should of course continue to ensure that their web site is secure. Security updates to operating systems and applications in use should be applied as soon as possible.
It is also wise to check for known attacks behavior to see if the web site may have been compromised. In the particular Google image search issue discussed here, certain scripts and web pages will be present on the web pages and the web site (see references below),
There are several actions that individual users can perform in order to protect themselves from this Google images search scam.