Black Hole Malvertisement Campaign

There’s yet another malvertisement that leads to Black Hole. This campaign is affecting a fairly popular site.

The malicious script is linked from many of the site’s pages. Here’s a shot of the webpage’s source code which shows the initial link.

This is the sequence of events:

1. hxxp://

2. hxxp://,x80,x01,x30,x10,x91,x04

3. hxxp://[email protected],x80,x01,x30,x10,x91,x04?IPCT_Credit=IP_contentTag&IPCT_Credit_Report=IP_contentTag&IPCT_Laws=IP_contentTag&IPCT_Regulations=IP_contentTag&IPST_Dictionary=IP_sectionTag

4. hxxp://

5. hxxp://

Here’s the obfuscated Javascript code with some added misdirection in the form of comments:

The script concatenates a load of hex values and converts them to text. It then reverses the text and builds a lookup table (e.g. character substitution table). Each character in the text is converted to another character in which you end up with hex values. The hex is finally converted to text and executed. The script is easy to figure out so I simply replaced eval with alert and got the following:

The malicious script calls a counter page, creates an iframe to the exploit kit, calls up the counter page again, then shows an ad graphic. Here’s the website with the ad in place:

The obfuscated script appears to be modified every day so as to avoid detection. The malicious domain was not responding at the time of the write up so I don’t know what it is delivering.

This entry was posted in Exploit Packs, Malscript and tagged , , , , . Bookmark the permalink.

One Response to Black Hole Malvertisement Campaign

  1. J says:

    Nice write up, thanks. We have been seeing this site deliver TDSS/FakeAV for several days, seems to end up in a number of places including: hXXp://!.exe ( The exe has changed several times, but keeps the same name. Usually less than 20% coverage on VT.

Leave a Reply