GL.iNet Reverse Shells: Audit Vendor Access to Your Edge

In November, attackers abused GL.iNet's GoodCloud remote management service to push commands and malware to customer routers and KVM devices. Then the story turned. On December 4, GL.iNet said that outbound connections from customer devices to one IP address on November 20 and 21, including reverse shells, were part of its own investigation and remediation. BleepingComputer reported the admission on December 5.
The lesson is wider than one brand. A cloud management channel lets the vendor run commands on your hardware, and during an incident it will use that channel in ways you did not plan for. Below: what is confirmed, then a checklist for any edge device with vendor remote access.
What GL.iNet Confirmed
GL.iNet's incident timeline gives the root cause as "a permission configuration error in GoodCloud's messaging service" that let an unauthorized party send commands to connected devices. Malware was found on some routers and KVMs. The company says it fixed the cloud-side error on November 20 at 05:44 UTC, released security firmware for seven KVM models on November 22 and for 18 router models on November 23, and shipped more router builds on November 24 and December 1.
The same page explains the shells. Device logs may show outbound connections, "including reverse-shell connections," to 170.39.226.219 between November 20, 19:13 UTC and November 21, 12:57 UTC, on device-initiated TCP ports 5088, 30000-46005, 50000 and 50001. GL.iNet says this activity "was conducted as part of our investigation and remediation" and adds: "We should have communicated this information earlier."
Two more details from GL.iNet matter for inventory work:
- Cloud can be on before anyone binds it. The timeline says that on some KVM models "cloud services are enabled by default, even before the device is linked to a cloud account." The KVM docs say the same: the KVM Cloud service "is enabled by default."
- The fix is not a clean bill of health. The security notice says the firmware "provides targeted cleanup; it is not a general malware scan or a complete integrity check," and that neither the update nor a reset can "undo past access or revoke copied credentials."
What Is Still Disputed
RemoteToHome, an independent GL.iNet partner, keeps a public incident analysis that challenges parts of the statement. In its sweep of 216 routers it found a remote shell on 25. Its main points:
- The shells were plain text. In a lab test, "Whoever answers the router's connection gets a root shell."
- Shell loops kept redialling after GL.iNet's window closed, for six days on one router that was not restarted.
- The cloud fix "changed who may send through GoodCloud, not what a router runs."
BleepingComputer notes that GL.iNet has not said how it started the connections, what commands it ran, how many devices it reached, or whether owners agreed. So the honest answer to "were the shells removed?" is: the vendor's firmware cleans the known malware, a reboot ends a running loop, and nobody has published a full account of what ran in those shells. Plan as if you do not know.
Why This Is an Inventory Problem
Most teams can list their servers. Fewer can list every device where a vendor holds a command channel: travel routers in a remote office, a KVM-over-IP box on a lab rack, an LTE modem at a branch, a firewall with cloud management. GL.iNet's router docs show how much that channel can carry. On firmware 4.7 to 4.9, GoodCloud offers Remote SSH and Remote Web Access. On 4.10, "the remote access for router's web Admin Panel and terminal will be enabled by default once the router is bound to GoodCloud."
That is normal for the category. It becomes a problem when nobody knows which devices have it on, which credentials sit on them, and what the vendor may do over the channel during its own incident.
The Edge Device Audit Checklist
Run this for every device class, not only GL.iNet hardware.
1. List devices with a vendor channel. For each one record the model, firmware version, the cloud service it talks to, whether that service is bound to an account, who owns that account, and whether the vendor's channel offers a shell, a web UI, or only telemetry. Include devices still in boxes: a KVM with cloud on by default joins the moment it gets a network cable.
2. Check from the network, not from the device. A compromised box can lie. BleepingComputer's first report describes a malware installer that replaced netstat with a modified script filtering out connections to the attacker's server. Search firewall logs or flow records for edge devices that open outbound connections to unusual hosts, long-lived sessions to a single IP, and traffic to 170.39.226.219 in the November 20 to 21 window. Treat a repeating reconnect pattern as a shell loop until proven otherwise.
3. Then look on the device. On OpenWrt-based routers, read-only checks over SSH give a first picture:
# Shell-like processes and anything running from /tmp
ps w | grep -E 'sh -i|nc |/tmp/' | grep -v grep
# netstat should be a link to busybox; a real binary is suspicious
ls -l /bin/netstat
# Keys that can log in over Dropbear
cat /etc/dropbear/authorized_keys
RemoteToHome's write-ups list more indicators, and its field survey warns that "Nothing here can prove a device is clean." Use the device check to decide what to rebuild, never to declare a device safe.
4. Turn off what you do not use. GL.iNet documents how to unbind or disable GoodCloud per firmware generation in the router docs, and how to disable the KVM cloud under Cloud Service. If you need remote access, prefer a path you control, such as your own VPN, over a vendor relay. GL.iNet's docs also note that the cloud connection bypasses the router's VPN by default, so a VPN client on the router does not hide that traffic.
5. Rebuild suspect devices properly. GL.iNet says to reinstall official firmware without keeping settings and not to restore a backup from the affected device, and RemoteToHome also advises reinstalling without keeping settings. The router upgrade page has a Keep Settings option on local upgrade. Turn it off for a recovery. A factory reset alone does not install the security fixes.
6. Rotate what the device could reach. GL.iNet tells GoodCloud users to change the admin password and replace VPN keys, SSH keys and other credentials stored on or reachable from the device. For a KVM, check the computer it was attached to as well.
7. Ask the vendor about its response playbook. Do this before the next incident, in writing.
What to Rotate, by Device Role
| Device role | What it usually holds | Rotate after a vendor incident | Also check |
|---|---|---|---|
| Branch or travel router | Admin password, Wi-Fi keys, VPN client keys, DDNS tokens | All of them, plus the VPN peer on the server side | Overlay network membership (WireGuard, Tailscale, ZeroTier) |
| Site-to-site VPN gateway | Tunnel keys, routes into your core network | Tunnel keys on both ends | Firewall rules that trust the tunnel subnet |
| KVM-over-IP device | Console of a server, BIOS access, local logins typed through it | KVM admin password, any password typed on the attached host | Accounts, startup items and software on the attached host |
| Cloud-managed firewall | Admin accounts, API tokens, VPN users | API tokens and local admin accounts | Config changes in the vendor portal audit log |
The last column is where teams get caught. Rotating the router password is easy. Finding the WireGuard peer it held on your hub, or the root password someone typed through a KVM last month, takes an inventory.
Questions to Send Your Vendors
- Can your support or incident team open a shell or run commands on my device? Through which service, and is it on by default?
- Do you log those sessions, and can I see the log for my devices?
- Will you notify me before or after you run commands on my hardware during an incident?
- Is the channel encrypted and authenticated end to end, or can a network attacker answer it?
- How do I disable it completely, and does a firmware update turn it back on?
If the answers are vague, treat the channel as a standing root credential held by a third party, and track it like the other supplier secrets in our vendor secret rotation runbook.
Where an Operations Agent Helps
Most of this audit is lookups and comparisons across many small devices, which suits an agent that works with read-only access. The Akmatori connectors include NetBox, which can look up devices, sites and IP addresses as a starting list, and SSH, where hosts are read-only by default. You can allow single commands such as ls -l /bin/netstat and deny others on the connector's Tools tab, and the Jira connector opens remediation tickets only after you turn on Allow write operations.
Keep the same caution the checklist gives: an agent reading ps on a compromised router reads what the router chooses to show. Pair device checks with network evidence, and let humans approve every rebuild and rotation.
Conclusion
GL.iNet's reverse shells may well have been remediation, but RemoteToHome found they ran as root, in plain text, on customer hardware, and the vendor explained them only on December 4. Every vendor with a cloud management channel can do something similar. List those devices, check them from the network side, rebuild suspect ones without keeping settings, rotate what they could reach, and get your vendor's incident playbook in writing before you need it.
If your team wants AI-assisted incident workflows for edge-device audits and credential rotation, Akmatori helps SRE teams investigate alerts, coordinate response, and automate safe infrastructure actions. Powered by Gcore for global infrastructure reliability.
