RogueRobin
- Type
- RAT
- Capabilities
- ExfiltrationPersistenceDefense evasionReconnaissance
- Delivery
- Spearphishing
- Platforms
- Windows
RogueRobin is a Windows remote access trojan used by DarkHydrus, also tracked as Lazy Meerkat, for cyberespionage against government agencies and educational institutions in the Middle East. Its delivery has involved malicious Microsoft Office documents distributed through Google Drive, including Arabic-language Excel documents containing VBA macros. Observed infection chains use command-shell and PowerShell execution, abuse the Windows Regsvr32 utility to execute scriptlets, and decode and decompress embedded Base64 payloads. A compiled C# variant was observed in 2019.
RogueRobin collects hostnames, IP addresses, domain information, usernames, and the current user's administrative status. It communicates with command-and-control infrastructure and exfiltrates system information through DNS tunneling, using Base64 to encode transmitted strings. An optional mode, disabled by default and remotely enabled through the DNS channel, uses the Google Drive API as an alternative command-and-control channel to retrieve jobs.
RogueRobin establishes persistence through Windows Startup folder shortcuts that launch PowerShell scripts at user logon. Its anti-analysis behavior includes BIOS, CPU-core, and physical-memory checks; process enumeration to detect Wireshark and Sysinternals tools; script obfuscation; and debugger detection. The 2019 variant performs debugger checks during DNS requests.
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: Unit 42 DarkHydrus July 2018)(Citation: Unit42 DarkHydrus Jan 2019)
Techniques & procedures
36 distinct techniques documented for this family, organized by ATT&CK tactic.
Execution
7 techniques
Execution
[RogueRobin](https://attack.mitre.org/software/S0270) uses various WMI queries to check if the sample is running in a sandbox.(Citation: Unit 42 DarkHydrus July 2018)(Citation: Unit42 DarkHydrus Jan 2019)
Cobalt Group has used regsvr32.exe to execute scripts. Saint Bot has used regsvr32 to execute scripts. Xbash can use regsvr32 for executing scripts.
[RogueRobin](https://attack.mitre.org/software/S0270) uses a command prompt to run a PowerShell script from Excel.(Citation: Unit 42 DarkHydrus July 2018) To assist in establishing persistence, [RogueRobin](https://attack.mitre.org/software/S0270) creates <code>%APPDATA%\OneDrive.bat</code> and saves the following string to it:<code>powershell.exe -WindowStyle Hidden -exec bypass -File “%APPDATA%\OneDrive.ps1”</code>.(Citation: Unit42 DarkHydrus Jan 2019)(Citation: Unit 42 DarkHydrus July 2018)
[RogueRobin](https://attack.mitre.org/software/S0270) uses Windows Script Components.(Citation: Unit42 DarkHydrus Jan 2019)(Citation: Unit 42 DarkHydrus July 2018)
APT32 created a Scheduled Task/Job that used regsvr32.exe to execute a COM scriptlet that dynamically downloaded a backdoor and injected it into memory. ... RogueRobin uses regsvr32.exe to run a .sct file for execution.
Examples include 'Cobalt Group has used a JavaScript backdoor that is capable of launching cmd.exe to execute shell commands', 'Orz can execute commands with JavaScript', 'Patchwork used JavaScript code and .SCT files on victim machines', and 'Water Curupira Pikabot Distribution installation via JavaScript will launch follow-on commands via cmd.exe.'
RogueRobin uses a command prompt to run a PowerShell script from Excel... Wizard Spider has used macros to execute PowerShell scripts to download malware
Persistence
5 techniques
Persistence
Examples include APT3 placing scripts in the startup folder, APT32 using Run keys to execute PowerShell and VBS scripts, TA2541 placing VBS files in the Startup folder, TeamTNT adding batch scripts to the startup folder, and Smoke Loader adding a script in the Startup folder to deploy the payload.
To assist in establishing persistence, RogueRobin creates %APPDATA%\OneDrive.bat and saves the following string to it: powershell.exe -WindowStyle Hidden -exec bypass -File "%APPDATA%\OneDrive.ps1".
C:\Users\[Username]\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup C:\ProgramData\Microsoft\Windows\Start Menu\Programs\StartUp HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders
[RogueRobin](https://attack.mitre.org/software/S0270) created a shortcut in the Windows startup folder to launch a PowerShell script each time the user logs in to establish persistence.(Citation: Unit 42 DarkHydrus July 2018)
[RogueRobin](https://attack.mitre.org/software/S0270) establishes persistence by creating a shortcut (.LNK file) in the Windows startup folder to run a script each time the user logs in.(Citation: Unit 42 DarkHydrus July 2018)(Citation: Unit42 DarkHydrus Jan 2019)
Privilege Escalation
4 techniques
Privilege Escalation
Examples include APT3 placing scripts in the startup folder, APT32 using Run keys to execute PowerShell and VBS scripts, TA2541 placing VBS files in the Startup folder, TeamTNT adding batch scripts to the startup folder, and Smoke Loader adding a script in the Startup folder to deploy the payload.
C:\Users\[Username]\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup C:\ProgramData\Microsoft\Windows\Start Menu\Programs\StartUp HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders
[RogueRobin](https://attack.mitre.org/software/S0270) created a shortcut in the Windows startup folder to launch a PowerShell script each time the user logs in to establish persistence.(Citation: Unit 42 DarkHydrus July 2018)
[RogueRobin](https://attack.mitre.org/software/S0270) establishes persistence by creating a shortcut (.LNK file) in the Windows startup folder to run a script each time the user logs in.(Citation: Unit 42 DarkHydrus July 2018)(Citation: Unit42 DarkHydrus Jan 2019)
Stealth
8 techniques
Stealth
"Action RAT's commands, strings, and domains can be Base64 encoded within the payload." / "ADVSTORESHELL... strings... encrypted with an XOR-based algorithm; some strings are also encrypted with 3DES and reversed." / "APT29 has used encoded PowerShell commands." / "APT41 used VMProtected binaries..."
The PowerShell script with the [RogueRobin](https://attack.mitre.org/software/S0270) payload was obfuscated using the COMPRESS technique in `Invoke-Obfuscation`.(Citation: Unit 42 DarkHydrus July 2018)(Citation: GitHub Invoke-Obfuscation)
[RogueRobin](https://attack.mitre.org/software/S0270) decodes an embedded executable using base64 and decompresses it.(Citation: Unit42 DarkHydrus Jan 2019)
To perform these queries, RogueRobin directly invokes the native Windows binary nslookup.exe.
[RogueRobin](https://attack.mitre.org/software/S0270) uses regsvr32.exe to run a .sct file for execution.(Citation: Unit42 DarkHydrus Jan 2019)
Examples include 'RogueRobin uses various WMI queries to check if the sample is running in a sandbox' and 'SVCReady can use WMI queries to detect the presence of a virtual machine environment.'
[RogueRobin](https://attack.mitre.org/software/S0270) uses WMI to check BIOS version for VBOX, bochs, qemu, virtualbox, and vm to check for evidence that the script might be executing within an analysis environment. (Citation: Unit 42 DarkHydrus July 2018)(Citation: Unit42 DarkHydrus Jan 2019)
Additionally, before each DNS query, .NET RogueRobin checks to see if a debugger is attached with a call to Debugger.IsAttached.
Defense Impairment
1 technique
Defense Impairment
To assist in establishing persistence, RogueRobin creates %APPDATA%\OneDrive.bat and saves the following string to it: powershell.exe -WindowStyle Hidden -exec bypass -File "%APPDATA%\OneDrive.ps1".
Discovery
9 techniques
Discovery
[RogueRobin](https://attack.mitre.org/software/S0270) gathers the IP address and domain from the victim’s machine.(Citation: Unit 42 DarkHydrus July 2018)
[RogueRobin](https://attack.mitre.org/software/S0270) collects the victim’s username and whether that user is an admin.(Citation: Unit 42 DarkHydrus July 2018)
[RogueRobin](https://attack.mitre.org/software/S0270) checks the running processes for evidence it may be running in a sandbox environment. It specifically enumerates processes for Wireshark and Sysinternals.(Citation: Unit 42 DarkHydrus July 2018)
Several entries describe identifying whether the current user has admin privileges, determining privilege level, identifying groups the user belongs to, or verifying execution as SYSTEM.
[RogueRobin](https://attack.mitre.org/software/S0270) gathers BIOS versions and manufacturers, the number of CPU cores, the total physical memory, and the computer name.(Citation: Unit 42 DarkHydrus July 2018)
Examples include 'RogueRobin uses various WMI queries to check if the sample is running in a sandbox' and 'SVCReady can use WMI queries to detect the presence of a virtual machine environment.'
[RogueRobin](https://attack.mitre.org/software/S0270) uses WMI to check BIOS version for VBOX, bochs, qemu, virtualbox, and vm to check for evidence that the script might be executing within an analysis environment. (Citation: Unit 42 DarkHydrus July 2018)(Citation: Unit42 DarkHydrus Jan 2019)
[RogueRobin](https://attack.mitre.org/software/S0270) enumerates running processes to search for Wireshark and Windows Sysinternals suite.(Citation: Unit 42 DarkHydrus July 2018)(Citation: Unit42 DarkHydrus Jan 2019)
Additionally, before each DNS query, .NET RogueRobin checks to see if a debugger is attached with a call to Debugger.IsAttached.
Collection
2 techniques
Collection
[RogueRobin](https://attack.mitre.org/software/S0270) has a command named <code>$screenshot</code> that may be responsible for taking screenshots of the victim machine.(Citation: Unit 42 DarkHydrus July 2018)
Examples in the content include 'DropBook can unarchive data downloaded from the C2 to obtain the payload and persistence modules,' 'Molerats decompresses ZIP files once on the victim machine,' and 'Rocke has extracted tar.gz files after downloading them from a C2 server.'
Command and Control
7 techniques
Command and Control
Each variant periodically checks in with the controller for waiting jobs to perform. Then they receive and perform these tasks and send the results back to the controller.
In this blog post, we examine a DNS tunneling malware, known as RogueRobin... The core of RogueRobin’s DNS tunneling mechanism involves encoding of DNS requests and replies of various resource record types between the victim host and its controller.
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.
[RogueRobin](https://attack.mitre.org/software/S0270) has used Google Drive as a Command and Control channel. (Citation: Unit42 DarkHydrus Jan 2019)
[RogueRobin](https://attack.mitre.org/software/S0270) can save a new file to the system from the C2 server.(Citation: Unit 42 DarkHydrus July 2018)(Citation: Unit42 DarkHydrus Jan 2019)
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.
[RogueRobin](https://attack.mitre.org/software/S0270) base64 encodes strings that are sent to the C2 over its DNS tunnel.(Citation: Unit 42 DarkHydrus July 2018)
Exfiltration
1 technique
Exfiltration
The spliting function is responsible for preparing and sending data to the controller. It is used to transmit status messages, job results, and file data.
Observables
13 indicators attributed across vendor reports, sandbox runs, and researcher write-ups. Values are masked here and available in full in Mallory.
Recent activity
51 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.