Tech brief

Hackers Planted Malware on GL.iNet Routers Through Its Cloud Service

GL.iNet says hackers exploited its cloud management service to install malware on some routers and KVM devices, and owners need new firmware to clean them.

A light-blue GL.iNet travel router with two fold-out antennas on a wooden hotel desk, plugged in next to a small white Wyze camera.
Image: Tony Webster / Wikimedia Commons (CC BY 2.0, cropped and resized)
On this page · 3 sections
  1. What the attackers left behind
  2. How to check your GL.iNet router or KVM
  3. References

The malware found on some GL.iNet routers brings its own disguise. It swaps out netstat, the tool that lists a router's network connections, for a fake that can hide the router's link to the attacker's server, BleepingComputer reported after examining the installer.

GL.iNet makes the palm-size travel routers many people plug in at hotels, plus KVM boxes that let someone run a computer remotely as if sitting at its keyboard. The company said Nov. 20 that an unauthorized party exploited a flaw in its cloud remote management service to install malicious software on some of those routers and KVM devices. GL.iNet said it fixed the flaw and blocked the attack path, so devices can no longer be newly infected that way. That fix does not clean a device that was already hit. Owners have to check their hardware and install new security firmware themselves.

What the attackers left behind

GL.iNet has not said how many devices were infected, how its cloud service was breached or whether any data was stolen. The company said it is still investigating whether computers connected to infected KVMs were affected, and it will email customers it identifies at the address tied to their GL.iNet cloud account. Nobody needs to wait for that email to act.

  • Remote control. Owners and researchers reported backdoors and root-level reverse shells, which let a remote attacker run commands on the device, BleepingComputer reported.
  • Built to stick around. The installer restarts itself after a reboot, adds SSH keys for remote access and changes file timestamps, BleepingComputer said.
  • Strange traffic. One GL-RM1 KVM owner shared logs showing the device contacting about 1,800 residential IP addresses a day after it downloaded a malicious script Nov. 19. The purpose of that traffic is unclear.
  • Traces that vanish. RemoteToHome Consulting verified a root-level reverse shell on a GL-AXT1800 router running firmware 4.8.3 with GL.iNet's GoodCloud service switched on, The Hacker News reported. GL.iNet's warning marker was missing on that router, and the shell's traces disappear when the device restarts.

RemoteToHome said a handler in the GoodCloud client on the router runs commands sent from the cloud as root without checking them, and that the code has shipped since at least Dec. 5, 2024. GL.iNet has not confirmed that finding, and the firm said the code's age does not mean attacks started then.

How to check your GL.iNet router or KVM

  1. Check before you restart. If you suspect a problem, look for signs of infection before you reboot or upgrade, because some traces disappear on restart, the researchers advised.
  2. Look for the marker on a router. In the router's Admin Panel, go to System > Advanced Settings and sign in to LuCI. Open Status > Processes, press Ctrl+F (Command+F on a Mac) and search for tmp/.log. A process showing crond -i /tmp/.log means GL.iNet says to treat the device as infected.
  3. Look for the marker on a KVM. In the KVM's web interface, go to Toolbox > Terminal > Access and run ps -aux | grep tmp, or ps -a | grep tmp on the RMQ1. Run it on the KVM, not on the computer it controls.
  4. Install the security firmware either way. GL.iNet says to update even if the check comes back clean. It lists firmware 4.11.1 or later for the GL-MT3000, GL-MT6000 and GL-MG1300; 4.8.4 or later for the GL-AXT1800, GL-AX1800, GL-SFT1200, GL-X3000 and GL-XE3000; 4.7.14 or later for the GL-MT2500 and GL-X2000; and 1.10.3 or later for most RM-series KVMs (1.8.7 for the RMQ1). Other models are on GL.iNet's notice. Never install firmware meant for a different model.
  5. Go further if you found the marker. GL.iNet says its update is enough. The RemoteToHome researchers advise a firmware reinstall without keeping settings, then new Wi-Fi, admin, VPN and cloud passwords and keys.
  6. Turn off GoodCloud until you update. Switching it off stops the cloud client from running but won't clean an infected device, the researchers said. Make sure you can still reach the device on your own network first.
  7. Check the computer behind an infected KVM. GL.iNet says to look for unfamiliar programs, browser extensions, user accounts, startup items and scheduled tasks, then run a full security scan.

Not sure what you found? GL.iNet asks owners to email support@gl-inet.com. If you travel with any router, our guide to using hotel and airport Wi-Fi safely covers the basics, and the Android TV box backdoor Google cut off shows how hijacked home gadgets get put to work.

Want more tech news like this? Follow Tech Cheat Codes on Facebook. Tap this link, then tap Follow: Follow Tech Cheat Codes on Facebook

RemoteToHome found suspicious activity on 152 of the 183 GL.iNet routers it owns or manages, more than 4 in 5, BleepingComputer reported. GL.iNet says its security firmware removes the malware it identified with no factory reset, and owners can keep their settings.

References