GobRAT
- Type
- RAT
- Capabilities
- PersistencePost exploitationDefense evasionReconnaissanceScanningBrute forceDDOS
- Platforms
- LinuxNetwork device
GobRAT is a Go-based remote access Trojan targeting Linux routers and other internet-facing edge devices, including network-attached storage systems. Identified in attacks against routers in Japan around February 2023, it has been compiled for ARM, MIPS, x86, and x86-64 architectures. Operators use compromised devices for remote access and as Operational Relay Boxes, proxying malicious traffic and concealing the origins of exploitation campaigns and distributed denial-of-service attacks.
GobRAT communicates with command-and-control servers over TLS, using Go's gob serialization protocol to exchange commands and execution results. Its 22 command types support reverse shells, arbitrary command execution, file reading and writing, host fingerprinting, system-state collection, command-and-control reconfiguration, and TCP/UDP communications. SOCKS5 proxying and integration with Fast Reverse Proxy enable traffic tunneling through infected devices. It can attempt authentication against SSH, Telnet, Redis, MySQL, and PostgreSQL services, scan HTTP/HTTPS services, conduct dictionary attacks, and generate SYN, TCP, UDP, HTTP, and ICMP denial-of-service traffic.
Deployment uses shell scripts on compromised edge devices to retrieve architecture-specific payloads. Associated installation scripts establish persistence through scheduled tasks and startup mechanisms, monitor and restart the malware, install an attacker-controlled SSH public key, and disable firewall protections. Execution under a legitimate-looking process name, UPX packing, and AES-128-CTR encryption of embedded strings further hinder detection and analysis.
GobRAT has been deployed alongside Bulbature in a globally distributed edge-device compromise operation affecting predominantly ARM-based Linux systems, including Asus and Qnap devices. The operation has been linked with high confidence to Chinese operators, but attribution to a specific named threat group or definitive state sponsorship has not been established.
Associated vulnerabilities
3 CVEs 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.
GobRAT, which has been already documented by the JP-CERT, is a swiss-army knife backdoor written in Go which has standard RAT functionalities and is also used to relay specific attacks from the compromised devices such as DDoS or vulnerability exploitation campaigns. It seems to be used to gather intelligence from the networks associated with the compromised edge devices.
GobRAT, which has been already documented by the JP-CERT, is a swiss-army knife backdoor written in Go which has standard RAT functionalities and is also used to relay specific attacks from the compromised devices such as DDoS or vulnerability exploitation campaigns. It seems to be used to gather intelligence from the networks associated with the compromised edge devices.
Techniques & procedures
14 distinct techniques documented for this family, organized by ATT&CK tactic.
Initial Access
1 technique
Initial Access
Initially, the attacker targets a router whose WEBUI is open to the public, executes scripts possibly by using vulnerabilities, and finally infects the GobRAT.
Execution
2 techniques
Execution
since Loader Script uses crontab to register the file path of Start Script for persistence
Loader Script works as a loader, containing functions such as generating various scripts and downloading GobRAT. | Appendix A: GobRAT commands ... 0x3 Start reverse shell
Persistence
2 techniques
Persistence
since Loader Script uses crontab to register the file path of Start Script for persistence
The SSH public key, which is assumed to be used for the backdoor, is hard-coded in the script... Register a SSH public key in /root/.ssh/authorized_keys
Privilege Escalation
1 technique
Privilege Escalation
since Loader Script uses crontab to register the file path of Start Script for persistence
Stealth
1 technique
Stealth
this script executes GobRAT under the file name apached to make it look like a legitimate process
Defense Impairment
1 technique
Defense Impairment
The SSH public key, which is assumed to be used for the backdoor, is hard-coded in the script... Register a SSH public key in /root/.ssh/authorized_keys
Credential Access
2 techniques
Credential Access
Attempt to login to sshd, Telnet, Redis, MySQL, PostgreSQL services running on another machine ... 0x2D Dictionary attack to HTTP/HTTPS service of specified IP
The SSH public key, which is assumed to be used for the backdoor, is hard-coded in the script... Register a SSH public key in /root/.ssh/authorized_keys
Discovery
3 techniques
Discovery
0x2a Scan to HTTP/HTTPS service of specified IP
GobRAT performs the following checks at startup... IP address and MAC address of itself Uptime by uptime command Network communication status by /proc/net/dev ... 0x16 Obtain various machine information such as df command
0x1f Check for the existence of the specified file
Command and Control
4 techniques
Command and Control
GobRAT uses TLS to send and receive data with its C2 server.
Start socks5 ... Execute SOCKS5 proxy with specified port and password ... Execute SOCKS5 proxy on specified port
Loader Script works as a loader, containing functions such as generating various scripts and downloading GobRAT.
GobRAT is a RAT written in Go language and communicates with C2 server via TLS and executes various commands.
Impact
1 technique
Impact
0x31 DDoS attacks on SYN, TCP, UDP, HTTP, ICMP
Observables
109 indicators attributed across vendor reports, sandbox runs, and researcher write-ups. Values are masked here and available in full in Mallory.
Recent activity
12 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.