# GL.iNet GoodCloud cloud-management flaw exploited to infect routers and KVM devices (ni.sh, gl-helper, gb implants)

> GL.iNet disclosed on 2026-11-20 that an unauthorized party exploited a vulnerability in its GoodCloud cloud remote management service to install malicious software on some GL.iNet routers and KVM devices. Infected devices show a ni.sh installer, gl-helper and gb payloads, root reverse shells, SSH key implants and a modified netstat that hides attacker connections; the cloud-side fix does not remove existing infections.

- **Published:** 2026-11-22T18:55:05Z
- **Last reviewed:** 2026-11-22T18:55:05Z
- **Canonical:** https://intel.threadlinqs.com/threat/TL-2026-6657
- **Card image:** https://intel.threadlinqs.com/og/threat/TL-2026-6657.png
- **ID:** TL-2026-6657
- **Severity:** HIGH
- **Category:** VULNERABILITY
- **Status:** ACTIVE
- **Detections:** 9 (1 shown free below) · **IOCs:** 19 (3 shown free below)

## Description

On 2026-11-20 GL.iNet identified a vulnerability in its cloud remote management services (GoodCloud) and stated that an unauthorized party used it to access and install malicious software on some routers and KVM devices. The vendor has not named a CVE, the vulnerability class, the exploit method, or the malware family. It says it fixed the cloud flaw and blocked the access used, so devices cannot be newly infected through this path, but that these measures do not remove malware from devices already infected. Whether computers connected to infected KVMs were affected is under investigation. GL.iNet's only published indicator is a running process whose command line is 'crond -i /tmp/.log'.

Per BleepingComputer, a GL-RM1 KVM owner's logs (2026-11-19) show the device downloading a malicious ni.sh script and additional executables (gl-helper and gb) from hardcoded servers; 66.245.219.252 is the download/C2-related address and 65.20.71.131 appears in the same logs. The malware disguises its process, establishes persistence via startup scripts and scheduled tasks (restarting after reboot or process kill), installs attacker SSH public keys, modifies file timestamps, polls a remote server for commands, and replaces netstat with a shell script that filters out connections to 66.245.219.252. On a GL-MT2500 router a modified urandom_seed startup script launched a malicious Lua payload that collects device information, contacts remote servers and downloads further programs. Root-level reverse shells using the Linux nc utility connected to 170.39.226.219. The ni.sh script contains Chinese-language developer comments; this is not attribution. A forum user also reported contact with roughly 1,800 residential IPs per day and the TRON blockchain API; the purpose (proxy network, botnet, P2P) is unconfirmed.

Independent community analysis by RemoteToHome Consulting (not an official GL.iNet page; live document) reports a probable root cause on the router side: the GoodCloud client (package gl-sdk4-cloud) builds an iptables command from two cloud-supplied values and passes it to a root shell without validation or quoting, in the handler for the AstroWarp/SD-WAN command virtual_ip_info, and it runs even when AstroWarp is disabled. The code was found in firmware from GL-MT3000 4.7.0 (2024-12-05) onward. GL.iNet has not confirmed this as the exploited flaw, and how the attacker reached the cloud channel is unknown. On affected routers the injected command opened a root reverse shell (mkfifo /tmp/f, /bin/sh -i, nc 170.39.226.219 <port>, retry loop every 3 seconds) or, on most, ran a one-off command that checks for the KVM implant folders (gl-helper) and sends the result to 170.39.226.219. Separately, an older persistent backdoor (processes monitord and ujaild, /bin/ulogd, edits to /etc/init.d/urandom_seed and /lib/upgrade/keep.d/netifd; file dates 2025-09 to 2026-05) was found on 49 routers; its link to the November attack is unconfirmed. RemoteToHome's survey figures changed over time: BleepingComputer cites 183 routers analyzed with 152 showing suspicious activity (24 root reverse shells, 47 older backdoor, 81 attacker commands run); the repo's latest update (2026-11-22) lists 199 routers reached, 166 with signs (24 shells, 49 older backdoor, 93 command-only). The sample is not random.

Remediation: install stable security firmware (KVM RM10/RM1/RM1V2/RM1PE/RM4PE 1.10.3+, RMQ1 1.8.7+; router firmware scheduled 2026-11-22), check for the crond -i /tmp/.log process, preserve evidence before resetting, reinstall firmware without keeping settings (config directories can carry persistence across upgrades), factory reset infected KVMs, rotate all credentials/keys/VPN peers stored on the device, and inspect computers attached to infected KVMs.

## MITRE ATT&CK

- T1190 Exploit Public-Facing Application
- T1059.004 Unix Shell
- T1059.011 Lua
- T1037.004 RC Scripts
- T1053.003 Cron
- T1098.004 SSH Authorized Keys
- T1036.004 Masquerade Task or Service
- T1564 Hide Artifacts
- T1070.006 Timestomp
- T1082 System Information Discovery
- T1095 Non-Application Layer Protocol

## Free detection (Splunk SPL, Microsoft KQL, Sigma)

**GL.iNet GoodCloud virtual_ip_info Command Injection and mkfifo/nc Root Reverse Shell (TL-2026-6657)** (`TL-2026-6657-SPL-001`)

Detects the router-side exploitation chain for the GL.iNet GoodCloud compromise: an SDWAN_IP_MAPPING iptables command carrying shell metacharacters (command injection via the virtual_ip_info handler, CWE-78), the root mkfifo /tmp/f + nc reverse shell loop, or any reference to the reverse-shell server 170.39.226.219. Behaviour-first: fires on injected iptables syntax or the FIFO/netcat shell regardless of destination, with the C2 IP as a corroborating signal.

- **Languages:** Splunk SPL, Microsoft KQL, Sigma
- **ATT&CK:** T1190, T1059.004
- **Data sources:** linux:audit, syslog, DeviceProcessEvents
- **Severity:** critical
- **Confidence:** high

### Splunk SPL

```spl
index=linux earliest=-24h (sourcetype=linux:audit OR sourcetype=syslog) ("SDWAN_IP_MAPPING" OR "mkfifo" OR "170.39.226.219") | eval injected_iptables=if(match(_raw,"SDWAN_IP_MAPPING.*(;|[|][|]|&&|[$])"),1,0), fifo_nc_shell=if(match(_raw,"mkfifo[ ]+/tmp/f") AND match(_raw,"[ /]nc[ ]"),1,0), c2_ip=if(match(_raw,"170[.]39[.]226[.]219"),1,0) | where injected_iptables=1 OR fifo_nc_shell=1 OR c2_ip=1 | stats count min(_time) as first_seen max(_time) as last_seen sum(injected_iptables) as injected_iptables sum(fifo_nc_shell) as fifo_nc_shell sum(c2_ip) as c2_ip by host | convert ctime(first_seen) ctime(last_seen)
```

### Microsoft KQL

```kql
union (DeviceProcessEvents | where Timestamp > ago(24h) | where ProcessCommandLine matches regex @'SDWAN_IP_MAPPING.*(;|[|][|]|&&|[$])' or (ProcessCommandLine has 'mkfifo' and ProcessCommandLine has '/tmp/f' and ProcessCommandLine has 'nc ') or ProcessCommandLine has '170.39.226.219' | project TimeGenerated = Timestamp, Host = DeviceName, Detail = ProcessCommandLine, Source = 'DeviceProcessEvents'), (Syslog | where TimeGenerated > ago(24h) | where SyslogMessage matches regex @'SDWAN_IP_MAPPING.*(;|[|][|]|&&|[$])' or (SyslogMessage has 'mkfifo' and SyslogMessage has '/tmp/f') or SyslogMessage has '170.39.226.219' | project TimeGenerated, Host = Computer, Detail = SyslogMessage, Source = 'Syslog') | sort by TimeGenerated desc
```

### Sigma

```yaml
title: GL.iNet GoodCloud virtual_ip_info Command Injection and Root Reverse Shell
id: 6f1c2a54-8b3d-4e07-9a61-5d2e7c0b1a01
status: experimental
description: Detects injected SDWAN_IP_MAPPING iptables commands from the GoodCloud virtual_ip_info handler, the mkfifo /tmp/f + nc root reverse shell loop, and references to the reverse-shell server 170.39.226.219 (TL-2026-6657).
references:
  - https://www.gl-inet.com/en-us/blogs/blog/glinet-security-notice-2026-11-20
  - https://github.com/RemoteToHome-io/gl-security-incident-2026
  - https://www.bleepingcomputer.com/news/security/hackers-exploit-glinet-cloud-flaw-to-infect-routers-kvm-devices/
author: Threadlinqs Team
date: 2026-11-22
tags:
  - attack.initial-access
  - attack.t1190
  - attack.execution
  - attack.t1059.004
logsource:
  category: process_creation
  product: linux
detection:
  selection_inject:
    CommandLine|contains: 'SDWAN_IP_MAPPING'
    CommandLine|re: 'SDWAN_IP_MAPPING.*(;|[|][|]|&&|[$])'
  selection_fifo:
    CommandLine|contains|all:
      - 'mkfifo'
      - '/tmp/f'
      - 'nc '
  selection_c2:
    CommandLine|contains: '170.39.226.219'
  condition: 1 of selection_*
falsepositives:
  - Legitimate AstroWarp/SD-WAN iptables rules that contain no shell metacharacters (excluded by the regex)
  - Administrators using mkfifo with nc for ad-hoc troubleshooting
level: critical

```

**Known false positives:**

- Administrators using mkfifo with nc for ad-hoc troubleshooting on lab devices
- Legitimate AstroWarp/SD-WAN iptables rule changes that happen to contain a dollar sign in a shell variable

**Tuning notes:** Ensure auditd EXECVE records (or EDR command lines) from GL.iNet routers and Linux hosts are forwarded to index=linux; adjust index/sourcetype to your environment. Exclude documented lab hosts that legitimately use mkfifo/nc. Any hit on the c2_ip flag should be treated as confirmed compromise.

### 8 more detection rules (Splunk SPL, Microsoft KQL, Sigma), unlock with TL Creds

- [indicator] Installer and [indicator]/gb Implant Download and Staging on GL.iNet Devices (locked: unlock with TL Creds)
- GL.iNet Implant Persistence via urandom_seed, keep.d/netifd, Cron and Lua Payload (locked: unlock with TL Creds)
- Raw TCP Reverse-Shell and C2 Beaconing to GL.iNet Compromise Infrastructure with Retry Pattern (locked: unlock with TL Creds)
- GL.iNet GoodCloud State File [indicator] and [indicator] Implant Check Reported to [indicator] (locked: unlock with TL Creds)
- GL.iNet Implant SSH Key Implant, Timestomping and netstat Replacement Hiding [indicator] (locked: unlock with TL Creds)
- Outbound Residential-Proxy and TRON API Contact Pattern from Infected GL.iNet Edge Devices (locked: unlock with TL Creds)
- GL.iNet Implant Process Masquerading as crond (crond -i /tmp/.log) and monitord/ujaild Backdoor (locked: unlock with TL Creds)
- Network Connections to GL.iNet Compromise Infrastructure ([indicator], [indicator], [indicator]) (locked: unlock with TL Creds)

Sign up free to unlock the detection rules: https://threadlinqs.com/?modal=signup

## Sample indicators (3 of 19)

Defanged, TLP:CLEAR.

- IP address: `170.39.226[.]219`
- Domain: `szlsntvpnxxx04[.]top`
- File hash: `36e04e10b4667e59b0a3a25147b032dc038c5a9971a7df88be80f8882e30dd87`

Full set of 19 indicators unlocks with TL Creds: https://threadlinqs.com/tl-creds

## Sources

- [Hackers exploit GL.iNet cloud flaw to infect routers, KVM devices (BleepingComputer)](https://www.bleepingcomputer.com/news/security/hackers-exploit-glinet-cloud-flaw-to-infect-routers-kvm-devices/)
- [GL.iNet security notice 2026-11-20](https://www.gl-inet.com/en-us/blogs/blog/glinet-security-notice-2026-11-20)
- [RemoteToHome GL.iNet security incident 2026 analysis](https://github.com/RemoteToHome-io/gl-security-incident-2026)
- [RemoteToHome findings (router-side GoodCloud client analysis)](https://github.com/RemoteToHome-io/gl-security-incident-2026/blob/main/docs/findings.md)
- [RemoteToHome router reverse shell analysis](https://github.com/RemoteToHome-io/gl-security-incident-2026/blob/main/docs/router-reverse-shell.md)
- [RemoteToHome attacker infrastructure notes](https://github.com/RemoteToHome-io/gl-security-incident-2026/blob/main/docs/attacker-infrastructure.md)
- [GL.iNet forum: security notice thread (GL-RM1 owner report)](https://forum.gl-inet.com/t/2026-11-20-gl-inet-security-notice-goodcloud-kvm-routers/73056/79)
- [GL.iNet forum: quickly check if your KVM is under attack](https://forum.gl-inet.com/t/quickly-check-if-your-kvm-is-under-attack/73069)
- [Community detection and cleanup tool (CSA-2026-01)](https://gl-i.net/security/csa-2026-01/fix/)
- [VirusTotal: ni.sh sample](https://www.virustotal.com/gui/file/36e04e10b4667e59b0a3a25147b032dc038c5a9971a7df88be80f8882e30dd87)

## Full data

The other 8 detection rules (Splunk SPL / Microsoft KQL / Sigma) unlock with TL Creds; a free account includes daily creds: https://threadlinqs.com/?modal=signup
Indicator values unlock with TL Creds, at a lower price on Red and Purple; AI agents can query rules and IOCs through the Threadlinqs MCP server (Purple and Gold in full, 2 calls a day on a free account): https://intel.threadlinqs.com/mcp

Canonical: https://intel.threadlinqs.com/threat/TL-2026-6657
