GL.iNet Cloud Flaw Exploited: 150+ Routers Infected

GL.iNet cloud flaw - GL.iNet Cloud Flaw Exploited: 150+ Routers Infected

GL.iNet Cloud Flaw Leads to Widespread Router and KVM Compromise

A significant security incident has impacted users of GL.iNet networking devices, as the company confirmed that hackers exploited a critical vulnerability within its cloud remote management services. This exploit allowed unauthorized parties to install custom malware on a substantial number of customer routers and KVM devices. Some affected users have reported the presence of backdoors and reverse shells, granting attackers persistent remote access to their compromised hardware.

GL.iNet, known for its range of home and travel routers, alongside KVM (Keyboard, Video, Mouse) devices, offers the GoodCloud platform for remote device management. This platform enables users to access and control connected computers and servers, making the security of its cloud services paramount. The breach, detailed in a security advisory on November 20th, highlights a severe lapse in the security architecture of these networked devices.

Exploitation Details and Technical Architecture

The attackers gained access by exploiting a flaw in GL.iNet’s cloud remote management infrastructure. While the exact attack vector has not been fully disclosed by GL.iNet, evidence suggests a command injection vulnerability within the cloud client’s handler for AstroWarp/SD-WAN functionality. Researchers at RemoteToHome Consulting identified that this handler passed cloud-supplied values into shell commands executed with root privileges without adequate validation.

Analysis of recovered malware, specifically a script named `ni.sh`, reveals code meticulously tailored for GL.iNet routers and KVM devices. This script recognizes numerous device models and downloads malicious executables, `gl-helper` and `gb`, from hardcoded servers. It establishes persistence through startup scripts and scheduled tasks, ensuring the malware survives reboots or process termination. The malware even disguises its core process as `crond -i /tmp/.log`, matching the initial Indicator of Compromise (IOC) provided by GL.iNet.

Furthermore, the installer includes sophisticated evasion techniques. It replaces the legitimate `netstat` utility with a modified script designed to filter out connections to the attacker’s command-and-control servers, potentially hiding malicious network activity from administrators. The script also facilitates the installation of SSH public keys for persistent remote access and modifies file timestamps, indicating a well-resourced threat actor.

Malware Variants and Scope of Infection

The scope of the compromise appears extensive. RemoteToHome Consulting analyzed 183 routers under their management and found suspicious activity on 152. Of these, 24 exhibited root-level reverse shells, 47 contained an older persistent backdoor, and 81 showed evidence of attacker-executed commands. This suggests a multi-faceted attack, potentially involving both new exploits and previously established footholds.

In a separate report, a GL-RM1 KVM owner documented network logs showing the download of `ni.sh` and additional payloads from IP address 66.245.219[.]252 on November 19th. The compromised device subsequently initiated communication with approximately 1,800 residential IP addresses daily and repeatedly contacted the TRON blockchain API. While the exact purpose remains unclear, this activity hints at potential use as residential proxies or participation in a distributed network, reminiscent of how some IoT devices can be repurposed, similar to how advanced controllers are used in applications like swimming pool automation.

The attacker’s infrastructure is linked to at least two IP addresses: 66.245.219[.]252 and 65.20.71[.]131. Chinese-language developer comments within the `ni.sh` script suggest a Chinese-speaking individual may be responsible for its creation, detailing persistence mechanisms and interactions with GL.iNet’s cloud management software.

Mitigation, Limitations, and Field Readiness

GL.iNet has stated that the attack path has been blocked, and the cloud vulnerability has been fixed, preventing new infections via this specific method. However, the company acknowledges that these measures do not remove malware from already compromised devices. GL.iNet is urging customers to check their devices for signs of infection and to install the latest security firmware, even if no malware is immediately detected.

The company has scheduled stable firmware updates containing additional security fixes for release on November 22, 2026. Specific firmware version recommendations are provided for various KVM models (RM10, RM1, RM1V2, RM1PE, RM4PE, RM10RC, RMQ1) and routers. However, some GL.iNet forum members have expressed concern that the company’s detection instructions might not identify all compromised devices, especially those with alternative backdoors or running different reverse shells.

A community-developed scanner offers more comprehensive checks, including known malware files, suspicious processes, and modified system utilities. This scanner can also collect forensic evidence and attempt to remove known malware. Nevertheless, its developers caution that it cannot detect every infection. For severely compromised devices, reinstalling firmware without retaining existing settings may be necessary, as malicious files hidden in configuration directories could survive standard firmware upgrades.

Customers suspecting compromise are advised to preserve evidence, avoid restoring potentially infected configurations, and rotate all exposed credentials and access keys. GL.iNet also requests that users running the scanner upload anonymous reports to help ascertain the full extent and nature of the impact. For KVM users, the compromise extends to the computers managed by the KVM, necessitating thorough analysis of those systems as well.

The investigation is ongoing, with GL.iNet planning to notify affected customers via email. This incident underscores the critical need for robust security practices in cloud-connected IoT and networking devices, as vulnerabilities can have far-reaching consequences across user networks.

Source: BleepingComputer Security