GL.iNet has confirmed that attackers exploited a flaw in GoodCloud, its cloud remote-management service, to install malware on customer routers and KVM-over-IP devices. The vendor’s security notice (dated November 20, later updated) says the attack path has been closed server-side. That fix does not remove implants already on devices. Stable firmware with additional security fixes for routers and KVMs was scheduled for release on November 22.

This is a vendor management plane being used as a delivery channel. Anyone who could issue commands through GoodCloud could reach every enrolled device behind NAT, with no exposed WAN port needed. On the KVM products (the Comet RM1/RM1PE line), that reach extends to the keyboard, video and power of whatever server or workstation the KVM is plugged into.

What we know

  • Vector: a flaw in the GoodCloud service let the attacker push commands to enrolled devices. GL.iNet has not described the bug, assigned a CVE, or said when abuse began. RemoteToHome, a GL.iNet-focused consultancy coordinating community response, separately flagged a possible command-injection issue in the on-device GoodCloud client. GL.iNet has not confirmed that this issue was the one exploited.
  • Payload: a shell script, ni.sh, fingerprints the device model. It contains logic for numerous GL.iNet router and KVM SKUs. It then downloads two binaries, gl-helper and gb, from hard-coded servers.
  • Access: affected routers ran a root reverse shell built on a FIFO at /tmp/f and connecting to 170.39.226.219. The confirmed case is a GL-AXT1800 (Slate AX) on firmware 4.8.3. Community reports also show the indicator on a GL-E5800 (Mudi 7) on 4.10.3.
  • Scale: RemoteToHome examined 183 routers and found suspicious activity on 152, including 24 with root-level reverse shells. Some of those infections may predate this campaign and be unrelated. One forum user found a second, older backdoor on two 4.8.3 units that had GoodCloud enabled.
  • KVM firmware: RM1PE firmware 1.10.2 reportedly removes the gl-helper implant at boot. RM1 1.10.2 has no equivalent cleanup.

GL.iNet has not published an affected-model list, a device count, or a statement on data theft. The vendor says it is still investigating whether computers attached to infected KVMs were compromised.

Who is exposed

What matters is whether GoodCloud was enabled and connected when the malicious commands went out, not which firmware version the device ran. Cloud management is on by default on GL.iNet KVMs. On routers it is opt-in but widely used for remote admin of travel routers and branch/home-lab gear. Treat any device that had GoodCloud enabled as potentially compromised.

The KVM case is the most serious. A compromised IP-KVM gives the attacker out-of-band console access to the attached host: BIOS/UEFI access, boot-media injection, keystroke injection into an unlocked session, and power control. None of that shows up in the host’s own EDR.

What to do now

  1. Turn off GoodCloud in the admin UI (Cloud Service settings) if you don’t strictly need it. On routers you can also stop and disable the gl-cloud service over SSH.

  2. Hunt for indicators on each device:

    • processes or connections to 170.39.226.219
    • any process using a FIFO at /tmp/f (the classic mkfifo /tmp/f; ... | nc reverse-shell pattern)
    • files or processes named gl-helper, gb, or ni.sh
    • unexpected firewall rules, cron entries, or init scripts

    RemoteToHome’s incident repo has a checker and recovery steps, and GL.iNet links to it from its notice.

  3. Flash the November 22 security firmware even if the check comes back clean. GL.iNet explicitly recommends this. For devices with confirmed indicators, do a full reset and reflash rather than trusting in-place cleanup, because this campaign has already shown more than one persistence mechanism.

  4. Rotate credentials: the device admin password, the GL.iNet/GoodCloud account password, SSH keys, and any VPN (WireGuard/OpenVPN) keys or upstream Wi-Fi credentials stored on the router.

  5. For KVMs: inspect the attached host for new user accounts, unfamiliar startup items or scheduled tasks, unexpected browser extensions, and firmware/boot-order changes. Where a shell was confirmed, treat that host as compromised.

  6. Block 170.39.226.219 at upstream egress and review flow logs for prior contact.

The bigger lesson

Cloud management for SOHO and edge gear is a single point of trust over your whole fleet. This year we’ve seen the same pattern from attackers going after vendor control planes rather than individual devices. If a device can take commands from a vendor cloud, include that vendor cloud in your threat model. Keep it disabled unless you need it, and put out-of-band gear like IP-KVMs on an isolated management VLAN with no route to the internet.

References