Researchers Trace GL.iNet Router Root Access to GoodCloud Command Injection

Summary
RemoteToHome reports unchecked GoodCloud command injection led to root shells on 24 GL.iNet routers, while a separate backdoor was found on 49. GL.iNet's checks missed both; the older backdoor's installation route remains unknown.
Key points
- RemoteToHome traced the router root shells to GoodCloud client code that inserted unchecked cloud values into a shell command; the handler ran as root even when AstroWarp was disabled.
- RemoteToHome found the shell activity on 24 routers and command-only activity on others; the sender has not been identified.
- A separate boot-persistent backdoor was found on 49 routers. File dates on 40 place installation between September 2025 and May 2026; its installation route is unknown.
- RemoteToHome's sample covered routers it manages or owns: 166 of 199 showed the November activity, the older backdoor, or both. The sample is not representative of GL.iNet's overall installed base.
- A GL-RM1 KVM infection reported separately involved the ni.sh installer and gl-helper. No published indicators link it to either router compromise.
- GL.iNet says it fixed the cloud vulnerability, but RemoteToHome found its published check missed the router compromises and that firmware cleanup could leave backdoor components behind.
- The article recommends preserving evidence before restarting or upgrading, reinstalling without keeping settings, and revoking router-held VPN credentials and SSH keys.
Article Details
- Attack Vectors
- The GoodCloud client inserted unchecked values from cloud messages into an iptables command and executed it through the shell as root; the handler did not require AstroWarp to be enabled.
- On 24 routers, a command opened a reverse shell by connecting /bin/sh to 170.39.226[.]219 through a named pipe and netcat.
- A compromised GL-RM1 downloaded the ni.sh installer and additional payloads from 66.245.219[.]252 over HTTP.
- A separate backdoor used startup-script modifications to run at boot and a Keep Settings upgrade file to survive firmware upgrades; how it was installed is unknown.
- Defensive Notes
- Do not rely on the crond -i /tmp/.log process check to clear a router; RemoteToHome found the router compromises on devices where that indicator was absent.
- Check for evidence before rebooting or upgrading, because some traces may disappear. The article identifies /etc/mp_ip_mapping_info, /etc/init.d/urandom_seed, and /bin/ulogd as useful checks.
- Keep GoodCloud disabled until the remaining cloud-client weakness is fixed. Install clean firmware with Keep Settings off rather than retaining a potentially compromised configuration.
- Revoke affected VPN profiles and SSH keys on the systems where they remain valid, and replace stored passwords and keys.
- RemoteToHome advises blocking traffic to 170.39.226.0/24 as a stopgap.
- Preserve KVM evidence before upgrading: firmware 1.10.3 deletes gl-helper files, and GL.iNet is still determining whether attached computers were reached.
- Employers should review remote-access sessions from workers' home addresses; KVM owners should also check attached computers.
Indicators of compromise
| Type | Indicator | Context |
|---|---|---|
| DOMAIN | adxinsight[.]com | Additional older-backdoor server name reported by a forum owner; the finding is not independently verified. |
| DOMAIN | cdn[.]adguardns[.]com | Older backdoor server domain imitating AdGuard; RemoteToHome reported it was still answering on November 21. |
| DOMAIN | cdn[.]adguardns[.]org | Older backdoor server domain imitating AdGuard. |
| DOMAIN | gl-inet[.]top | Lookalike domain reported as resolving to the KVM payload host. |
| DOMAIN | lede-openproject[.]org | Additional older-backdoor server name decoded by a forum owner; the finding is reported by that owner and not independently verified. |
| DOMAIN | openwrt-project[.]org | Listed as a further older-backdoor server name and checked by the community triage script. |
| DOMAIN | up[.]adguardns[.]com | Older backdoor server domain imitating AdGuard. |
| DOMAIN | up[.]adguardns[.]org | Older backdoor server domain imitating AdGuard. |
| IPV4 | 170[.]39[.]226[.]219 | Router reverse shells connected to this address, and a command sent device-tagged folder listings there. |
| IPV4 | 66[.]245[.]219[.]252 | Payload host from which a compromised GL-RM1 downloaded ni.sh and additional payloads. |
| SHA256 | 311b5767e7d63e7dbdc1476c36608b8d7ef729c8bbcc64ded63b9470396351d6 | Hash of the ujaild second stage found on 42 older-backdoor routers. |
| SHA256 | 3265f27feb954744581cdea2373b88ceae9d85b67e90487353fd48902cf4fc19 | Hash of the altered urandom_seed startup script found on all 49 older-backdoor routers measured by RemoteToHome. |
| SHA256 | 36e04e10b4667e59b0a3a25147b032dc038c5a9971a7df88be80f8882e30dd87 | Hash of the ni.sh installer examined by BleepingComputer. |
| SHA256 | 53736d5db721a358bec5b9ddf6056df73b36fc5330300342c42f866a05191432 | Hash of the ujaild second stage found on seven older-backdoor routers. |
| URL | hxxp[:]//66[.]245[.]219[.]252:8000/n5 | URL used by a compromised GL-RM1 to download the next binary stage. |
| URL | hxxp[:]//66[.]245[.]219[.]252:8000/ni.sh | Installer URL used by a compromised GL-RM1 to download ni.sh. |
MITRE ATT&CK
T1014 · RootkitThe KVM installer replaced netstat with a modified script that filtered connections to 66.245.219[.]252.T1036.003 · Rename Legitimate UtilitiesThe older backdoor copied /usr/bin/lua to /usr/bin/monitord and ran its loader through the renamed copy.T1036.005 · Match Legitimate Resource Name or LocationThe KVM installer could disguise its process as crond -i /tmp/.log.T1037.004 · RC ScriptsFive lines added to /etc/init.d/urandom_seed caused the older router backdoor loader to run at boot.T1041 · Exfiltration Over C2 ChannelThe folder-check command tagged its listing with the device identifier and sent it to 170.39.226[.]219.T1046 · Network Service DiscoveryThe infected KVM reportedly tried 32 private addresses in 10 minutes, with 68 failed connections.T1053 · Scheduled Task/JobThe GL-RM1 installer reportedly established persistence through startup scripts and scheduled tasks.T1059.004 · Unix ShellThe GoodCloud handler built a shell command from unchecked message values and ran it as root.T1070.004 · File DeletionThe older backdoor's ujaild stage ran from a file in /tmp that was deleted after it started.T1070.006 · TimestompThe KVM installer could change file timestamps.T1083 · File and Directory DiscoveryA one-shot command listed /etc/config/.gl and /etc/glinet/.cache to check for gl-helper folders.T1095 · Non-Application Layer ProtocolA named-pipe loop connected /bin/sh -i to netcat at 170.39.226[.]219 and retried after disconnection.T1098.004 · SSH Authorized KeysThe KVM installer included functionality to add SSH public keys.T1105 · Ingress Tool TransferThe compromised GL-RM1 downloaded ni.sh and n5 over HTTP from 66.245.219[.]252.T1199 · Trusted RelationshipCommands arrived through the GoodCloud management channel to routers registered with the service.
CVE
Malware
gbnetwork logs as BleepingComputer reports. The installer recognizes GL.iNet models, downloads gl-helper and gb, and can disguise its process as crond -i /tmp/.log, the indicator GL.iNet published. The script alsogl-helpermemory. The command lists /etc/config/.gl and /etc/glinet/.cache, the folders of a KVM implant called gl-helper. It tags the listing with the device identifier and sends it to 170.39.226[.]219. The command installsni.shA compromised GL-RM1 KVM downloads the ni.sh script and additional payloads from 66.245.219[.]252.ujaildrouter. It comes in two sizes, 33,722 bytes on 42 routers and 35,745 on the other 7. The second stage, ujaild, runs from a file in /tmp deleted once it starts, and exists in two versions. A line added toulogdlines added to the top of /etc/init.d/urandom_seed copy /usr/bin/lua to /usr/bin/monitord and run /bin/ulogd through it at every boot.
Vendors
GL.iNetGoodCloud is supposed to let a GL.iNet owner manage a router from anywhere. On November 20, 2026, it gave a threat actor the same reach. A crafted cloud message arrived at a router registered with GoodCloud, and theMisaka Networkto 170.39.226[.]219, with the reverse DNS name aa27e2db.ewr.customer.misaka.io, a rented server at Misaka Network, a United States (US) hosting provider. No customer is named in the registry. RemoteToHome sent an
Products
GL-AXT1800Shells to 170.39.226[.]219 start between 20:06 and 21:40 Coordinated Universal Time (UTC) on GL-AXT1800 and GL-MT6000 routers.GL-MT3000GL-MT3000 4.7.0 is the earliest release carrying the virtual_ip_info handler, 715 days in released firmware before the attack.GL-MT6000Shells to 170.39.226[.]219 start between 20:06 and 21:40 Coordinated Universal Time (UTC) on GL-AXT1800 and GL-MT6000 routers.GL-RM1A compromised GL-RM1 KVM downloads the ni.sh script and additional payloads from 66.245.219[.]252.GoodCloudGoodCloud is supposed to let a GL.iNet owner manage a router from anywhere. On November 20, 2026, it gave a threat actor the same reach. A crafted cloud message arrived at a router registered with GoodCloud, and the
Tools
Admon's community triage scriptagainst its read-only copy and looking for /bin/ulogd finds the older backdoor. Admon's community triage script checks every on-device sign and saves evidence first, though GL.iNet has not reviewed it.ni.shA compromised GL-RM1 KVM downloads the ni.sh script and additional payloads from 66.245.219[.]252.
Countries
Industries
Information TechnologyThe Federal Bureau of Investigation (FBI) says North Korean information technology (IT) workers use GL.iNet and other KVM over Internet Protocol (IP) devices to control laptops.Networkingdetermination behind the listing warns against "a built-in backdoor to American homes" and cites "local networking espionage."
