CVE-2024-3400: PAN-OS Command Injection Vulnerability in GlobalProtect Gateway. Learn More

CVE-2024-3400: PAN-OS Command Injection Vulnerability in GlobalProtect Gateway. Learn More

Services
Capture
Managed Detection & Response

Eliminate active threats with 24/7 threat detection, investigation, and response.

twi-managed-portal-color
Co-Managed SOC (SIEM)

Maximize your SIEM investment, stop alert fatigue, and enhance your team with hybrid security operations support.

twi-briefcase-color-svg
Advisory & Diagnostics

Advance your cybersecurity program and get expert guidance where you need it most.

tw-laptop-data
Penetration Testing

Test your physical locations and IT infrastructure to shore up weaknesses before exploitation.

twi-database-color-svg
Database Security

Prevent unauthorized access and exceed compliance requirements.

twi-email-color-svg
Email Security

Stop email threats others miss and secure your organization against the #1 ransomware attack vector.

tw-officer
Digital Forensics & Incident Response

Prepare for the inevitable with 24/7 global breach response in-region and available on-site.

tw-network
Firewall & Technology Management

Mitigate risk of a cyberattack with 24/7 incident and health monitoring and the latest threat intelligence.

Solutions
BY TOPIC
Offensive Security
Solutions to maximize your security ROI
Microsoft Exchange Server Attacks
Stay protected against emerging threats
Rapidly Secure New Environments
Security for rapid response situations
Securing the Cloud
Safely navigate and stay protected
Securing the IoT Landscape
Test, monitor and secure network objects
Why Trustwave
About Us
Awards and Accolades
Trustwave SpiderLabs Team
Trustwave Fusion Security Operations Platform
Trustwave Security Colony
Partners
Technology Alliance Partners
Key alliances who align and support our ecosystem of security offerings
Trustwave PartnerOne Program
Join forces with Trustwave to protect against the most advance cybersecurity threats
SpiderLabs Blog

RIG's Facelift

RIG EK has been in the headlines recently mainly because both EITEST and PseudoDarkLeech (big traffic gates) have been redirecting traffic to RIG to deliver the CrypMIC Ransomware. A year ago we published a deep analysis of RIG which described its infrastructure in detail. In this short post, however, I'll discuss some of the changes in RIG EK that we've spotted over the past few days, specifically an instance which is using a new landing page.

After the disappearance of Angler EK, which was the most popular and most innovative EK at the time, the rest of the "players" have started competing to fill the gap left behind. In the past few weeks RIG has become the most prevalent EK, passing the other big players left in the market like Neutrino, Magnitude & Sundown. RIG is also considered to be second only to Neutrino in terms of sophistication.

RIG usually comes with two modules/options:

  • First option: attacking "only" the Flash player plugin by loading a malicious flash file containing flash exploits.
  • Second option: in addition to the Flash player plugin exploit, it also executes an IE exploit, CVE-2013-2551.

Here is how part of the regular landing page looks like before deobfuscation:

12632_f1ca1c12-eba0-4332-be46-5410cfa90476Figure 1: Part of the regular landing page – pretty print

 

On mid September we came across a PseudoDarkLeech campaign redirecting to RIG with a landing page we haven't seen before:

10483_8bbe9ae6-a9e2-4131-acec-971212414da9Figure 2: Infection Chain - PseudoDarkLeech

 

11425_b838193b-863f-4e55-a378-de3c3c9b643cFigure 3: Part Of the New Landing Page – pretty print

As you can see, the new landing page doesn't look like the regular landing page. One obvious change is the use of unprintable characters. However, similar to the regular landing page, it has two parts which correspond to the two modules structure of RIG.

If we deobfuscate the first part (easy, replace the eval with "console.log") we will get to the following code:

7924_0f01dd5c-0e43-464a-8ad9-2e89f84c3f87Figure 4: Deobfuscated code of the first part

You'll notice that we get similar code as the initial one in the regular landing page – the same k() & l() functions and a try{} catch{] structure, where l() is performing a base64 decoding of the "s" blob. Continuing with deobfuscation will reveal the same IE exploit and a loading of a malicious Flash file - only this time with an opposite order: first is the IE exploit and then the Flash one. So it is obvious that the people behind RIG EK added another layer of obfuscation to their landing page.

Developers of exploit kits are constantly measuring their evasion capabilities against different security vendors by using underground services similar to Virustotal. However, unlike Virustotal, those services don't provide any feedback to those security vendors that are part of their service. This allows the "bad guys" to test their products without the fear of vendors learning their techniques. It is quite possible that the developers of RIG were starting to see that their landing page was being detected by a growing number of vendors, therefore by adding another layer of obfuscation they could be trying to achieve better evasiveness. Since we still see lots of instances of RIG with the "old" landing page, we believe that the new layer of obfuscation is an extra service which is offered to RIG customers.

Let's see what Virustotal has to say about the new landing page:

8694_35796446-eb5c-435c-8c55-ba848d7f6569Figure 5: Scan of the regular landing page

10405_87886027-3be3-46dd-a062-06054de52145
Figure 6: Scan of the new landing page

Although the amount of detections in both cases is low it is obvious that the detection rate of the new landing page drops quite significantly.

We here at Trustwave SpiderLabs will continue to monitor the evolution of the RIG EK as a part of our ongoing research in Exploit Kits in general. Customers of Trustwave's Secure Web Gateway are protected against the new variant of RIG EK.

Latest SpiderLabs Blogs

EDR – The Multi-Tool of Security Defenses

This is Part 8 in my ongoing project to cover 30 cybersecurity topics in 30 weekly blog posts. The full series can be found here.

Read More

The Invisible Battleground: Essentials of EASM

Know your enemy – inside and out. External Attack Surface Management tools are an effective way to understand externally facing threats and help plan cyber defenses accordingly. Let’s discuss what...

Read More

Fake Dialog Boxes to Make Malware More Convincing

Let’s explore how SpiderLabs created and incorporated user prompts, specifically Windows dialog boxes into its malware loader to make it more convincing to phishing targets during a Red Team...

Read More