Skip to content
OriginalNewsSecurity

GL.iNet's cloud service pushed malware onto its routers and KVMs

Attackers used a flaw in GL.iNet's GoodCloud service to plant custom malware on routers and KVM devices. The cloud hole is closed, but the malware is not gone, and the vendor's own check can miss it.

Cyanotype photogram on deep blue paper: a small router with two antennas at lower left, a slim remote-control handset at upper right, and a thin cord looping between them
A router and a remote-control handset in cyanotype blue, joined by a cord that loops back into the router: the management connection that became the way in.
On this page

In brief

  • GL.iNet says an attacker exploited its GoodCloud service on November 20 to install malware on some routers and KVM devices; the cloud path is blocked, but infected devices still need firmware.
  • Researchers verified root reverse shells on GL-AXT1800 routers and found the vendor's published check can miss infections; the suspected flaw has shipped in firmware since December 2024.
  • Owners should install the security firmware for their exact model, and reinstall without keeping settings plus rotate credentials if compromise is known or suspected.

On November 20, someone broke into GoodCloud, the service GL.iNet customers use to manage their routers from afar, and used it to push malware onto the devices themselves. GL.iNet says it blocked the attack path the same day. The cleanup is only partial, the vendor's own check can miss infections, and the company does not know how many devices were hit, when the attacks began, or who did it.

GoodCloud manages GL.iNet's travel routers, home routers, and KVM devices. A KVM is a small box that lets you control a computer remotely, as if you were sitting in front of it. That is the stake: a router sees every packet on a network, and a KVM can reach the computer plugged into it. When the service that manages both turns hostile, the attacker is already inside the perimeter.

How the cloud became the way in

GL.iNet's notice says the flaw sat in GoodCloud's device-messaging service, which runs on EMQX, an open-source MQTT broker. A configuration error in message authorization let one client send management messages to other users' devices without the required permission. GoodCloud 3.19.13 was affected and 3.19.14 is fixed, and the cloud-side fix blocked the identified attack path on November 20.

What happened on the devices themselves is less settled. Researchers at RemoteToHome Consulting, which manages a fleet of GL.iNet routers, traced a probable router-side path in the GoodCloud client, a package called gl-sdk4-cloud. Their analysis says a handler for an AstroWarp/SD-WAN command, virtual_ip_info, builds an iptables firewall command from two values in a cloud message and passes it to a root shell unchecked. The code has shipped since firmware 4.7.0, in a GL-MT3000 release on December 5, 2024, and it runs whether or not AstroWarp is turned on. GL.iNet has not confirmed that this was the path the attacker used. The researchers also reported a second, separate weakness in the cloud client to the vendor, withholding details until it is fixed.

What the malware does

BleepingComputer examined the malicious installer, a script called ni.sh, and found code written specifically for GL.iNet hardware. It downloads executables named gl-helper and gb from hardcoded servers. It persists through startup scripts and scheduled tasks, so the malware restarts after a reboot. It disguises its process as crond -i /tmp/.log, the indicator GL.iNet published. It replaces netstat with a modified script that filters out connections to 66.245.219.252, hiding its traffic from an administrator checking connections. It can install SSH keys and periodically fetch and run commands from a remote server. The script has Chinese-language developer comments, which BleepingComputer reads as a Chinese-speaking author, an inference about the author, not a finding about who ran the attack.

RemoteToHome verified a root reverse shell on one of its own GL-AXT1800 routers. The shell started on Friday evening, November 20, and connected to 170.39.226.219 using netcat, retrying every few seconds when the connection failed. Two more owners reported the same shell on the same model and firmware, 4.8.3, with GoodCloud switched on. The shell leaves no files behind, and its traces vanish at restart.

The firm's survey of the routers it owns or manages found suspicious activity on 152 of 183 analyzed: 24 with root reverse shells, 47 with an older backdoor, and 81 showing evidence that attacker-supplied commands had executed. That sample is routers the firm manages, not a random slice of GL.iNet's customers.

The KVM side has the widest open question. One owner of a compromised GL-RM1 KVM reported that, starting November 19, the device downloaded a script and two programs from 66.245.219.252, looked up a copycat domain and scanned the local network. BleepingComputer adds that the device talked to roughly 1,800 residential IP addresses a day and repeatedly contacted the TRON blockchain API. The purpose is unclear, and there is no confirmation the devices were being used as residential proxies or as part of a larger botnet.

The older backdoor

The survey also turned up something separate. Forty-seven of the routers carried an older persistent backdoor, installed in batches between September 2025 and May 2026, by a route that is not known. A malicious Lua payload from a GL-MT2500 router, launched through a modified urandom_seed startup script, collected device information and downloaded further programs. Nothing so far links the older backdoor to last week's attacks, and GL.iNet treats it as a separate finding. The distinction matters for owners: cleaning up the November malware does not necessarily remove the older one.

Why the check and the update are not enough

GL.iNet's published check looks for one marker: a running process containing the exact text crond -i /tmp/.log. That marker was absent on the router with the verified reverse shell. The vendor's notice is blunt about the limits: a check covers only the indicators it looks for, and no check can rule out previous access. The notice points owners to an independently maintained community check instead.

Checking has a second trap: the malware replaces netstat, so running it on a suspect device can start the malware. Check first that /bin/netstat is still a link to busybox. Check before rebooting or updating, because the reverse shell's traces disappear at restart.

The security firmware is a partial fix by design. GL.iNet says it disables the known malware and removes its related files and traces, including when settings are retained. But the notice adds that the update is targeted cleanup that may retain other unauthorized changes. Community testing found an added startup script and SSH key surviving a configuration-preserving upgrade on a test RM1. For the strongest recovery, GL.iNet says to install the security firmware without keeping settings, configure the device again by hand, and use new passwords and keys.

The firmware depends on the exact model, and a model missing from the notice's tables is not necessarily unaffected. The headline versions are 4.11.1 for the GL-MG1300, GL-MT3000, and GL-MT6000; 4.8.4 for the GL-AX1800, GL-AXT1800, GL-SFT1200, GL-X3000, and GL-XE3000; and 1.10.3 for the KVM models, with 1.8.7 for the RMQ1.

What is still unknown

No CVE identifier exists yet, and GL.iNet has not said how many devices were infected, when the attacks began, or how its cloud service was breached. It is emailing customers it identifies as affected, but not receiving an email is not proof a device was unaffected.

It is the second time in a week that a device whose job is to let the right traffic in has been the way in. On November 20, CISA added a Cisco Expressway flaw to its exploited-vulnerabilities catalog after attackers used it to take root on clustered gateways. The breach did not start at the device, it started at the infrastructure around it.

If you own a GL.iNet device that has ever touched GoodCloud, the update is the floor, not the ceiling. Install the security firmware for the exact model, check the device before rebooting if compromise is suspected, and if there is evidence of access, reinstall without keeping settings and treat every password and key on the device as exposed. For a KVM, check the computer attached to it. The question GL.iNet has not answered is how many devices were reached, and whether the computers behind the KVMs were touched.

Related reporting

More from grep.tips

All articles