[Converter v0.7] Analyzing and Deobfuscating Malicious Scripts
![](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj1MVaEE52BqdDxnho-OvvanLvMz0d6eU1kS7bUQcojGCyInmlRZREvGBGOxv0JrxfqxRmp2z5UXg9OYgida93L4PxACEF9v2-DqqPTDhV3mDZXnQijxjXl27HV9aKPi4bEICzUuB5IBQw/s200/Converter+v0.7.png)
Malicious Java applets have been making news for awhile so I thought I
would update Converter to include some new features to help with
deobfuscating them.
This is a list of changes made to this version:
+ Replaced Binary-to/from-Text with Binary-to/from-Hex to make it more useful
+ Added Filter > “Keep Hex” to only keep hex characters
+ Added Format > “Mixed Octal to Hex” to convert a mixture of text and octal to hex
+ Added Format > “Sort Text” to sort a string
+ Added Format > “Hex Format – CSV” separates hex values with a comma
+ Added Tools > “String Builder” to keep values between quotes
+ Modified “Dec-to-Hex” and “Dec-to-Octal” to handle negative integers
+ Added “copy output to input” option to Secret Decoder Ring
+ Added ability to import first KB (or all) of data to Key Search/Convert
+ Eliminated extra fields in Key Search/Convert screen
+ Made expression capability in Key Search/Convert and Convert Binary
File a little more robust (added Extra > “Expressions Help”)
Here’s a look at some of the features in action…
This applet used binary strings to hide its actions:
![2013-03-16_01](http://www.kahusecurity.com/wp-content/uploads/2013/03/647x202x2013-03-16_01.png.pagespeed.ic.2-vHnYye6U.png)
Just paste it in and the Binary-to-Hex feature will split on every eight characters and convert them to hex. You can choose the Output Format using the dropdown at the bottom.
![2013-03-16_02](http://www.kahusecurity.com/wp-content/uploads/2013/03/520x604x2013-03-16_02.png.pagespeed.ic.wINQqeX3Q_.png)
Here we see an applet concatenating several variables together before it deobfuscates it:
![2013-03-16_03](http://www.kahusecurity.com/wp-content/uploads/2013/03/586x186x2013-03-16_03.png.pagespeed.ic.Z5ZrzrhN04.png)
Using the “String Builder” feature…
![2013-03-16_04](http://www.kahusecurity.com/wp-content/uploads/2013/03/501x322x2013-03-16_04.png.pagespeed.ic.RDtPPjWkFU.png)
Just paste the section in and Converter will concatenate everything between the quotes together. Make sure the beginning and ending quotes are present.
![2013-03-16_05](http://www.kahusecurity.com/wp-content/uploads/2013/03/520x604x2013-03-16_05.png.pagespeed.ic.QJG3ekadzS.png)
This applet is using a mix of text and octal characters:
![2013-03-16_06](http://www.kahusecurity.com/wp-content/uploads/2013/03/577x151x2013-03-16_06.png.pagespeed.ic.ITSDD1JC5u.png)
The “Mixed Octal to Hex” feature…
![2013-03-16_07](http://www.kahusecurity.com/wp-content/uploads/2013/03/357x444x2013-03-16_07.png.pagespeed.ic.bJV_QPB15e.png)
Will convert the string (including escaped characters) to hex.
![2013-03-16_08](http://www.kahusecurity.com/wp-content/uploads/2013/03/520x604x2013-03-16_08.png.pagespeed.ic.cAA49w3Fhz.png)
This applet is using an array of positive and negative integers:
![2013-03-16_09](http://www.kahusecurity.com/wp-content/uploads/2013/03/586x90x2013-03-16_09.png.pagespeed.ic.fseLK05ZwY.png)
Converter now converts decimal to hex properly.
![2013-03-16_10](http://www.kahusecurity.com/wp-content/uploads/2013/03/520x604x2013-03-16_10.png.pagespeed.ic.MOxHQRF0iH.png)
This particular applet takes this concatenated string and deobfuscates it by running through a decoder routine three times:
![2013-03-16_11](http://www.kahusecurity.com/wp-content/uploads/2013/03/583x179x2013-03-16_11.png.pagespeed.ic.DgoizyhkzF.png)
The Secret Decoder Ring now allows you to copy the output to the input field so you can decode it any number of times without having to manually copy/paste each time.
![2013-03-16_12](http://www.kahusecurity.com/wp-content/uploads/2013/03/779x425x2013-03-16_12.png.pagespeed.ic.EVYNwaM27I.png)
Finally, you can see the changes made to the Key Search/Convert screen. I tried to make the expressions as flexible as possible.
![2013-03-16_13](http://www.kahusecurity.com/wp-content/uploads/2013/03/529x571x2013-03-16_13.png.pagespeed.ic.hKhXJNIdA2.png)
Download Converter v0.7
Official website: http://www.kahusecurity.com/
[Converter v0.7] Analyzing and Deobfuscating Malicious Scripts
Reviewed by Zion3R
on
11:58 PM
Rating:
![[Converter v0.7] Analyzing and Deobfuscating Malicious Scripts](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj1MVaEE52BqdDxnho-OvvanLvMz0d6eU1kS7bUQcojGCyInmlRZREvGBGOxv0JrxfqxRmp2z5UXg9OYgida93L4PxACEF9v2-DqqPTDhV3mDZXnQijxjXl27HV9aKPi4bEICzUuB5IBQw/s72-c/Converter+v0.7.png)