Back to Intelligence

GL.iNet Reverse Shells on Customer Routers: Detecting and Containing Vendor-Initiated Remote Access

SA
Security Arsenal Team
December 5, 2026
11 min read

GL.iNet has publicly confirmed something that should make every network defender pause: while responding to a November security breach, the router vendor initiated reverse-shell connections to customer-owned routers — and it did so using an IP address that security researchers had already flagged as suspicious. If you operate GL.iNet hardware anywhere in your environment, this is not just a vendor transparency story. It is a live lesson in supply-chain trust, remote management plane risk, and the detection gaps that exist around network edge devices in almost every enterprise I've assessed.

In 15+ years of IR work — including supply-chain compromises where the vendor's own infrastructure became the attack path — the single hardest conversation with a client is this one: the connection you thought was legitimate vendor telemetry was actually an interactive shell. Distinguishing authorized vendor access from adversary tradecraft is now a core SOC competency, and this incident is a perfect case study in why.

What Happened

Per the reporting, GL.iNet acknowledged that during its response to a November security breach, it pushed reverse-shell connections out to customer routers. Reverse shells — where the target device initiates an outbound connection back to a controller and hands over an interactive command shell — are a staple of attacker tradecraft precisely because they bypass inbound firewall rules and NAT. The connection looks like ordinary outbound traffic.

The compounding problem: the destination IP GL.iNet used had already been flagged as suspicious by independent security researchers. That means defenders watching their egress traffic may have observed — or may still be observing — outbound connections from their routers to an infrastructure indicator that appears in threat feeds as malicious. Without vendor context, any competent SOC would (correctly) treat that as an active compromise.

GL.iNet's admission reframes those detections, but it does not eliminate the risk. Three hard truths remain:

  1. The capability exists and was exercised. The vendor's cloud management plane can deliver and execute interactive shells on fleet devices. Anything that can do that — vendor, attacker abusing vendor credentials, or compromised cloud infrastructure — is a tier-one risk surface.
  2. Attribution by IP reputation just broke. If vendor IR tooling and adversary C2 both look like "suspicious outbound connection from a router," your detection engineering must rely on behavior, not just threat intel matching.
  3. Customers were not pre-notified in a way that allowed validation. Silent remote access, even benign, destroys the chain of custody you need during a real incident.

Affected Products and Exposure

GL.iNet's consumer and small-business router lineup — the Flint, Beryl, Slate, and related travel/home router families — runs an OpenWrt-derived firmware with BusyBox userland and ties into GL.iNet's GoodCloud remote management platform. These devices are deployed far beyond home users: I routinely find them as travel routers for executives, out-of-band management gateways in branch offices, and "temporary" network bridges in OT environments that became permanent.

The exposure model here is not a single CVE — no CVE has been published in connection with this disclosure. The risk is architectural:

  • Cloud-initiated code execution on the device. If the management channel can spawn a shell, it can run anything. Session hijacking, credential theft from the cloud plane, or compromise of the vendor's IR tooling all become fleet-wide compromise vectors.
  • Egress-blind reverse shells. The router initiates the connection, so perimeter inbound rules do nothing. Most environments apply little or no egress filtering to their own network infrastructure devices.
  • Forensic contamination. Vendor-initiated shells during an active breach response muddy timelines. If you are investigating the November breach window, you now must distinguish vendor IR actions from attacker actions in the same logs.

Exploitation Status and Threat Context

There is no public exploit chain tied to this disclosure — the shells were vendor-initiated, not adversary-initiated. However, the technique itself (T1059 — Command and Scripting Interpreter, T1071 — Application Layer Protocol for C2 over egress) is among the most widely used in router and edge-device compromises I've responded to. When a vendor demonstrates that its management plane can deliver reverse shells at fleet scale, defenders must assume that capability is documented, and that motivated actors will probe for ways to invoke it without vendor authorization. Treat this as a hardening trigger, not an active-exploitation event — and act accordingly.

Detection & Response

The detections below target the observable behavior: interactive shells and shell-adjacent tooling spawned on Linux-based router/edge devices, and unexpected outbound connections from network infrastructure. These are tuned for low noise — shell-spawning patterns on embedded Linux management planes are rarely legitimate outside maintenance windows.

Sigma Rules

YAML
---
title: Reverse Shell Command Pattern on Linux Network Device
id: 8c2f4a71-3b6d-4e9a-b1c7-5f2d8e0a9b34
status: experimental
description: Detects common reverse shell invocation patterns (bash/sh with /dev/tcp, nc with -e, socat exec) on Linux-based routers and edge devices. GL.iNet confirmed pushing reverse shells to customer routers; this rule surfaces the technique regardless of origin.
references:
  - https://www.bleepingcomputer.com/news/security/glinet-admits-using-reverse-shells-on-routers-during-breach-response/
  - https://attack.mitre.org/techniques/T1059/004/
author: Security Arsenal
date: 2026/02/10
tags:
  - attack.execution
  - attack.t1059.004
  - attack.command_and_control
  - attack.t1071
logsource:
  category: process_creation
  product: linux
detection:
  selection_devtcp:
    CommandLine|contains:
      - '/dev/tcp/'
      - '/dev/udp/'
  selection_nc:
    Image|endswith:
      - '/nc'
      - '/ncat'
      - '/netcat'
    CommandLine|contains:
      - ' -e '
      - ' -c '
  selection_socat:
    Image|endswith: '/socat'
    CommandLine|contains:
      - 'EXEC:'
      - 'exec:'
  selection_shell_redirect:
    CommandLine|contains:
      - 'sh -i'
      - 'bash -i'
      - 'ash -i'
  condition: 1 of selection_*
falsepositives:
  - Vendor-initiated remote support sessions (validate against vendor advisories and change records)
  - Legitimate netcat use by network administrators during troubleshooting
level: high
---
title: Interactive Shell Spawned by Non-Standard Parent on Embedded Linux
id: 2e7b9c05-1f4a-4d83-a6e2-9c1b5d7f3a08
status: experimental
description: Detects interactive shells (sh/ash/bash) spawned by non-standard parents such as web servers, cloud management agents, or upstart/procd services on router-class Linux devices — consistent with management-plane-driven remote access or web-exploit shell drops.
references:
  - https://www.bleepingcomputer.com/news/security/glinet-admits-using-reverse-shells-on-routers-during-breach-response/
  - https://attack.mitre.org/techniques/T1059/
author: Security Arsenal
date: 2026/02/10
tags:
  - attack.execution
  - attack.t1059.004
logsource:
  category: process_creation
  product: linux
detection:
  selection_child:
    Image|endswith:
      - '/sh'
      - '/ash'
      - '/bash'
  selection_parent:
    ParentImage|endswith:
      - '/httpd'
      - '/uhttpd'
      - '/lighttpd'
      - '/nginx'
      - '/glcloud'
      - '/gl-cloud'
      - '/goodcloud'
      - '/procd'
  condition: selection_child and selection_parent
falsepositives:
  - CGI scripts legitimately invoked by the router web UI (uhttpd spawning sh for diagnostics pages)
  - Vendor cloud agent maintenance tasks — baseline per device model and correlate with vendor notices
level: medium

KQL — Microsoft Sentinel Hunt

This query assumes router syslog (via a collector into Syslog) and/or firewall egress logs (via CommonSecurityLog) are ingested. It hunts both shell-pattern process execution and outbound connections from network-device subnets to untrusted destinations. Replace the DeviceSubnet value with your router/infra address ranges.

KQL — Microsoft Sentinel / Defender
let DeviceSubnet = dynamic(["10.0.0.0/24", "192.168.8.0/24"]);
let ShellPatterns = dynamic(["/dev/tcp/", "bash -i", "sh -i", "ash -i", "nc -e", "ncat -e", "socat", "EXEC:"]);
union isfuzzy=true
  (Syslog
   | where TimeGenerated > ago(14d)
   | where ProcessName has_any ("sh", "ash", "bash", "nc", "ncat", "netcat", "socat")
      or SyslogMessage has_any (ShellPatterns)
   | project TimeGenerated, Computer, ProcessName, SyslogMessage, SourceIP=HostIP
   | extend DetectionType = "ShellPatternInSyslog"),
  (CommonSecurityLog
   | where TimeGenerated > ago(14d)
   | where DeviceProduct has_any ("firewall", "ASA", "Fortinet", "PAN", "pfSense") or isnotempty(DestinationPort)
   | where ipv4_is_in_range(SourceIP, tostring(DeviceSubnet[0])) or ipv4_is_in_range(SourceIP, tostring(DeviceSubnet[1]))
   | where DestinationIP !startswith "10." and DestinationIP !startswith "192.168." and DestinationIP !startswith "172.16."
   | where DestinationPort in (22, 23, 4444, 5555, 6666, 6667, 8443, 9001) or DestinationPort > 30000
   | summarize ConnectionCount=count(), Ports=make_set(DestinationPort) by SourceIP, DestinationIP, TimeGenerated
   | extend DetectionType = "InfraDeviceEgressToRarePort")
| order by TimeGenerated desc

Velociraptor VQL — Fleet Hunt on Linux Endpoints and Router-Adjacent Hosts

Use this artifact against enrolled Linux clients (and any OpenWrt-based appliances running the Velociraptor client) to find live outbound connections owned by shell or tunneling processes — the runtime signature of an active reverse shell.

VQL — Velociraptor
-- Hunt for established outbound connections owned by shell/tunneling processes
-- indicative of reverse shells on Linux routers and edge devices
LET suspicious_procs = ('sh', 'ash', 'bash', 'dash', 'nc', 'ncat', 'netcat', 'socat', 'openssl')

SELECT Pid,
       Name AS ProcessName,
       CommandLine,
       Username,
       Laddr.IP AS LocalIP,
       Laddr.Port AS LocalPort,
       Raddr.IP AS RemoteIP,
       Raddr.Port AS RemotePort,
       Status
FROM netstat()
WHERE Status = 'ESTABLISHED'
  AND Name in suspicious_procs
  AND NOT Raddr.IP =~ '^(10\\.|192\\.168\\.|172\\.(1[6-9]|2[0-9]|3[01])\\.|127\\.)'

Remediation and Verification Script

Run this on GL.iNet/OpenWrt-based routers (via local SSH session you initiated) to audit for active shells, unexpected listeners, rogue authorized keys, and to disable the vendor cloud management agent if your risk model does not require it.

Bash / Shell
#!/bin/sh
# Security Arsenal - GL.iNet / OpenWrt Reverse Shell Audit & Hardening
# Run locally on the router. Review output before making changes.

echo "=== [1] Active outbound connections from shell/tunnel processes ==="
for pid in $(ls /proc | grep -E '^[0-9]+$'); do
  if [ -r "/proc/$pid/cmdline" ]; then
    cmd=$(tr '\0' ' ' < /proc/$pid/cmdline)
    case "$cmd" in
      *"/dev/tcp/"*|*"nc -e"*|*"ncat -e"*|*socat*EXEC*|*"sh -i"*|*"bash -i"*|*"ash -i"*)
        echo "SUSPICIOUS PID $pid: $cmd" ;;
    esac
  fi
done

echo "=== [2] All established non-LAN connections ==="
netstat -tnp 2>/dev/null | grep ESTABLISHED | grep -vE '127\.0\.0\.1|192\.168\.|10\.|172\.(1[6-9]|2[0-9]|3[01])\.'

echo "=== [3] Unexpected listening services ==="
netstat -tlnp 2>/dev/null | grep LISTEN

echo "=== [4] SSH authorized keys (verify every entry) ==="
cat /etc/dropbear/authorized_keys 2>/dev/null || echo "No dropbear keys file"

echo "=== [5] GL.iNet cloud management processes ==="
ps w | grep -iE 'glcloud|goodcloud|gl-cloud|rtty|frpc|zerotier|tailscale' | grep -v grep

echo "=== [6] Recent logins and log review ==="
logread 2>/dev/null | grep -iE 'shell|login|dropbear|authpriv' | tail -50

echo "=== [7] HARDENING (uncomment to apply) ==="
# Disable and remove GL.iNet cloud management agent if not operationally required
# /etc/init.d/glcloud stop 2>/dev/null
# /etc/init.d/glcloud disable 2>/dev/null
# Block all egress from the router itself except NTP/DNS at your perimeter firewall instead:
#   uci set firewall.@defaults[0].forward='REJECT'  # only if routing role permits
# Disable WAN-side admin and dropbear if exposed:
#   uci set dropbear.@dropbear[0].Interface='lan'
#   uci commit dropbear && /etc/init.d/dropbear restart

echo "Audit complete. Escalate any SUSPICIOUS findings to your IR team before remediation."

Remediation

  1. Update firmware now. Pull the latest firmware for your specific GL.iNet model directly from the official site (dl.gl-inet.com) — not third-party mirrors — and verify the published hash. Review the release notes and the vendor's breach disclosure for any IR-tooling artifacts left behind.
  2. Decide on cloud management deliberately. If GoodCloud remote management is not an operational requirement, disable it at the device and block the device from reaching GL.iNet cloud endpoints at your egress firewall. If it is required, restrict it to managed devices and alert on any new device enrollments.
  3. Apply egress filtering to infrastructure devices. Your routers, switches, and APs should talk outbound only to a defined allowlist: NTP, DNS resolvers you control, firmware update endpoints, and your syslog/SIEM collector. Everything else should be denied and alerted. This one control neutralizes the entire reverse-shell-by-egress technique.
  4. Baseline and alert on outbound flows from network-device subnets. In Sentinel or your SIEM, alert when any router/AP/switch IP initiates a connection to a destination it has not touched in the prior 30 days. Low volume, high fidelity.
  5. Audit the November breach window. If you were investigating GL.iNet devices for the November breach, rebuild your timeline with the knowledge that some shell activity was vendor IR. Do not close attacker-attributed findings without confirming which sessions GL.iNet claims. Demand from the vendor: timestamps, source IPs, and commands executed per device.
  6. Rotate credentials and keys. Any router that received a vendor-initiated shell should have its admin credentials, Wi-Fi PSKs, VPN keys/wireguard configs, and any stored certificates rotated. An interactive shell has access to all of it.
  7. Segment these devices. GL.iNet-class routers should never hold a flat path into server or user VLANs. If you find them in OT or branch environments as unmanaged bridges, that is a finding for your next architecture review.
  8. Update your vendor-risk register. This disclosure is a documented example of a vendor exercising remote code execution capability over customer fleet devices without prior per-session consent. If your contracts and DPAs do not address vendor-initiated remote access, your legal and procurement teams need this incident in front of them.

The Bigger Lesson

I have led IR engagements where the "attacker" in the logs turned out to be the vendor's support tooling — and engagements where the vendor's support tooling was the attacker's way in. From the SOC chair, these look identical until proven otherwise. Build detection that fires on the behavior (shell spawned, egress established, non-standard parent), and build process that lets you resolve attribution quickly: vendor contacts, change records, and contractual notification requirements for remote access. When the next vendor does this — and another one will — you want to be the team that detected it in minutes and validated it in an hour, not the team that learned about it from a news article.

Related Resources

Security Arsenal Incident Response Services AlertMonitor Platform Book a SOC Assessment incident-response Intel Hub

Is your security operations ready?

Get a free SOC assessment or see how AlertMonitor cuts through alert noise with automated triage.