Dev.to Security 🔐 Cybersecurity 👁 0 📖 6 min read

GL.iNet GoodCloud Compromise: Malware Deployed to Routers and KVMs via Cloud

1. Basic Information Article Title: GL.iNet Router and KVM Security Incident Source: GL.iNet Published Date: November 20, 2026 Collected Date: 2026-11-23T07:37:56+09:00 Original URL: Primary Source Related Sour

1. Basic Information

  • Article Title: GL.iNet Router and KVM Security Incident
  • Source: GL.iNet
  • Published Date: November 20, 2026
  • Collected Date: 2026-11-23T07:37:56+09:00
  • Original URL: Primary Source
  • Related Sources: BleepingComputer technical report, GL.iNet Official KVM Notice
  • Related CVEs: None
  • Affected Products: GL.iNet routers, GL.iNet KVM devices, GoodCloud
  • Severity: Critical (Author's response priority)
  • Reason for Response Priority: Malware and reverse shells with root-equivalent privileges were deployed through a cloud remote management vulnerability, and potential spread to computers connected behind KVM devices is under investigation. Previously infected devices remain compromised even after the cloud-side path is blocked.

2. Summary

GL.iNet announced that attackers exploited a cloud remote management vulnerability to deploy malware on some routers and KVM devices. The official notice advises applying model-specific security firmware or performing a factory reset if infection is confirmed, while community investigations recommend reflashing without keeping settings because malicious files may remain after updates that preserve configuration.

3. Attack Flow

Official Confirmation of Cloud Compromise and Behavior of ni.sh (Specific Delivery Path and Relationship to Reverse Shell Unconfirmed)

  1. Attackers exploit a vulnerability in GL.iNet cloud remote management.
  2. A public investigation of another KVM device reported downloading ni.sh and payloads, but the intrusion and delivery path is unconfirmed and has not been confirmed as a continuous path from step 1.
  3. The script downloads gl-helper and gb, and establishes persistence using a startup script and a scheduled task.
  4. The installer places an SSH public key and uses a modified netstat to hide connections to 66.245.219[.]252. A root reverse shell to 170.39.226[.]219 was observed in a separate public investigation, and its relationship to the same infection procedure is unconfirmed.

4. Attacker Location and Execution Environment

  • Remote attacker able to reach the GL.iNet cloud remote management service
  • Executes commands with root-equivalent privileges on the router or KVM device after compromise

5. Visibility for Victims and Administrators

Victims

  • Even if network functions continue to work, the device may be abused as a reverse shell or proxy.
  • Computers connected to the KVM should also be investigated.

Administrators

  • Observable as a spoofed crond process, unknown executables, modified netstat, SSH keys, and outbound nc connections.

6. Conditions for Success and Failure

Conditions for Success

  • The device was connected to the vulnerable GL.iNet cloud remote management at the time of the attack
  • The cloud was able to distribute commands or payloads to the device
  • The device was able to make outbound connections to the C2 or payload host

Conditions for Failure / Mitigation

  • Blocking the cloud-side attack path (prevents new infections)
  • Applying model-specific security firmware
  • Reflashing suspicious devices without keeping settings to remove known persistence
  • Rotating GoodCloud, SSH, and downstream credentials

7. Impact Upon Success

  • Root-level reverse shell and remote command execution on routers and KVM devices
  • Persistence via startup scripts and cron, plus modification of administrative tool output
  • Potential spread to computers connected behind KVM devices
  • Potential exposure of network traffic, credentials, and access keys

8. Observable Logs

  • Email: Nothing notable
  • Proxy / SWG / DNS: Downloading ni.sh and payloads from 66.245.219[.]252 / outbound connection to 170.39.226[.]219
  • Endpoint / EDR: crond -i /tmp/.log / gl-helper, gb, modified netstat, unknown SSH authorized key / addition of startup scripts and scheduled tasks
  • Identity / IdP: Nothing notable
  • SaaS / Cloud: Nothing notable
  • Network: nc reverse shell from router/KVM to 170.39.226[.]219 / repeated communications from KVM to many residential IPs and the TRON API (purpose unconfirmed)

9. Determining Compromise Success

  • Initial Execution Confirmed: Public information: GL.iNet confirmed malware deployment via a cloud vulnerability. Multiple users and researchers observed a root reverse shell, ni.sh, payloads, and persistence. A candidate command injection in AstroWarp/SD-WAN has not been confirmed as the attack path. Scope: Some routers and KVM devices confirmed affected by GL.iNet, and devices analyzed in public investigations.

Separate attempts, execution, privilege acquisition, information access, and follow-on compromise, and do not determine a successful compromise from a single IOC or request alone.

10. Investigation Playbook

  • Trigger: Official IOC or unknown outbound connection on a GL.iNet device
  • Initial Checks: Check model, firmware, GoodCloud connection, process list, and file hashes / preserve scanner reports, network logs, configuration, and firmware image
  • Endpoint: Check for spoofed crond, gl-helper, gb, netstat, startup/cron, and SSH authorized_keys / investigate processes, credential access, and network logs on computers connected behind KVM
  • Identity / Cloud: Rotate GoodCloud accounts, SSH keys, device tokens, and downstream credentials
  • Follow-on Activity: Track internal LAN scanning, proxy usage, operations via KVM, and credential reuse
  • Containment: Isolate the device from the network, reflash without keeping settings after preserving evidence / block C2 and payload IOCs
  • Classification: Separate cloud access, payload execution, persistence, reverse shell, and downstream compromise

11. Defense and Detection Ideas

  • Single-Event Detection: crond -i /tmp/.log / modified netstat or unknown SSH key
  • Event Correlation: Inference: Correlate cloud command -> ni.sh download -> gl-helper/gb execution. Also investigate reverse shells to 170.39.226[.]219 separately, without assuming they are part of the same chain.
  • Threat Hunting: Search across the GL.iNet fleet for 66.245.219[.]252, 170.39.226[.]219, gl-helper, and gb
  • Logging Gaps: Process/file auditing on embedded devices and KVM operation logs / GoodCloud-side tenant access logs
  • Priority Controls: Firmware updates, minimizing cloud management, egress restrictions, re-imaging without keeping settings, credential rotation

12. Facts / Inference / Hypothesis

Facts

  • GL.iNet confirmed that a vulnerability in its cloud remote management services was exploited and malicious software was deployed to some routers and KVM devices. The cloud-side attack path has been blocked, but malware is not removed from already infected devices.
  • The official IOC is the running process "crond -i /tmp/.log". Community scanners additionally check for known malware files, suspicious processes, modified system utilities, and persistence settings, but complete detection is not guaranteed.
  • Researchers confirmed an nc connection from a root-level reverse shell to 170.39.226[.]219, and on another KVM device, logs were shared showing ni.sh and payloads downloaded from 66.245.219[.]252.
  • ni.sh identifies the GL.iNet model to download gl-helper and gb, establishes persistence via startup scripts and scheduled tasks, replaces netstat to hide connections to 66.245.219[.]252, and installs an SSH public key.
  • A candidate command injection in the GoodCloud client's AstroWarp/SD-WAN handler that passes cloud-supplied values to a root shell command has been reported, but GL.iNet has not confirmed that this vulnerability was used in the attacks.

Inference

  • Because the compromised management cloud path combines with root persistence on the device, keeping settings during a normal firmware update may leave malicious files behind.

Hypothesis

  • None

13. MITRE ATT&CK Mapping

ID Technique Confidence Basis
T1190 Exploit Public-Facing Application high A vulnerability in cloud remote management was exploited.
T1105 Ingress Tool Transfer high ni.sh downloads gl-helper and gb from an external server.
T1053.003 Scheduled Task/Job: Cron high Scheduled tasks and startup scripts restart the malware.
T1098.004 Account Manipulation: SSH Authorized Keys high The installer places an SSH public key.
T1562.001 Impair Defenses: Disable or Modify Tools high Replaces netstat to hide C2 connections from display.

14. Unknowns and Further Investigation

  • Specific root cause of the cloud vulnerability and the attacker's initial access method
  • Total number of affected devices and whether data was stolen
  • Extent of successful compromise on computers connected behind KVM devices
  • Whether the candidate AstroWarp/SD-WAN command injection was used in actual attacks

15. Impact on SOCs and Organizations

Organizations using GL.iNet for branch routers, remote KVM devices, or lab and edge environments should inspect device processes, files, and outbound connections, re-image suspicious devices without keeping settings, and rotate credentials.

16. Summary by Audience

  • SOC: Correlate crond -i /tmp/.log, 170.39.226[.]219, 66.245.219[.]252, modified netstat, and unknown SSH keys.
  • Administrators: Apply model-specific security firmware, reflash suspicious devices without keeping settings after preserving evidence, and rotate GoodCloud, SSH, and downstream credentials.
  • Users: Ask the administrator of the affected router or KVM device to update firmware and check for compromise, and separately inspect PCs connected behind the KVM.
📰 Read the original article on Dev.to Security

Originally published by Dev.to Security. Aggregated on AIWithGhost for educational purposes — full credit and traffic to the original publisher.