RDAT
- Type
- Backdoor
- Capabilities
- ExfiltrationPersistencePost exploitationDefense evasion
- Platforms
- Windows
RDAT is a Windows backdoor associated with OilRig, also known as APT34, an Iranian-linked cyberespionage group. It supports shell-command execution, screenshot capture, file transfers, and data exfiltration, and establishes persistence by creating a Windows service. RDAT has been identified on systems belonging to the Kurdistan Regional Government.
RDAT variants use DNS, HTTP, and email-based command-and-control channels. DNS communications encode data in subdomains using Base32 or modified Base64 with character substitutions, and HTTP can serve as a fallback when DNS communication fails. Email-enabled variants exchange commands and results through the Exchange Web Services API, using steganography to conceal commands in bitmap images and the same channel to exfiltrate collected data. RDAT uses AES encryption for command-and-control communications and can decode and decrypt Base64-encoded, AES-encrypted files received from its operators. HTTP file uploads are divided into 102,400-byte portions, while downloads use 81,920-byte portions. Defense-evasion behavior includes masquerading as VMware software, deleting processed command-and-control emails through SOAP requests, and deleting itself from the infected system.
Associated threat actors
2 distinct threat actors Mallory has associated with this family across public reporting. Open in Mallory to see the full evidence chain and overlapping campaigns.
We discovered a previously unreported version of the OilRig backdoor RDAT on two KRG victim systems.
Techniques & procedures
29 distinct techniques documented for this family, organized by ATT&CK tactic.
Execution
1 technique
Execution
[RDAT](https://attack.mitre.org/software/S0495) has executed commands using <code>cmd.exe /c</code>.(Citation: Unit42 RDAT July 2020)
Persistence
2 techniques
Persistence
The security firm also observed BladedFeline deploying PrimeCache, an internet information services module that bore code similarities with the RDAT backdoor.
[RDAT](https://attack.mitre.org/software/S0495) has created a service when it is installed on the victim machine.(Citation: Unit42 RDAT July 2020)
Privilege Escalation
2 techniques
Privilege Escalation
Eset first observed it in 2023, when it planted a backdoor into systems used by government diplomats from the Kurdistan Regional Government.
[RDAT](https://attack.mitre.org/software/S0495) has created a service when it is installed on the victim machine.(Citation: Unit42 RDAT July 2020)
Stealth
8 techniques
Stealth
[RDAT](https://attack.mitre.org/software/S0495) can also embed data within a BMP image prior to exfiltration.(Citation: Unit42 RDAT July 2020)
actors used the following command to rename one of their tools to a benign file name: ren "%temp%\upload" audiodg.exe ... APT1 ... used ... AcroRD32.exe ... as a name for malware ... APT28 ... changed extensions on files containing exfiltrated data to make them appear benign ... APT32 has renamed a NetCat binary to kb-10233.exe to masquerade as a Windows update.
[RDAT](https://attack.mitre.org/software/S0495) has used Windows Video Service as a name for malicious services.(Citation: Unit42 RDAT July 2020)
[RDAT](https://attack.mitre.org/software/S0495) has masqueraded as VMware.exe.(Citation: Unit42 RDAT July 2020)
Eset first observed it in 2023, when it planted a backdoor into systems used by government diplomats from the Kurdistan Regional Government.
Many entries explicitly describe deleting artifacts 'to cover tracks,' 'evade detection,' 'remove evidence,' 'reduce their footprint,' or as part of 'post-intrusion cleanup process.' Examples include APT28 deleting files to cover tracks, FIN5 using SDelete to clean up the environment, and Dragonfly deleting operational files as part of cleanup.
[RDAT](https://attack.mitre.org/software/S0495) can issue SOAP requests to delete already processed C2 emails. [RDAT](https://attack.mitre.org/software/S0495) can also delete itself from the infected system.(Citation: Unit42 RDAT July 2020)
[RDAT](https://attack.mitre.org/software/S0495) can deobfuscate the base64-encoded and AES-encrypted files downloaded from the C2 server.(Citation: Unit42 RDAT July 2020)
Collection
1 technique
Collection
[RDAT](https://attack.mitre.org/software/S0495) can take a screenshot on the infected system.(Citation: Unit42 RDAT July 2020)
Command and Control
13 techniques
Command and Control
[RDAT](https://attack.mitre.org/software/S0495) has used encoded data within subdomains as AES ciphertext to communicate from the host to the C2.(Citation: Unit42 RDAT July 2020)
[RDAT](https://attack.mitre.org/software/S0495) can process steganographic images attached to email messages to send and receive C2 commands. [RDAT](https://attack.mitre.org/software/S0495) can also embed additional messages within BMP images to communicate with the [RDAT](https://attack.mitre.org/software/S0495) operator.(Citation: Unit42 RDAT July 2020)
[RDAT](https://attack.mitre.org/software/S0495) has used HTTP if DNS C2 communications were not functioning.(Citation: Unit42 RDAT July 2020)
Several entries describe broader use of HTTP/HTTPS and related web mechanisms for C2, including "Crutch has conducted C2 communications with a Dropbox account using the HTTP API," "BLUELIGHT can use HTTP/S for C2 using the Microsoft Graph API," and "Small Sieve can contact actor-controlled C2 servers by using the Telegram API over HTTPS."
[RDAT](https://attack.mitre.org/software/S0495) can use HTTP communications for C2, as well as using the WinHTTP library to make requests to the Exchange Web Services API.(Citation: Unit42 RDAT July 2020)
[RDAT](https://attack.mitre.org/software/S0495) can use email attachments for C2 communications.(Citation: Unit42 RDAT July 2020)
[RDAT](https://attack.mitre.org/software/S0495) has used DNS to communicate with the C2.(Citation: Unit42 RDAT July 2020)
[RDAT](https://attack.mitre.org/software/S0495) can download files via DNS.(Citation: Unit42 RDAT July 2020)
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.
[RDAT](https://attack.mitre.org/software/S0495) can communicate with the C2 via base32-encoded subdomains.(Citation: Unit42 RDAT July 2020)
[RDAT](https://attack.mitre.org/software/S0495) can communicate with the C2 via subdomains that utilize base64 with character substitutions.(Citation: Unit42 RDAT July 2020)
The content is a catalog of malware and threat groups that encrypt command-and-control communications using algorithms such as DES, AES, RC4, XOR, Blowfish, RSA, Camellia, RC2, RC6, and custom ciphers.
[RDAT](https://attack.mitre.org/software/S0495) has used AES ciphertext to encode C2 communications.(Citation: Unit42 RDAT July 2020)
Exfiltration
4 techniques
Exfiltration
[RDAT](https://attack.mitre.org/software/S0495) can upload a file via HTTP POST response to the C2 split into 102,400-byte portions. [RDAT](https://attack.mitre.org/software/S0495) can also download data from the C2 which is split into 81,920-byte portions.(Citation: Unit42 RDAT July 2020)
[RDAT](https://attack.mitre.org/software/S0495) can exfiltrate data gathered from the infected system via the established Exchange Web Services API C2 channel.(Citation: Unit42 RDAT July 2020)
Ebury can exfiltrate SSH credentials through custom DNS queries.
Crutch can exfiltrate data over the primary C2 channel (Dropbox HTTP API)... ODAgent can use an attacker-controlled OneDrive account to receive C2 commands and to exfiltrate files... OilBooster can use an actor-controlled OneDrive account for C2 communication and exfiltration... ZIRCONIUM has exfiltrated files via the Dropbox API C2.
Observables
1 indicator attributed across vendor reports, sandbox runs, and researcher write-ups. Values are masked here and available in full in Mallory.
Recent activity
39 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.