GobRAT
- Type
- RAT
- Capabilities
- ReconnaissanceScanningBrute forcePersistenceDefense evasionPost exploitationLateral movementProcess injectionDDOSSpoofing
- Platforms
- LinuxNetwork device
GobRAT is a Go-based Linux remote access trojan and backdoor used in campaigns that compromise internet-facing edge devices, especially routers and NAS systems. It has been observed in attacks against routers in Japan and in broader Operational Relay Box infrastructures that repurpose compromised edge devices as anonymization nodes, proxy relays, and attack platforms. Reporting has repeatedly associated GobRAT-related activity with China-nexus operations, including infrastructure overlaps with other malware used by Chinese-speaking or China-aligned threat actors.
GobRAT communicates with command-and-control servers over TLS and uses Go's gob serialization protocol for tasking and result exchange. Samples have been observed across multiple CPU architectures, including ARM, MIPS, x86, and x86-64, consistent with targeting heterogeneous embedded Linux environments. The malware has been distributed through shell-script-based infection chains that download the architecture-appropriate payload, establish persistence through scheduled restart mechanisms, disable local defenses such as firewalls, and install SSH-based backdoor access.
Its functionality extends beyond standard remote administration. Supported operations include host fingerprinting, reverse shell execution, file read and write operations, command-and-control reconfiguration, SOCKS5 proxying, and tunneling. GobRAT has also been documented attempting authentication against services such as SSH, Telnet, Redis, MySQL, and PostgreSQL on other systems, as well as scanning HTTP and HTTPS services and conducting dictionary attacks. Some observed command sets support distributed denial-of-service activity using multiple protocols. These capabilities make GobRAT suitable both for espionage support and for turning compromised devices into relay infrastructure for follow-on intrusion activity.
GobRAT employs basic protection and concealment measures, including packed binaries and encrypted embedded strings. It has been described as a multi-purpose backdoor used to gather intelligence from networks associated with compromised edge devices while also enabling operators to launch attacks from victim infrastructure rather than their own.
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
47 indicators attributed across vendor reports, sandbox runs, and researcher write-ups. Values are masked here and available in full in Mallory.
Recent activity
10 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.