Skip to main content
Mallory
Malware2 associated actors3 associated CVEs

GobRAT

Tracked since Nov 25, 2025 · Updated 3 months ago
Trending this weekNot trendingOutside this week’s top 100
Mention activity · 30 daysNo mention activity in the last 30 days.
Vulns3Associated
Actors2Associated
ATT&CK14Techniques
IOCs47Tracked
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.

Is this in your environment?See whether this family's indicators match your telemetry and which of your assets are exposed to the CVEs associated with it.
Check your exposure
Associated CVEs

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.

CVE-2017-5638via sekoia blogApache Struts 2 Jakarta Multipart Parser Remote Code ExecutionGobRAT, 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.View vulnerability →Source ↗
CVE-2019-13956via sekoia blogArbitrary PHP Code Execution via Language Cookie in Discuz!ML 3.2-3.4GobRAT, 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.View vulnerability →Source ↗
CVE-2019-9082via sekoia blogThinkPHP Remote Code Execution via invokefunctionGobRAT, 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.View vulnerability →Source ↗
Threat actors

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.

View more details →
ZIRCONIUM

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.

via sekoia blogblog.sekoia.io
Quad7

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.

via sekoia blogblog.sekoia.io
MITRE ATT&CK

Techniques & procedures

14 distinct techniques documented for this family, organized by ATT&CK tactic.

Initial Access

1 technique
T1190Exploit Public-Facing ApplicationEvidence1

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
T1053.003CronEvidence1

since Loader Script uses crontab to register the file path of Start Script for persistence

T1059Command and Scripting InterpreterEvidence1

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
T1053.003CronEvidence1

since Loader Script uses crontab to register the file path of Start Script for persistence

T1556Modify Authentication ProcessEvidence1

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
T1053.003CronEvidence1

since Loader Script uses crontab to register the file path of Start Script for persistence

Stealth

1 technique
T1036MasqueradingEvidence1

this script executes GobRAT under the file name apached to make it look like a legitimate process

Defense Impairment

1 technique
T1556Modify Authentication ProcessEvidence1

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
T1110Brute ForceEvidence1

Attempt to login to sshd, Telnet, Redis, MySQL, PostgreSQL services running on another machine ... 0x2D Dictionary attack to HTTP/HTTPS service of specified IP

T1556Modify Authentication ProcessEvidence1

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
T1046Network Service DiscoveryEvidence1

0x2a Scan to HTTP/HTTPS service of specified IP

T1082System Information DiscoveryEvidence1

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

T1083File and Directory DiscoveryEvidence1

0x1f Check for the existence of the specified file

Command and Control

4 techniques
T1071Application Layer ProtocolEvidence1

GobRAT uses TLS to send and receive data with its C2 server.

T1090ProxyEvidence1

Start socks5 ... Execute SOCKS5 proxy with specified port and password ... Execute SOCKS5 proxy on specified port

T1105Ingress Tool TransferEvidence1

Loader Script works as a loader, containing functions such as generating various scripts and downloading GobRAT.

T1219Remote Access ToolsEvidence1

GobRAT is a RAT written in Go language and communicates with C2 server via TLS and executes various commands.

Impact

1 technique
T1499Endpoint Denial of ServiceEvidence1

0x31 DDoS attacks on SYN, TCP, UDP, HTTP, ICMP

Indicators of compromise

Observables

47 indicators attributed across vendor reports, sandbox runs, and researcher write-ups. Values are masked here and available in full in Mallory.

View all in app →
Indicator values are available in Mallory. Pivot on every hash, domain, URL, and IP, or pipe them straight into your SIEM.View all in Mallory
Activity feed

Recent activity

10 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.

View more in app →
+6 more in the timeline. Sign up to see them
Is this in your environment?See whether this family's indicators match your telemetry and which of your assets are exposed to the CVEs associated with it.
Check your exposure
Mallory platform

The version that knows your environment.

This page is what’s public. Mallory adds the parts that aren’t: which of your assets match these IOCs, which detections are missing, which campaigns to expect next, and what to do in the next 30 minutes.
IOC matching47Match every observed IP, domain, and hash against your live telemetry.
Associated threat actors2Groups linked to this family, with evidence pinned to each claim.
Associated vulnerabilities3CVEs linked to this family, with the reporting behind each link.
Detection signaturesYARA, Sigma, Snort, and vendor rules, auto-deployed to your SIEM.
MITRE ATT&CK mapping14Every documented technique, ranked by evidence weight.
Researcher chatterReddit, Mastodon, and CTI community discussion around this family.