Security & Privacy

Hackers exploit GL.iNet GoodCloud vulnerability to install malware

GL.iNet confirmed that attackers exploited a vulnerability in its GoodCloud platform to install custom malware on routers and KVM devices. Researchers from RemoteToHome Consulting found suspicious activity on 152 out of 183 analyzed devices, including root-level reverse shells.

Hackers exploit GL.iNet GoodCloud vulnerability to install malware

Cloud vulnerability leads to malware installation

GL.iNet confirmed hackers exploited a vulnerability in its GoodCloud remote management platform to install custom malware on routers and KVM devices. The company blocked the attack path on November 20, though it notes the fix does not remove malware from already infected hardware. I find the company’s refusal to disclose the number of impacted customers or the extent of stolen information problematic. This vulnerability allowed an unauthorized party to access devices and install malicious software. The affected hardware includes home and travel routers, as well as KVM devices that allow users to control computers remotely. The GoodCloud platform allows customers to manage supported devices, including accessing and controlling computers and servers connected to its KVM products. For KVM users, the malware may have allowed access to the computers controlled by the KVM, so those devices should also be analyzed for potential compromise. GL.iNet is also investigating whether computers connected to infected KVM devices were compromised. The company plans to notify identified affected customers using the email addresses associated with their cloud accounts.

Researchers identify custom payloads and reverse shells

RemoteToHome Consulting analyzed 183 routers it owns or manages and found suspicious activity on 152, including 24 with root-level reverse shells, 47 with an older persistent backdoor, and 81 showing evidence that attacker-supplied commands had executed. Researchers also identified a potential command injection vulnerability in the GoodCloud client involving a handler for AstroWarp/SD-WAN functionality. BleepingComputer examined the malicious ni.sh script. The script recognizes numerous GL.iNet device models and downloads executables named gl-helper and gb from hardcoded servers. The script includes Chinese-language developer comments describing its persistence mechanisms and its interactions with GL.iNet cloud management software. The reverse shells used the Linux nc utility to create outbound connections, which allowed remote attackers to execute commands on infected devices. One compromised GL-RM1 KVM owner reported downloading the script from 66.245.219.252 on November 19, after which the device communicated with approximately 1,800 residential IP addresses daily and contacted the TRON blockchain API. The script also includes functionality to install SSH public keys for remote access, modify file timestamps, and periodically contact a remote server to retrieve and execute commands. Because the script replaces the legitimate netstat utility to hide connections to 66.245.219.252, administrators may struggle to see the malware’s communication during a manual inspection. The attacker’s infrastructure uses 66.245.219.252 and 65.20.71.131. One malicious Lua payload recovered from a GL-MT2500 router was launched through a modified urandom_seed startup script and included functionality to collect device information and download additional programs.

Remediation steps and firmware updates

GL.iNet recommends customers check for the process crond -i /tmp/.log and install the latest security firmware. Forum members warn that the company’s detection instructions may not identify all compromised devices, including those with other backdoors or reverse shells. GL.iNet linked to a community-developed detection and cleanup tool that performs checks for known malware files, suspicious processes, modified system utilities, and configuration files modified for persistence. The project’s developers warn that the scanner cannot detect every infection and that compromised devices may require reinstalling firmware without retaining existing settings, as malicious files stored in configuration directories could survive an ordinary upgrade. The scanner can also collect forensic evidence and optionally remove known malware components.

KVM Model Recommended Firmware Version
RM1, RM1V2, RM1PE, RM4PE, RM10 1.10.3 or later
RM10RC 1.10.3 beta or later
RMQ1 1.8.7 or later

Customers who suspect their devices were compromised should preserve evidence before resetting them, avoid restoring potentially infected configurations, and rotate credentials and access keys that may have been exposed. Router owners should install the latest security firmware for their specific model as soon as it becomes available.