Revenge RAT
- Type
- RAT
- Capabilities
- Credential theftExfiltrationPersistencePost exploitationDefense evasionReconnaissance
- Delivery
- Phishing
- Platforms
- Windows
RevengeRAT is a .NET-based remote access trojan used against Windows systems since 2016. Its source code became publicly available, and multiple adversaries have deployed it against organizations and individuals worldwide. Its plugin-based functionality includes remote desktop access through RDP, credential harvesting, and screen capture. It also collects host network information, including IP and MAC addresses, and uses Base64 encoding for information transmitted to command-and-control infrastructure.
RevengeRAT execution chains use PowerShell reflection to load the malware into memory and abuse the Microsoft HTML Application host to execute malicious scripts. Scheduled tasks run malicious scripts at recurring intervals. The malware has been delivered through phishing campaigns involving malicious Office documents, compressed archives, and multistage script-based loaders. Threat actors associated with its use include TA558, Aggah, and Bahamut. Campaigns distributing RevengeRAT have targeted government, manufacturing, technology, and banking organizations, among other victims.
Associated vulnerabilities
2 CVEs Mallory has correlated with this family across public research and vendor advisories. Each card links to the full Mallory page for that vulnerability.
Associated threat actors
5 distinct threat actors Mallory has associated with this family across public reporting. Open in Mallory to see the full evidence chain and overlapping campaigns.
Bahamut utilized the publicly available, cross-platform remote administration tools (RATs) NETWIRE and Revenge RAT for remote control.
Once an attack succeeds, TA558 deploys multiple types of malware on victim machines — including AsyncRAT, LodaRAT, RevengeRAT, XWorm, and AgentTesla — for remote computer control and information theft.
Aggah specifically has been seen using paste.ee to host njRAT, NetWire RAT, RevengeRAT, Agent Tesla.
Techniques & procedures
46 distinct techniques documented for this family, organized by ATT&CK tactic.
Initial Access
3 techniques
Initial Access
The actor sends malicious emails written in Portuguese, Spanish, and sometimes English. The emails use reservation-themed lures with business-relevant themes such as hotel room bookings.
TA558 attacks almost always begin with a carefully crafted phishing email... Malicious files typically take the form of compressed archives or spreadsheet documents.
The infection cycle begins with phishing emails sent to aviation companies that contain malicious links disguised as pdf attachments.
Execution
9 techniques
Execution
“Sandworm Team leveraged Scheduled Tasks through a Group Policy Object (GPO) to execute CaddyWiper at a predetermined time.” / “APT29 used scheduler and schtasks to create new tasks on remote host as part of their lateral movement… updating an existing legitimate task to execute their tools and then returned the scheduled task to its original configuration.”
[Revenge RAT](https://attack.mitre.org/software/S0379) schedules tasks to run malicious scripts at different intervals.(Citation: Cofense RevengeRAT Feb 2019)
the downloaded file is a VBS file... We see that the malware dropped a Powershell script
[Revenge RAT](https://attack.mitre.org/software/S0379) uses the PowerShell command <code>Reflection.Assembly</code> to load itself into memory to aid in execution.(Citation: Cofense RevengeRAT Feb 2019)
[Revenge RAT](https://attack.mitre.org/software/S0379) uses cmd.exe to execute commands and run scripts on the victim's machine.(Citation: Cofense RevengeRAT Feb 2019)
In 2020, TA558 stopped using Equation Editor exploits and began distributing malicious Office documents with macros, typically VBA macros, to download and install malware. | The VBS script in turn downloaded and executed Revenge RAT.
When the PowerShell code in “A.txt” is executed, it downloads the contents of “index.mp3” and saves it to file the “index.vbs” and executes it.
These early campaigns typically used malicious Word attachments that exploited Equation Editor vulnerabilities (e.g. CVE-2017-11882)... In 2021, this actor continued to leverage emails with Office documents containing macros or Office exploits (e.g. CVE-2017-8570).
The RAT delivery campaign starts from an AutoHotKey compiled script... all of which start with an AHK executable that leads to the different VBScripts that eventually load the RAT.
Persistence
5 techniques
Persistence
“Sandworm Team leveraged Scheduled Tasks through a Group Policy Object (GPO) to execute CaddyWiper at a predetermined time.” / “APT29 used scheduler and schtasks to create new tasks on remote host as part of their lateral movement… updating an existing legitimate task to execute their tools and then returned the scheduled task to its original configuration.”
[Revenge RAT](https://attack.mitre.org/software/S0379) schedules tasks to run malicious scripts at different intervals.(Citation: Cofense RevengeRAT Feb 2019)
This scripts writes the 'TVqQ…' string into the registry... It loads this string at the end of the infection process, decodes it and executes it.
The content repeatedly describes malware and threat actors establishing persistence by adding values under Registry Run keys such as HKCU\Software\Microsoft\Windows\CurrentVersion\Run and HKLM\Software\Microsoft\Windows\CurrentVersion\Run, and by placing shortcuts or files in Startup folders.
[Revenge RAT](https://attack.mitre.org/software/S0379) creates a Registry key at <code>HKCU\Software\Microsoft\Windows NT\CurrentVersion\Winlogon\Shell</code> to survive a system reboot.(Citation: Cylance Shaheen Nov 2018)
Privilege Escalation
6 techniques
Privilege Escalation
“Sandworm Team leveraged Scheduled Tasks through a Group Policy Object (GPO) to execute CaddyWiper at a predetermined time.” / “APT29 used scheduler and schtasks to create new tasks on remote host as part of their lateral movement… updating an existing legitimate task to execute their tools and then returned the scheduled task to its original configuration.”
[Revenge RAT](https://attack.mitre.org/software/S0379) schedules tasks to run malicious scripts at different intervals.(Citation: Cofense RevengeRAT Feb 2019)
There are two large arrays that contain: Compressed bytes of AgentTesla; Compressed bytes of a .NET Injector used for process injection... responsible for injecting AgentTesla payload into an instance of “aspnet_compiler.exe”.
his purpose is to RunPE (AKA process hollowing) the RAT inside the legit InstallUtil.exe Binary
The content repeatedly describes malware and threat actors establishing persistence by adding values under Registry Run keys such as HKCU\Software\Microsoft\Windows\CurrentVersion\Run and HKLM\Software\Microsoft\Windows\CurrentVersion\Run, and by placing shortcuts or files in Startup folders.
[Revenge RAT](https://attack.mitre.org/software/S0379) creates a Registry key at <code>HKCU\Software\Microsoft\Windows NT\CurrentVersion\Winlogon\Shell</code> to survive a system reboot.(Citation: Cylance Shaheen Nov 2018)
Stealth
8 techniques
Stealth
“Opera.ps1” is a highly obfuscated PowerShell script... After de-obfuscating the PowerShell code, we were able to retrieve the Windows executable, which is the Revenge RAT.
There are two large arrays that contain: Compressed bytes of AgentTesla; Compressed bytes of a .NET Injector used for process injection... responsible for injecting AgentTesla payload into an instance of “aspnet_compiler.exe”.
his purpose is to RunPE (AKA process hollowing) the RAT inside the legit InstallUtil.exe Binary
Advanced samples will not store values in plaintext, but encrypted values will typically be stored in a very similar way via ldstr operations. The initial steps (prior to decryption) for advanced samples will be the same as seen here today.
[Revenge RAT](https://attack.mitre.org/software/S0379) uses the [Forfiles](https://attack.mitre.org/software/S0193) utility to execute commands on the system.(Citation: Cofense RevengeRAT Feb 2019)
[Revenge RAT](https://attack.mitre.org/software/S0379) uses mshta.exe to run malicious scripts on the system.(Citation: Cofense RevengeRAT Feb 2019)
The initial document, “Rooming List Reservas para 3 Familias.docx,” used as the attack vector is a DOCX file. The document uses a technique known as Dynamic Office Template Injection to bypass security products.
Cobalt Strike can execute a payload on a remote host with PowerShell. This technique does not write any data to disk... Deep Panda has used PowerShell scripts to download and execute programs in memory, without writing to disk.
Defense Impairment
2 techniques
Defense Impairment
This scripts writes the 'TVqQ…' string into the registry... It loads this string at the end of the infection process, decodes it and executes it.
Tampering with Microsoft Defender and other antivirus products
Credential Access
2 techniques
Credential Access
[Revenge RAT](https://attack.mitre.org/software/S0379) has a plugin for credential harvesting.(Citation: Cylance Shaheen Nov 2018)
[Revenge RAT](https://attack.mitre.org/software/S0379) has a plugin for keylogging.(Citation: Cylance Shaheen Nov 2018)(Citation: Cofense RevengeRAT Feb 2019)
Discovery
6 techniques
Discovery
GetActiveWindow : Get active window or window of the application used by the user
[Revenge RAT](https://attack.mitre.org/software/S0379) collects the IP address and MAC address from the system.(Citation: Cylance Shaheen Nov 2018)
[Revenge RAT](https://attack.mitre.org/software/S0379) gathers the username from the system.(Citation: Cylance Shaheen Nov 2018)
sends all the basic information from the computer (what are the running processes, installed AVs, Username, Machine, system drives and more) as part of a reconnaissance stage
[Revenge RAT](https://attack.mitre.org/software/S0379) collects the CPU information, OS information, and system language.(Citation: Cylance Shaheen Nov 2018)
sends all the basic information from the computer (what are the running processes, installed AVs, Username, Machine, system drives and more)
Lateral Movement
1 technique
Lateral Movement
[Revenge RAT](https://attack.mitre.org/software/S0379) has a plugin to perform RDP access.(Citation: Cylance Shaheen Nov 2018)
Collection
4 techniques
Collection
[Revenge RAT](https://attack.mitre.org/software/S0379) has a plugin for keylogging.(Citation: Cylance Shaheen Nov 2018)(Citation: Cofense RevengeRAT Feb 2019)
[Revenge RAT](https://attack.mitre.org/software/S0379) has a plugin for screen capture.(Citation: Cylance Shaheen Nov 2018)
[Revenge RAT](https://attack.mitre.org/software/S0379) has a plugin for microphone interception.(Citation: Cylance Shaheen Nov 2018)(Citation: Cofense RevengeRAT Feb 2019)
[Revenge RAT](https://attack.mitre.org/software/S0379) has the ability to access the webcam.(Citation: Cylance Shaheen Nov 2018)(Citation: Cofense RevengeRAT Feb 2019)
Command and Control
10 techniques
Command and Control
We see that this is the "Revenge RAT". C2: h0pe1759.ddns.net
They pointed the DDNS over to the Portmap service to provide an additional layer of infrastructure obfuscation. Portmap is a service designed to facilitate external connectivity to systems that are behind firewalls or otherwise not directly exposed to the internet.
The adversaries had communicated to both Dropbox and Pastebin. APT28 has used Google Drive for C2. APT37 leverages social networking sites and cloud platforms (AOL, Twitter, Yandex, Mediafire, pCloud, Dropbox, and Box) for C2.
[Revenge RAT](https://attack.mitre.org/software/S0379) used blogpost.com as its primary command and control server during a campaign.(Citation: Cofense RevengeRAT Feb 2019)
"Comnie uses blogs and third-party sites (GitHub, tumbler, and BlogSpot) to avoid DNS-based blocking"; "Revenge RAT used blogpost.com as its primary command and control server"; "Turla JavaScript backdoor has used Google Apps Script as its C2 server"
[Revenge RAT](https://attack.mitre.org/software/S0379) has the ability to upload and download files.(Citation: Cylance Shaheen Nov 2018)
ADVSTORESHELL C2 traffic is encrypted, then encoded with Base64 encoding. APT19 HTTP malware variant used Base64 to encode communications to the C2 server. APT33 has used base64 to encode command and control traffic.
[Revenge RAT](https://attack.mitre.org/software/S0379) uses Base64 to encode information sent to the C2 server.(Citation: Cylance Shaheen Nov 2018)
TA558 deploys multiple types of malware on victim machines — including AsyncRAT, LodaRAT, RevengeRAT, XWorm, and AgentTesla — for remote computer control and information theft.
the C2 infrastructure was observed leveraging Dynamic Domain Name System (DDNS) in an attempt to obfuscate the attacker's infrastructure.
Observables
346 indicators attributed across vendor reports, sandbox runs, and researcher write-ups. Values are masked here and available in full in Mallory.
Recent activity
77 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.