Sleeping beauty exploit

Hello,

I am not going to show you a new exploit, but a cool and interesting way to obfuscate a known exploit in order to break detections.

Today my friend Mila provided to me the following sample (md5: eeb80aa4f0575a7d595ec9d636cc1b2e) that I am going to analyze. This sample is contained in a HTML page. By taking a look at the page source you will notice the following:

As you can see, there are a large number of ‘z’, to be precise we have 9237 occurrences of ‘z’.  Let’s proceed with the analysis, in the same HTML page we can find the “deobfuZcation” function:

It is replacing all the occurrances of the ‘z’ with ”.  Now you could say: “Where is the interesting part ?”. Please follow me, and let’s take a look at the following deobfuscated code:

I have underlined in red the interesting part. As you can see, it is exploiting the Java Deployment Toolkit vulnerability, more details can be found here: VU#886582.

By browsing the source code, you can also see some comments:

Did you got the awesome part of that small history?

The deobfuscated code contains 3616 chars and not one occurrence of ‘z’. The obfuscator used was very cool ( I have to admit that :] ), it computed the ASCII char that was not occurring in the given code in order to fill up the code with a huge number of occurences of a such char.

I hope you have enjoyed the reading(z) ;]

posted in fun, javascript, malware, reversing by Donato Ferrante ( ratsoul )

2 Comments to "Sleeping beauty exploit"

  1. Aza wrote:

    cool, just use some more letters and it would be even harder to do some statistical analysis to detect the obfuscation

  2. Donato "ratsoul" Ferrante wrote:

    This sample belongs to the Siberia exploit pack. Thanks to my friend SysAdMini of MalwareDomainList for the additional info.

 
Copyright (c) 2010-2011 InREVERSE - All Right Reserved
Büyükçekmece Evden Eve Nakliyat Esenler Evden Eve Nakliyat Gaziosmanpasa Evden Eve Nakliyat Güngören Evden Eve Nakliyat Kadiköy Evden Eve Nakliyat Kartal Evden Eve Nakliyat Küçükçekmece Evden Eve Nakliyat Maltepe EvdenEve Nakliyat Sisli Evden Eve Nakliyat Tuzla Evden Eve Nakliyat Ümraniye Evden Eve Nakliyat Üsküdar Evden Eve Nakliyat Içerenköy Evden Eve Nakliyat Erenköy Nakliyat Etiler Evden Eve Nakliyat