Cybersecurity

GL.iNet Cloud Flaw: Hackers Planted Malware on Routers and KVM Devices

Published By Shivam Sharma12 min read
A small black travel router with two antennas on a wooden desk beside a closed laptop

GL.iNet confirmed on Friday 20 November that hackers exploited a flaw in its cloud remote management service to install malware on some of its routers and KVM devices. The company says it has blocked the attack path and fixed the cloud vulnerability, but the fix does not clean devices that were already infected. Owners need to check their own hardware, and the check the company published will not catch everything that is out there.

The notice, published by GL.iNet on 20 November, is short on the details owners want most. It does not say how many devices were hit, which router models were affected, when the attacks began, or whether the attackers took any data. What it does give is a single indicator of compromise, a check that takes about a minute, and a promise of stable firmware that was due on Sunday 22 November. The rest of the picture comes from BleepingComputer’s investigation, published on Sunday 22 November, and from PrivacyAffairs, which has tracked the incident owner by owner.

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

Open your router over SSH and run ps, then grep for tmp. If the output shows crond -i /tmp/.log, treat the router as infected. KVM owners run their model’s check in Toolbox, then Terminal, then Access. A clean result is not a guarantee, because a second, older backdoor leaves no such process behind.

  1. Run ps and grep for tmp over SSH, then look for crond -i /tmp/.log in the output.
  2. Open LuCI from System, then Advanced Settings, go to Status, then Processes, and press Ctrl+F for tmp/.log.
  3. Check a KVM in Toolbox, then Terminal, then Access, and run the model command shown in the notice.
  4. Run the three older-backdoor checks for urandom_seed, monitord, and ujaild, even after a clean first result.
  5. Treat a positive result as infected: KVM owners install the beta, router owners reset, then install stable firmware when available.
  6. If compromise is suspected, rotate exposed passwords and VPN keys, and switch GoodCloud off if unused.

One detail in the check catches people out. A line showing only the grep command itself is not a match, GL.iNet says, so look for the full crond process entry. The three older-backdoor checks are different commands: compare the startup script against the firmware copy, list the two backdoor files, and search running processes for monitord and ujaild. If you run AdGuard Home on the router, search its query log for adguardns, lede-openproject, adxinsight, and openwrt-project. A hit there means some device on your network asked for one of those names.

What GL.iNet has confirmed so far

GL.iNet identified the vulnerability in its cloud remote management services on 20 November. An unauthorized party exploited it to access and install malicious software on some GL.iNet routers and KVM devices, the company said. GoodCloud is the platform that lets customers manage supported devices remotely, including accessing and controlling computers and servers connected to its KVM products.

The company says the attack path is closed. “Devices can no longer be newly infected through this attack path. These measures do not remove malware from devices that were already infected,” GL.iNet wrote in its notice. Three things remain undisclosed: how the attackers exploited the cloud platform, how many customers were impacted, and whether information was stolen from compromised devices.

The company is still investigating whether computers connected to infected KVM devices were compromised. It plans to notify the customers it identifies as affected by email, using the address on their GL.iNet cloud account, with guidance for their device. Owners do not need to wait for that email to check their device or install the update.

Two details from the company’s own documentation matter for owners. The KVM cloud service is enabled by default, according to GL.iNet’s documentation cited by PrivacyAffairs, so a device that can type on your computer ships with its remote link switched on. And GL.iNet’s security page commits the company to disclosing vulnerabilities within 90 days of discovery. The forum thread carrying the notice passed 800 views in its first six hours, PrivacyAffairs reported, with most replies asking for the affected models, a start date, signs of infection, and whether a reset removes the malware.

What the malware does once it is inside

BleepingComputer examined a copy of the malicious ni.sh script and found it is tailored to GL.iNet routers and KVM devices. It recognises numerous GL.iNet device models and downloads malicious executables named gl-helper and gb from hardcoded servers. It sets up persistence through startup scripts and scheduled tasks, so the malware restarts after a reboot or if its processes are killed. It disguises the malicious process as crond -i /tmp/.log, the same indicator GL.iNet published.

The script also replaces the legitimate netstat utility with a modified shell script that filters out connections to 66.245.219.252, hiding the malware’s own traffic from an administrator checking network connections. It installs SSH public keys for remote access, changes file timestamps, and periodically contacts a remote server to retrieve and execute commands. The script contains Chinese-language developer comments describing its persistence mechanisms, reporting functions, and interactions with GL.iNet’s cloud management software, which BleepingComputer says indicates a Chinese-speaking individual may have written it.

Researchers also found root-level reverse shells connecting compromised routers to the IP address 170.39.226.219. The shells used the Linux nc utility to create outbound connections, letting remote attackers execute commands on infected devices. The attacker’s infrastructure includes two IP addresses, 66.245.219.252 and 65.20.71.131, which match the addresses seen in the compromised KVM owner’s logs.

A separate malicious Lua payload was recovered from a GL-MT2500 router. It was launched through a modified urandom_seed startup script and included functions to collect device information, contact remote servers, and download and execute additional programs. In one forum report, the owner of a compromised GL-RM1 KVM shared network logs showing the device downloading the ni.sh script and additional payloads from 66.245.219.252 on Thursday 19 November. The owner also reported that the device began communicating with approximately 1,800 residential IP addresses daily and repeatedly contacted the TRON blockchain API, activity suggestive of a peer-to-peer network. The purpose of those connections is unclear, and there is no confirmation that the compromised devices were used as residential proxies or were part of a larger botnet.

Some malicious files recovered from GL.iNet devices had timestamps dating to December 2025, suggesting that some devices may have been compromised for months. It is unclear whether those infections involved the same threat actors or were related to the 20 November attacks.

GL.iNet has linked a community-developed detection and cleanup tool in its official support instructions. The scanner checks for known malware files, suspicious processes, modified system utilities, and configuration files changed for persistence. It can collect forensic evidence and optionally remove known malware components. Its developers warn that it cannot detect every infection, and that compromised devices may need their firmware reinstalled without retaining existing settings, because malicious files stored in configuration directories could survive an ordinary firmware upgrade. Customers who suspect their devices were compromised should preserve evidence before resetting them, avoid restoring potentially infected configurations, and rotate credentials and access keys that may have been exposed.

The second backdoor the official check cannot see

Owners checking their routers for the 20 November attack found a separate, older backdoor. The first report came at 21:34 UTC on Saturday 21 November, from an owner who found something else on a GL-AX1800 used as an access point. By Sunday morning, owners of a GL-X2000, a GL-MT3000, a Puli AX (GL-XE3000), and another GL-AX1800 had posted the same files. It is not in GL.iNet’s 20 November security notice, and the check GL.iNet tells owners to run does not find it.

The backdoor starts with the router. Extra lines at the top of the startup script /etc/init.d/urandom_seed copy the router’s own Lua interpreter to /usr/bin/monitord and use it to run /bin/ulogd, a compiled Lua program. The program restarts the system log, then sends the router’s serial number, MAC address, model, firmware version, and DDNS name to its server, without checking the server’s certificate. The samples posted call home every two hours, and one waited three days between calls. The server can send back a second program, which runs as ujaild from a temporary file that deletes itself. Owners who took it apart found code for tunnels and a SOCKS5 proxy, and say it lets the server’s operator run any command, open a terminal, and send traffic through the connection or into the home network.

It stays through updates. On most infected routers it adds both files to the list a firmware update keeps (/lib/upgrade/keep.d/netifd), so an update with “Keep settings” switched on carries it over. One owner says it survived an April 2026 upgrade that way. Every router carries its own build of the payload, with 41 different hashes on 41 routers, so a list of known file hashes will not find it. On three routers, the WireGuard server configuration was rewritten 11 seconds after the backdoor’s files appeared.

The file dates run from 15 September 2025 to 24 May 2026 on the 38 routers whose clocks gave a real date, arriving in batches. On 20 December 2025 the backdoor reached 11 routers on 11 different networks, six of them within 14 minutes. One owner’s weekly backups show the files absent on 28 December 2025, present on 4 January 2026, and stamped 1 January 2026 at 05:35 UTC.

The backdoor reports to five server names that imitate AdGuard and OpenWrt, whose real sites are adguard.com and openwrt.org. The first two, lede-openproject.org and adxinsight.com, were bought on 4 July 2025, eight minutes apart, at two different registrars, and put behind the same pair of Cloudflare name servers. A third, openwrt-project.org, followed on 18 August 2025. The newer loader, from December 2025, calls adguardns.com and adguardns.org, both registered on 8 December 2025. All five still resolved to Cloudflare addresses when PrivacyAffairs checked at 15:14 UTC on Sunday.

Every infected router described so far was bound to GoodCloud. Of the 47 infected routers RemoteToHome Consulting found, 42 have no public address, so they cannot be reached from the internet directly. Each of the 36 the consultancy could check was bound to GoodCloud before the backdoor arrived and ran a build of the cloud client newer than the one in which the flaw used on Friday first appears. The community advisory reads that as pointing to the cloud as the way in. GL.iNet has not confirmed it, and not every GoodCloud router was hit: a second GL-AX1800 with the same firmware, also bound to GoodCloud, was clean, and one infected GL-MT3000 had GoodCloud’s remote SSH and web access switched off.

On Sunday 22 November at 08:11 UTC, a GL.iNet staff member listed three cases found in the forum and in the community’s script. The third was “an older backdoor associated with changes to the urandom_seed startup script and processes named monitord or ujaild.” The post asked a forum member to confirm the list and said nothing about cause, scope, or dates. Brume 2 routers (GL-MT2500) stand out in the reports, with 18 of the 32 infected devices in the community script’s anonymous reports and 17 of the 19 RemoteToHome checked. Their newest stable firmware on GL.iNet’s server is 4.7.4, from March 2025.

If you find the older backdoor, reflash rather than just resetting. Install the firmware again from a file you downloaded yourself, with “Keep settings” off, and set the router up by hand instead of restoring a backup. RemoteToHome advises a reflash over a factory reset, because on most routers it tested, root can write to the image a reset restores from. Assume every secret on the router was copied: change the Wi-Fi, admin, DDNS, and GoodCloud passwords, delete the router’s WireGuard or OpenVPN profile with your VPN provider and create a new one, and block the five server names in your network’s DNS.

What one consultancy found in its own routers

RemoteToHome Consulting, which sets up GL.iNet VPN routers for remote workers, analysed 183 routers it owns or manages. The figures below are its counts, reported by BleepingComputer, and the percentages are our own calculation from those counts. This is one consultancy’s managed fleet, not a global infection rate, and the researchers note their findings may not be the same as for other GL.iNet customers.

Finding in RemoteToHome’s 183 routers Routers Share
Suspicious activity of any kind 152 83%
Evidence attacker-supplied commands had executed 81 44%
Older persistent backdoor present 47 26%
Root-level reverse shell active 24 13%

The researchers also identified a potential command-injection vulnerability in GL.iNet’s GoodCloud client, involving a handler used for AstroWarp/SD-WAN functionality that passes cloud-supplied values into shell commands executed with root privileges without properly validating them. GL.iNet has not confirmed that this particular vulnerability was used in the attacks, so it stays a candidate, not the confirmed entry point. The researchers note the older backdoor infections may not be linked to the November attacks.

The firmware that was due on 22 November

Stable firmware with security fixes for both routers and KVM devices was scheduled for 22 November 2026, GL.iNet said. KVM owners did not have to wait that long. Fixed KVM firmware appeared on the company’s forum as Google Drive links at 11:16 UTC on Saturday 21 November, then in GL.iNet’s download centre as a beta around noon that day. The beta builds are 1.10.2 or later for the RM10, RM10RC, RM1, RM1V2, RM1PE, and RM4PE, and 1.8.6 or later for the RMQ1. The company’s firmware upgrade guidance, reported by BleepingComputer, lists the stable versions as 1.10.3 or later for the RM10, RM1, RM1V2, RM1PE, and RM4PE, 1.10.3 beta or later for the RM10RC, and 1.8.7 or later for the RMQ1.

Router owners are still waiting. PrivacyAffairs checked GL.iNet’s firmware server at 15:15 UTC on Sunday 22 November and found no new stable build for any of the ten router models it checked. The newest router builds in GL.iNet’s download system predate the notice. Until the stable update appears, the company’s advice for routers is a factory reset, holding the Reset button for about 10 seconds after the router has fully started, then setting the router up again and installing the update once it is out.

Saturday’s timeline shows how fast the picture moved. GL.iNet last updated its notice at 04:25 UTC, a staff member posted it on the company forum at 07:57 UTC, owners were posting the email by 10:37 UTC, the fixed KVM firmware appeared at 11:16 UTC, the KVM check followed at 13:43 UTC, and the router check at 13:56 UTC. The first older-backdoor report landed at 21:34 UTC that evening.

This is not the Comet KVM’s first security problem this year. In an April advisory, GL.iNet fixed flaws found by Eclypsium, including one that let an attacker in the middle or a compromised update server swap the firmware and its MD5 hash and still pass verification.

What to watch next

Whether the stable firmware scheduled for 22 November appears, and for which models, is the first thing to check. Router owners have a check and a reset instruction, but no fix yet. Whether GL.iNet names the affected router models, a device count, and an attack start date comes next, along with whether the GoodCloud command-injection flaw is confirmed as the entry point. Whether the notice is updated to cover the older backdoor, and whether the customers carrying it are told, will show how far the company’s response reaches. And whether a CVE is assigned will matter for every owner who needs to prove to an employer or an insurer that the device was part of a known incident.

This article will be updated as GL.iNet confirms more, or as further reporting emerges about the incident.