Hackers Exploited GL.iNet Cloud Flaw to Install Malware on Routers

Hackers Exploited GL.iNet Cloud Flaw to Install Malware on Routers

Hackers Exploited GL.iNet Cloud Flaw to Install Malware on Routers and KVM Devices

The cloud service meant to make your router easier to manage can also become the way attackers get in. That’s exactly what happened to GL.iNet, a maker of travel routers and remote-access KVM hardware, which confirmed that hackers exploited a flaw in its Good Cloud remote management service to install malware on some customer devices.

The company has fixed the cloud-side issue, but that alone doesn’t clean devices that were already infected. If you own a GL.iNet router or KVM, here’s what happened, how to check your hardware, and what to do next, in plain language.

What Happened: The Good Cloud Flaw

GL.iNet said attackers abused a vulnerability in Good Cloud, its cloud service for remotely managing devices, to push malware onto some routers and KVM units. (A KVM is a small device that lets you control a computer remotely, as if you were sitting in front of it.)

The company identified and fixed the flaw on Friday and blocked the access the attacker used, so devices can no longer be infected through this route. Importantly, that cloud-side fix does not remove malware already on infected devices, owners still need to check their hardware and install the security firmware GL.iNet has now published.

Several key details remain unknown. The company hasn’t said how many devices were infected, when the attacks began, or how its cloud service was breached. It is emailing affected customers, but says owners shouldn’t wait for a message to act. As of publication, there was no CVE identifier for the flaw.

How the Attack Worked

Security consultancy Remote to home Consulting, which examined the incident on routers it manages, shared a detailed look at what the malware did.

A hidden reverse shell

On one GL-AXT1800 router running firmware 4.8.3 with Good Cloud switched on, the firm verified a root-level reverse shell, a hidden channel giving the attacker full control. It started on Friday evening and connected to an external address, and two more owners reported the same thing on the same model. On GL-MT6000 routers, the same command ran but the connection didn’t complete.

The shell is stealthy by design: it leaves no files behind, and its traces vanish when the device restarts. Worryingly, GL.iNet’s own detection marker was absent on the router where the shell was confirmed.

According to the firm’s analysis, the shell arrived through the Good Cloud client on the router itself. A handler in that client took two values from a cloud message and ran them as root without checking them. The firm says this unchecked code has existed in the firmware since at least a December 2024 release, though its presence doesn’t mean attacks began then. GL.iNet has not confirmed this finding.

KVM implants

One owner reported an infected GL-RM1 KVM that downloaded a script and two programs, looked up a copycat domain mimicking GL.iNet, and scanned the local network, while repeatedly connecting to what the owner suspected was a command channel.

Which Devices Are Affected?

GL.iNet has published a list of affected router and KVM models along with security firmware for each. A few important points for owners:

  • A model missing from the firmware table isn’t automatically safe. The notice warns against assuming you’re unaffected just because your model isn’t listed.
  • Never install firmware meant for another model. Only use the firmware matched to your exact device.
  • Good Cloud being enabled matters. The confirmed cases involved routers with Good Cloud switched on.

The researchers also found an unrelated, older backdoor on 49 of the routers they manage, installed in batches between September 2025 and May 2026. So far, nothing links it to this Good Cloud incident, but it’s a reminder to inspect devices thoroughly.

How to Check Your Device

GL.iNet’s check looks for one marker: a running process whose details contain the exact text crond -i /tmp/.log. A line showing only the search command itself does not count as a match.

Here’s how to look, depending on your device:

  • Router (web panel): Sign in to LuCI under System → Advanced Settings, open Status → Processes, and search for tmp/.log.
  • Router (SSH): Run ps | grep tmp.
  • KVM: Open the device’s terminal under Toolbox → Terminal → Access, then run ps -a | grep tmp (RMQ1) or ps -aux | grep tmp (other models). Run it on the KVM, not the attached computer.

Two cautions from the researchers:

  1. Check before rebooting or upgrading if you suspect compromise, because the shell’s traces disappear at restart.
  2. The marker can miss infected devices, it was absent on the router with the verified shell, so a clean result isn’t a guarantee.

Also, before running netstat on a suspect device, confirm /bin/netstat still links to busy box, as a swapped command could trigger the malware.

What the Firmware Update Does, and Doesn’t, Fix

GL.iNet’s updated notice now says the security firmware “removes the malware identified in this incident without requiring a factory reset,” keeping your settings. That replaces earlier guidance that pointed infected users to a factory reset.

However, the update isn’t shown to cover everything a root-level attacker might leave behind. In the researchers’ KVM analysis, upgrading an RM1 while keeping settings carried over the device’s password file, SSH keys, and user directory, and that directory holds scripts that run at every boot. Whether a planted script survives the upgrade hasn’t been tested.

For any device showing signs of compromise, the researchers recommend a stronger approach: reinstall the firmware without keeping settings, and treat every stored secret as exposed, VPN keys, Wi-Fi and admin passwords, cloud credentials, and SSH keys. On this point, the vendor’s advice and the researchers’ advice differ, so cautious owners may prefer the clean reinstall.

What Owners Should Do Now

If you own a GL.iNet router or KVM, here’s a practical checklist:

  1. Check your device using the steps above, before rebooting if you suspect compromise.
  2. Install the matching security firmware from GL.iNet’s notice, for your exact model only.
  3. If you see signs of compromise, consider a clean firmware reinstall without keeping settings.
  4. Rotate your secrets if the device may have been infected, change Wi-Fi, admin, and VPN passwords, and replace SSH keys and cloud credentials.
  5. For infected KVMs, check the attached computer for unfamiliar programs, new accounts, odd startup items, and unusual network activity.
  6. Until you can update, you can switch Good Cloud off, but secure another way to reach the device first, and remember this stops future cloud access without cleaning an already-infected device.

Conclusion

The GL.iNet Good Cloud incident is a sharp reminder that cloud management features, however convenient, expand the ways a device can be attacked. The company has closed the hole and released firmware that it says removes the malware, but a stealthy root-level reverse shell and uncertainty about what else attackers left behind mean owners shouldn’t be complacent.

The safest path is simple: check your device, update to the right firmware, and if there’s any sign of compromise, reinstall cleanly and treat your stored secrets as exposed. Key facts, including who was behind the attack and how many devices were hit, are still unknown, so staying alert and acting promptly is the best protection for now.

Frequently Asked Questions

What is the GL.iNet Good Cloud vulnerability?

It’s a flaw in GL.iNet’s Good Cloud remote management service that attackers exploited to install malware on some customer routers and KVM devices. GL.iNet fixed the cloud-side issue and blocked the attacker’s access, but already-infected devices still need to be checked and updated.

Does the firmware update remove the malware?

GL.iNet says its security firmware removes the malware from this incident without a factory reset. However, researchers note the update may not clear everything a root-level attacker left behind, so devices showing signs of compromise should be reinstalled cleanly.

How do I check if my GL.iNet device is infected?

Look for a running process containing the text crond -i /tmp/.log. On a router, check Status → Processes in LuCI or run ps | grep tmp over SSH; on a KVM, use its terminal. Check before rebooting, as the malware’s traces vanish at restart.

Which GL.iNet devices are affected?

GL.iNet published a list of affected router and KVM models with matching firmware. A model not on the list isn’t automatically safe, and you should never install firmware meant for a different model.

Should I change my passwords after this attack?

Yes, if your device may have been infected. Researchers advise treating all stored secrets as exposed, changing Wi-Fi, admin, and VPN passwords, and replacing SSH keys and cloud credentials.