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

Having a Fiesta With Ploutus

A short while ago, SafenSoft reported a new family ofmalware, named 'Ploutus', that targeted a number of ATMs in Mexico (http://www.safensoft.com/archiv/n/774/1778).The malware was installed when "criminals acquired access to the ATM'sCD-ROM drive and inserted a new boot CD into it." Many ATMs use a simple lock that is easily picked, which is likely how the attackers gained physical access to the machines. I recently acquired two copies of the Ploutus malware.In this blog post, I'll go into some of the details of the malware and explain some of the steps I took to reverse engineer it.

I'll be using these files for theremainder of this blog post:

https://www.virustotal.com/en/file/0106757fac9d10a8e2a22dce5337f404bfa1c44d3cc0c53af3c7539888bc4025/analysis/

https://www.virustotal.com/en/file/34acc4c0b61b5ce0b37c3589f97d1f23e6d84011a241e6f85683ee517ce786f1/analysis/

The Ploutus malware is compiled as a.NET executable. As such, I was able to successfully decompile a large portionof the code. The malware is installed as a service under the name 'NCRDRVPS', as you can see below:

11023_a494fef2-ee92-45c7-9f80-be3e62f4c17b

Upon execution,the malware will hook the keyboard and attempt to look for certain keycombinations. Specifically, if the following key combination is input into thevictim device, something amazing happens:

8734_372f63c8-3d46-40d1-b010-fc37296c19a7

If the attackertypes this into a machine with Ploutus loaded, he or she is presented with thefollowing:

9756_6a85d9f7-9028-45ef-a8ba-333298ff9428

It's always nice when the bad guys give us a GUI. Thelarge buttons and the drop-down menus make it appear as though this malware mayhave been designed for a touch screen, however, we don't know that for sure. As you can see, the bulk of the GUI is in Spanish, not surprising since the malware targeted ATMs in Mexico. To save some of you a trip to Google Translate, I'vetranslated a few of the words for you below.

Generar ID : Generate ID
Activar ATM : Activate ATM
Dispensar : Dispense
Salir : Exit
Billetes : Bills
Codigo De Activacion : Activation Code

With the GUIenabled, the malware allows us to execute the following key shortcuts:

F1 – Generate ID
F2 – Activate
F3 – Dispense
F4 – Disable GUI
F5 – Key Up
F6 – Key Down
F7 – Key Right
F8 – Key Left

The malwarerequires an activation code (as seen in the GUI screenshotabove). This activation code is generated based on the month and day along witha randomized 4-digit value. We can see the activation check below:

9243_4f9d96e5-3cdd-46bb-8d59-607f683fa59b

If we followthe simple algorithm that is employed, we can successfully activate Ploutus like so:

8454_29f54d0b-28c1-42f7-8c3f-8642cca3c743

Once it's activated, Ploutus has the ability to dispense moneyfrom the victim ATM allowing the attacker to specify the denominationand number of bills dispensed.

Overall it's a prettyinteresting sample, if only because ATM malware is somewhat rare. That's not because it's necessarily difficult to write. I suspect the reason ATM malware is rare is because it'sdifficult to install because an attacker typically requires physical access to the machine to do so (as we sawin this situation where the attackers gained access to the ATM's CD-ROM drives). Thatbeing said, it's still very much a real threat, and should not be takenlightly.

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