List of malicious domains inserted through SQL injection

Published: 2008-05-20
Last Updated: 2008-05-20 16:55:25 UTC
by Raul Siles (Version: 3)
0 comment(s)

One of the main attack vectors we have seen during the last years are "silent" Web defacements, typically in the form of redirections to malicious JavaScript code that are inserted inside the contents of Web pages using iframes, images, or other HTML tags. As lots of Web servers get their contents (or part of them) directly from a database, SQL injection vulnerabilities are widely exploited to insert the malicious references. You can find some of the previous related ISC diary entries here (by using Google).

Unfortunately, there is no silver bullet method to identify if a Web site (Web server or database) has been infected with new HTML tags, due to the fact that complex Web environments typically contain hundreds of scripts, redirections and references. One way of checking if a Web site is vulnerable and has been compromised is by searching for the specific malicious domains hosting the JavaScript and pointed out by the inserted references. We always try to emphasize these malicious domains in the diary entries so that you can search for or even block them.

Mike Johnson from Shadowserver has published a list of domains used in past and recent massive SQL injections that insert malicious javascript into websites. The list is just focused on mass SQL injection attacks, and do not replace other  generic malware lists such as or Mike's plans to maintain this list as we come across new domains over time. The list also contains an estimated number of current number of infected Web sites based on Google stats. This is a great initiative and a very useful resource, and I encourage you to check if you can find references to any of these domains in:

  • Your Web server contents (static contents and database), meaning the server has been compromissed and you need to clean it up and fix the vulnerability originally used by the attackers to insert the redirection tags.
  • Your network traffic, meaning your clients are accessing compromissed Web servers and are being redirected to the malicious domains. These domains are typically trying to exploit client-based vulnerable software, so if your clients are not throughly updated, there is a higher chance that some of them have being compromised.

If you know about any other similar resource, or additional domains hosting (or that have hosted in the past) malicious code used in SQL injection attacks, please contact us.

UPDATE: We have been notified by one of our readers, thanks Steve, about some security filtering solutions, in this case based on ClamAV, blocking some of the aforementioned malicious domains.

There is another simple method based on Google you can use to check if your domain has been compromised and malicious Javascript references have been inserted on your Web contents. Simply search by any of the domains in the list adding the Google's "site:" directive specifying your own domain. You can automate the process to go through all the domains in the list, but remember to follow Google's API rules for multiple searches. For example, search by:

This method also can help you to get an estimation (based on Google's stats) on the number of times the malicious JavaScript reference has been included in your Web contents.

Raul Siles

0 comment(s)


Diary Archives