RGDoor is a C++ backdoor implemented as a native Microsoft Internet Information Services (IIS) module for Windows web servers. It is associated with the Iranian-linked cyberespionage group OilRig, also known as APT34, and has been deployed on web servers belonging to Middle Eastern government organizations.
RGDoor uses HTTP for command-and-control communications and executes attacker-supplied commands through the Windows command interpreter. Its observed reconnaissance includes identifying the current user on a compromised system. It decodes Base64-encoded strings and decrypts strings using a custom XOR algorithm. Installation as an IIS module provides a server-side foothold for persistent access and post-exploitation activity. RGDoor has also appeared alongside TwoFace-related web shells and other post-exploitation tools in Middle Eastern intrusions.
1 CVE Mallory has correlated with this family across public research and vendor advisories. Each card links to the full Mallory page for that vulnerability.
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.
APT34 had begun using a new IIS backdoor named RGDoor, which was deployed on web servers of Middle Eastern government organizations.
Appcmd.exe could reportedly be used to install the RGDoor IIS backdoor used by COBALT LYCEUM and COBALT GYPSY.
10 distinct techniques documented for this family, organized by ATT&CK tactic.
[RGDoor](https://attack.mitre.org/software/S0258) uses cmd.exe to execute commands on the victim’s machine.(Citation: Unit 42 RGDoor Jan 2018)
Malicious native IIS modules (C++ libraries) ... Loads all IIS modules configured in %windir%\system32\inetsrv\config\ApplicationHost.config
IIS backdoors spreading via ProxyLogon ... execute backdoor commands on IIS server
[RGDoor](https://attack.mitre.org/software/S0258) establishes persistence on webservers as an IIS module.(Citation: Unit 42 RGDoor Jan 2018)(Citation: ESET IIS Malware 2021)
[RGDoor](https://attack.mitre.org/software/S0258) decodes Base64 strings and decrypts strings using a custom XOR algorithm.(Citation: Unit 42 RGDoor Jan 2018)
[RGDoor](https://attack.mitre.org/software/S0258) executes the <code>whoami</code> on the victim’s machine.(Citation: Unit 42 RGDoor Jan 2018)
Multiple malware families and threat groups are described as collecting the victim username or enumerating logged-on users (e.g., “can collect the username from the victim’s machine”, “enumerates the current user during the initial infection”, “enumerates logged-on users”).
[RGDoor](https://attack.mitre.org/software/S0258) encrypts files with XOR before sending them back to the C2 server.(Citation: Unit 42 RGDoor Jan 2018)
[RGDoor](https://attack.mitre.org/software/S0258) uses HTTP for C2 communications.(Citation: Unit 42 RGDoor Jan 2018)
[RGDoor](https://attack.mitre.org/software/S0258) uploads and downloads files to and from the victim’s machine.(Citation: Unit 42 RGDoor Jan 2018)
36 indicators attributed across vendor reports, sandbox runs, and researcher write-ups. Values are masked here and available in full in Mallory.
17 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.