During our daily hunt for Exploit Kits (EK), we came across many live Fiesta exploit chains.
The infection started from the following compromised domains:
The attackers often leverage compromised sites to serve as the first level of redirection in the EK infection cycle. In the first Fiesta EK instance that we analyzed, the attacker after getting the root access has modified the “scripts.js” file present at location:
Another variation of the initial loading page redirection was observed in the compromised site “interfacelift[.]com” at the following location:
In this case the attacker added a <script> tag with the location pointing to another redirection site at:
A third variation of the initial redirection was observed on the compromised site
All three initial redirection methods are fairly stealth and can remain unnoticed for days to the web administrators. We found this approach to be more effective and completely opposite from a RIG EK compromise that we recently analyzed where the attacker changed the home page of the website to ensure redirection.
Some of the recent live Fiesta EK loading sites found in the wild are:
Apart from the usual EK redirection chain, it checks for the user's browser as well as presence of application plugins for Microsoft Silverlight and Adobe Flash.
It checks if Silverlight plugin is installed by creating the following ActiveXObject object:
The presence of Flash plugin is ensured by creating the following object:
If both the above object creation functions generate an exception, then the exploit cycle terminates. But if the vulnerable versions are found, it takes the user to the EK landing page.
|Redirection to Fiesta EK Landing page |
Fiesta Landing Page:
Initially, the malicious Silverlight and Flash files are downloaded for which the plugin checks have already been performed.
AV detection for the downloaded malicious files:
- rtu.swf: 2/55 (Generic Exploit)
- rtp.xap: 2/54 (CVE-2013-0074)
Following this, the main controller of Fiesta EK is called. Example in one of the Fiesta EK instance we analyzed:
It generates the following GET requests to the same domain during the course of the Exploit cycle:
· hxxp://hjwqk.ianlar[.]in/pofrj4l/7a77e441c530b7c15419520c540f06060658020c5156040a02550654550c0c06;1;[email protected]
· hxxp://hjwqk.ianlar[.]in/pofrj4l/1b88a025c530b7c1521a5d03500b0002005b0d035552020e0456095b51080a02;1;[email protected]
The Fiesta EK is performing the following exploitation attempts which are resulting in the multiple GET requests:Adobe Flash
- Checks if Adobe Flash is installed and gets the application version.
- It then generates a GET request to fetch the run-time parameters for the previously downloaded SWF file "rtu.swf".
- A sample object of type “application/x-shockwave-flash” with dynamic run-time parameters to run the exploit payload is created as shown below:
“<object width=10 height=10 id='swf_id' type='application/x-shockwave-flash'><param name='movie' value='FnkwX'/><param name='allowScriptAccess' value='always'/><param name='FlashVars' value='wetsgk=MWYzH'/><param name='Play' value='0'/></object>"
- Checks if Microsoft Silverlight is installed in browser and gets the application version.
- It then generates a GET request to fetch the run-time parameters for the previously downloaded XAP file "rtp.xap".
- A sample object of type "application/x-silverlight" with dynamic run-time parameters to run the exploit payload is created as shown below:
"<object data='data:application/x-silverlight-2,' type='application/x-silverlight-2' width=10 height=10><param name='source' value='LVSDE'/><param name='initParams' value=<LONG_STRING_VALUE></object>"
- Check if Java plugin is installed and enabled in the browser.
- Downloads a malicious Java archive (JAR) based on the installed version:
- JAR File -> ianlar.jar: 4/55 (CVE-2012-1723)
- It then generates a subsequent GET request to fetch parameter values required to execute the malicious JAR payload.
- Creates a custom applet tag utilizing the run-time parameter values to run the exploit payload as seen below:
- Checks for the presence of the Adobe Reader plugin.
- Downloads and executes the malicious PDF file:
- PDF File -> Ianlar.pdf: 8/55
Upon successful exploitation, Fiesta EK was observed installing a new variant of Zemot Trojan from the following location:
This is a well known Click-Fraud Botnet family which will soon start click-fraud activity on the victim machine, making money for the malware authors.
This Click-Fraud malware family appears to be connected to many other EKs in addition to Fiesta. Some of the domains involved in the Click-Fraud activity:
The above domains were resolving to the following two servers located in Russia and Ukraine respectively:
A GET request to any of these domains look like this:
- Sameer Patil