RGDoor
- Type
- Backdoor
- Capabilities
- PersistencePost exploitationReconnaissanceDefense evasion
- Platforms
- Windows
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.
Associated vulnerabilities
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.
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.
Appcmd.exe could reportedly be used to install the RGDoor IIS backdoor used by COBALT LYCEUM and COBALT GYPSY.
Techniques & procedures
10 distinct techniques documented for this family, organized by ATT&CK tactic.
Execution
1 technique
Execution
[RGDoor](https://attack.mitre.org/software/S0258) uses cmd.exe to execute commands on the victim’s machine.(Citation: Unit 42 RGDoor Jan 2018)
Persistence
3 techniques
Persistence
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)
Stealth
1 technique
Stealth
[RGDoor](https://attack.mitre.org/software/S0258) decodes Base64 strings and decrypts strings using a custom XOR algorithm.(Citation: Unit 42 RGDoor Jan 2018)
Discovery
2 techniques
Discovery
[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”).
Collection
1 technique
Collection
[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)
Command and Control
2 techniques
Command and Control
[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)
Observables
36 indicators attributed across vendor reports, sandbox runs, and researcher write-ups. Values are masked here and available in full in Mallory.
Recent activity
17 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.