RegDuke
- Type
- Backdoor
- Capabilities
- PersistenceDefense evasion
- Platforms
- Windows
RegDuke is a .NET-based Windows backdoor used by APT29, also known as the Dukes or Cozy Bear, since at least 2017. It serves as a recovery first-stage implant, supporting continued access to compromised systems. RegDuke was used in Operation Ghost, a cyberespionage campaign targeting diplomatic organizations, including foreign affairs ministries in Europe and the Washington, DC embassy of a European Union country. APT29 is attributed to Russia’s Foreign Intelligence Service (SVR).
RegDuke uses Dropbox for command-and-control communications and can extract and execute PowerShell scripts received through its C2 channel. Its main payload is encrypted on disk, with the encryption key stored in the Windows Registry. It can create seemingly legitimate registry keys to conceal this key material and decrypt strings using either registry-stored or hardcoded keys. Persistence is established through a Windows Management Instrumentation event subscription whose consumer launches when Microsoft Word starts. These mechanisms combine event-triggered execution, encrypted payload storage, and legitimate cloud-service communications to maintain a concealed foothold.
Associated threat actors
1 distinct threat actor Mallory has associated with this family across public reporting. Open in Mallory to see the full evidence chain and overlapping campaigns.
(Citation: ESET Dukes October 2019)(Citation: Secureworks IRON HEMLOCK Profile)
Techniques & procedures
20 distinct techniques documented for this family, organized by ATT&CK tactic.
Resource Development
1 technique
Resource Development
For the SolarWinds Compromise, APT29 used numerous pieces of malware that were likely developed for or by the group, including SUNBURST, SUNSPOT, Raindrop, and TEARDROP.
Execution
4 techniques
Execution
Persistence T1053 Scheduled Task The Dukes use Scheduled Task to launch malware at startup.
[RegDuke](https://attack.mitre.org/software/S0511) can extract and execute PowerShell scripts from C2 communications.(Citation: ESET Dukes October 2019)
Execution T1106 Execution through API They use CreateProcess or LoadLibrary Windows APIs to execute binaries.
Execution T1129 Execution through Module Load Some of their malware load DLL using LoadLibrary Windows API.
Persistence
3 techniques
Persistence
Persistence T1053 Scheduled Task The Dukes use Scheduled Task to launch malware at startup.
[RegDuke](https://attack.mitre.org/software/S0511) can create seemingly legitimate Registry key to store its encryption key.(Citation: ESET Dukes October 2019)
[RegDuke](https://attack.mitre.org/software/S0511) can persist using a WMI consumer that is launched every time a process named WINWORD.EXE is started.(Citation: ESET Dukes October 2019)
Privilege Escalation
2 techniques
Privilege Escalation
Persistence T1053 Scheduled Task The Dukes use Scheduled Task to launch malware at startup.
[RegDuke](https://attack.mitre.org/software/S0511) can persist using a WMI consumer that is launched every time a process named WINWORD.EXE is started.(Citation: ESET Dukes October 2019)
Stealth
4 techniques
Stealth
[RegDuke](https://attack.mitre.org/software/S0511) can use control-flow flattening or the commercially available .NET Reactor for obfuscation.(Citation: ESET Dukes October 2019)
[RegDuke](https://attack.mitre.org/software/S0511) can hide data in images, including use of the Least Significant Bit (LSB).(Citation: ESET Dukes October 2019)
[RegDuke](https://attack.mitre.org/software/S0511) can store its encryption key in the Registry.(Citation: ESET Dukes October 2019)
[RegDuke](https://attack.mitre.org/software/S0511) can decrypt strings with a key either stored in the Registry or hardcoded in the code.(Citation: ESET Dukes October 2019)
Defense Impairment
1 technique
Defense Impairment
[RegDuke](https://attack.mitre.org/software/S0511) can create seemingly legitimate Registry key to store its encryption key.(Citation: ESET Dukes October 2019)
Command and Control
7 techniques
Command and Control
Command and Control T1001 Data Obfuscation The Dukes use steganography to hide payloads and commands inside valid images.
Command and Control T1008 Fallback Channels The Dukes have multiple C&C servers in case one of them is down.
Command and Control T1071 Standard Application Layer Protocol The Dukes are using HTTP and HTTPS protocols to communicate with the C&C server.
Command and Control T1090 Connection Proxy The Dukes can communicate to the C&C server via proxy. They also use named pipes as proxies when a machine is isolated within a network and does not have direct access to the internet.
PolyglotDuke fetches public webpages (Twitter, Reddit, Imgur, etc.) to get encrypted strings leading to new C&C server. For RegDuke, they also use Dropbox as a C&C server.
[RegDuke](https://attack.mitre.org/software/S0511) can use Dropbox as its C2 server.(Citation: ESET Dukes October 2019)
[RegDuke](https://attack.mitre.org/software/S0511) can download files from C2.(Citation: ESET Dukes October 2019)
Exfiltration
1 technique
Exfiltration
Exfiltration T1041 Exfiltration Over Command and Control Channel The Dukes use the C&C channel to exfiltrate stolen data.
Impact
1 technique
Impact
ComRAT has modified Registry values to store encrypted orchestrator code and payloads ... QakBot can modify the Registry to store its configuration information ... Volgmer modifies the Registry to store an encoded configuration file ...
Recent activity
25 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.