RatGopher
RatGopher is a Go-based backdoor used in the GopherWhisper intrusion set. It uses the Discord API via the discordgo library to communicate with a private Discord server for command and control, receiving commands from a configured channel and posting execution results back to that channel. Reported capabilities include executing commands through cmd.exe, uploading files to and downloading files from file.io, and a kill command. Multiple sources state that it uses AES-128 in CFB and CBC modes, with support for operator-driven CBC key and IV rotation through specially formatted Discord messages. One reported initialization message is "Hello, everyone!\nI'm coming!". RatGopher has been associated with the China-aligned threat actor GopherWhisper, which ESET observed targeting governmental institutions in Mongolia, including roughly 12 compromised systems in one Mongolian government entity, with indications of additional victims. The malware is part of a broader GopherWhisper toolset that also includes LaxGopher, BoxOfFriends, CompactGopher, JabGopher, FriendDelivery, and SSLORDoor. Reported sample metadata includes intelservice.exe, detected as WinGo/Agent.VM, described as a RatGopher backdoor using Discord for C2. The content also states that GopherWhisper used a stolen Google LLC code-signing certificate to sign RatGopher.
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.
We also unearthed two other backdoors: RatGopher and SSLORDoor. RatGopher leverages Discord for communication with the operators.
Techniques & procedures
22 distinct techniques documented for this family, organized by ATT&CK tactic.
Resource Development
3 techniques
Resource Development
GopherWhisper uses Slack, Discord, and Microsoft Graph services for its C&C infrastructure.
RatGopher and early versions of its source code were identified from chat log analysis. BoxOfFriends is a custom backdoor.
GopherWhisper has used stolen Google LLC code-signing certificates to sign RatGopher.
Execution
2 techniques
Execution
LaxGopher communicates via Slack, runs commands, and downloads payloads
LaxGopher has the following capabilities: interactively execute commands via cmd.exe... RatGopher has the following capabilities: execute a new instance of cmd.exe... SSLORDoor has the following capabilities: spawn a hidden cmd.exe.
Stealth
1 technique
Stealth
JabGopher, LaxGopher, CompactGopher, RatGopher, and SSLORDoor all have encryption/decryption capabilities.
Discovery
4 techniques
Discovery
LaxGopher, RatGopher, and SSLORDoor can enumerate all services running on a compromised host.
LaxGopher, RatGopher, and SSLORDoor can collect the hostname, OS version, and OS architecture of a compromised host.
LaxGopher, RatGopher, and SSLORDoor can obtain file and directory listings.
LaxGopher, RatGopher, and SSLORDoor can identify running software on victim machines.
Collection
1 technique
Collection
LaxGopher, RatGopher, SSLORDoor, and CompactGopher can collect local data from a compromised machine.
Command and Control
7 techniques
Command and Control
Attackers continue to lean on everyday collaboration platforms to hide command and control traffic inside normal enterprise noise... running its operations through Slack workspaces, Discord servers, Outlook drafts, and the file.io sharing service.
RatGopher backdoor that uses Discord for C&C.
The blog post on GopherWhisper’s toolset including backdoors abusing publicly available services like Slack, Discord, and Microsoft Graph
LaxGopher, RatGopher, and BoxOfFriends use Slack, Discord, and Microsoft Graph, respectively, for C&C infrastructure.
LaxGopher, RatGopher, and SSLORDoor can all download additional files/payloads.
LaxGopher and RatGopher use base64 to encode messages sent to their C&Cs.
LaxGopher and RatGopher use AES algorithms for encryption. BoxOfFriends uses XOR encryption.
Exfiltration
4 techniques
Exfiltration
LaxGopher, RatGopher, SSLORDoor, and BoxOfFriends exfiltrate data to their C&Cs.
RatGopher and CompactGopher use HTTPS to exfiltrate data collected from victims to file.io.
LaxGopher leverages Slack to exfiltrate data. RatGopher leverages Discord and file.io to exfiltrate data. CompactGopher uses the file.io web service to exfiltrate data.
CompactGopher , a Go-based file collection utility dropped by LaxGopher to filter files of interest by extensions (.doc, .docx, .jpg, .xls, .xlsx, .txt, .pdf, .ppt, and .pptx.), compress them into ZIP files, encrypt the archives using AES-CFB-128, and exfiltrate them to file[.]io.
Observables
2 indicators attributed across vendor reports, sandbox runs, and researcher write-ups. Values are masked here and available in full in Mallory.
Recent activity
14 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.