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

· Original article ↗

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

TypeIndicatorContext
DOMAINadxinsight[.]comAdditional older-backdoor server name reported by a forum owner; the finding is not independently verified.
DOMAINcdn[.]adguardns[.]comOlder backdoor server domain imitating AdGuard; RemoteToHome reported it was still answering on November 21.
DOMAINcdn[.]adguardns[.]orgOlder backdoor server domain imitating AdGuard.
DOMAINgl-inet[.]topLookalike domain reported as resolving to the KVM payload host.
DOMAINlede-openproject[.]orgAdditional older-backdoor server name decoded by a forum owner; the finding is reported by that owner and not independently verified.
DOMAINopenwrt-project[.]orgListed as a further older-backdoor server name and checked by the community triage script.
DOMAINup[.]adguardns[.]comOlder backdoor server domain imitating AdGuard.
DOMAINup[.]adguardns[.]orgOlder backdoor server domain imitating AdGuard.
IPV4170[.]39[.]226[.]219Router reverse shells connected to this address, and a command sent device-tagged folder listings there.
IPV466[.]245[.]219[.]252Payload host from which a compromised GL-RM1 downloaded ni.sh and additional payloads.
SHA256311b5767e7d63e7dbdc1476c36608b8d7ef729c8bbcc64ded63b9470396351d6Hash of the ujaild second stage found on 42 older-backdoor routers.
SHA2563265f27feb954744581cdea2373b88ceae9d85b67e90487353fd48902cf4fc19Hash of the altered urandom_seed startup script found on all 49 older-backdoor routers measured by RemoteToHome.
SHA25636e04e10b4667e59b0a3a25147b032dc038c5a9971a7df88be80f8882e30dd87Hash of the ni.sh installer examined by BleepingComputer.
SHA25653736d5db721a358bec5b9ddf6056df73b36fc5330300342c42f866a05191432Hash of the ujaild second stage found on seven older-backdoor routers.
URLhxxp[:]//66[.]245[.]219[.]252:8000/n5URL used by a compromised GL-RM1 to download the next binary stage.
URLhxxp[:]//66[.]245[.]219[.]252:8000/ni.shInstaller 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

Vendors

Products

Tools

Countries

Industries

Related Articles