GL.iNet admits using reverse shells on routers during breach response

Router attack

GL.iNet has confirmed it initiated reverse-shell connections to customer routers while responding to a November security breach, using an IP address security researchers had previously flagged as suspicious.

The disclosure raises questions about how the networking equipment manufacturer remotely accessed customer-owned devices, whether users authorized the activity, and whether the connections exposed devices to additional security risks.

As BleepingComputer previously reported, hackers exploited a vulnerability in GL.iNet's GoodCloud remote management platform in November to infect customers' routers and KVM devices with custom malware.

image

GoodCloud lets customers remotely manage supported devices, including computers and servers connected to GL.iNet's KVM products.

Following the disclosure, customers and security researchers discovered malware infections on compromised routers, as well as reverse shells that connected to the IP address 170.39.226[.]219 with root privileges.

Researchers at RemoteToHome Consulting also reported suspicious activity on 152 of 183 routers they examined, including 24 with root-level reverse shells, 47 with an older persistent backdoor, and 81 showing evidence of remote command execution.

At the time, the reverse shells were believed to be associated with the attackers behind the GoodCloud compromise.

GL.iNet behind the reverse shells

However, in a December 4 incident update, GL.iNet acknowledged that connections to 170.39.226.219 between November 20 and November 21, including reverse shells, were part of its own investigation and remediation efforts.

Reverse shells allow a remote computer to establish a command-line connection to another device, potentially giving the remote user full control over its operating system.

"Some users reviewing their device logs may see outbound investigation connections, including reverse-shell connections," the company said.

"We have confirmed that the activity matching these details was conducted as part of our investigation and remediation of this incident."

The company said the connections occurred between November 20 at 19:13 UTC and November 21 at 12:57 UTC, using specific TCP ports. It also confirmed that port 5088 was used for device repair.

GL.iNet acknowledged that these connections may have triggered security alerts and caused customers and researchers to mistakenly identify its remediation activity as malicious.

"We apologize for the confusion and concern this may have caused. We should have communicated this information earlier," the company said.

The company also provided new details about the original breach, confirming that attackers exploited a permission configuration error in GoodCloud's messaging service to send unauthorized commands to connected devices.

GL.iNet says it fixed the cloud-side vulnerability on November 20 at 05:44 UTC and began additional remediation efforts targeting affected routers later that day.

However, in an updated analysis, RemoteToHome Consulting claims GL.iNet exploited the same AstroWarp/SD-WAN command injection vulnerability the threat actors used to establish root-level reverse shells on customers' routers during its incident response.

According to the researchers, these connections were unencrypted, potentially allowing someone who intercepted the traffic to monitor commands or gain control over affected devices.

RemoteToHome also says it demonstrated in laboratory testing that an attacker who could redirect the connections could obtain root-level access to a router.

The researchers reported that some routers continued attempting to establish these connections for days after GL.iNet's stated remediation period ended.

However, RemoteToHome says it has found no evidence that third parties actually intercepted or hijacked the connections.

The findings raise questions about whether GL.iNet obtained permission from customers before remotely accessing their devices and executing commands.

While GL.iNet has confirmed they were behind the reverse shells, the company has not explained how it initiated the connections, what commands it executed, how many customer devices it accessed, or whether device owners authorized the activity.

The company also revealed that some KVM devices had GoodCloud services enabled by default, even before being linked to a cloud account, raising additional questions about which devices may have been exposed.

GL.iNet says it has engaged an independent security firm to review its firmware, cloud services, and source code, and is arranging a separate forensic investigation through legal counsel.

As the investigation continues, the company has yet to disclose how many devices were compromised in the original attack or determine whether computers connected to infected KVM devices were also accessed.

In the meantime, GL.iNet has released security firmware updates for affected routers and KVM devices and recommends that customers update their firmware and change potentially exposed credentials. Those who suspect their devices were compromised should reinstall the firmware without retaining existing settings.

BleepingComputer previously contacted GL.iNet about the incident and sent further questions today but did not receive a response.

3,000 AI builds later, ask us anything

On December 15th, join Eoin Hinchy, our co-founder and CEO; Martin Moroney, our Head of AI Transformation; and Christina Troy, our Sr. Manager, IT for an open conversation about what worked, what didn't, and what we learned along the way.

Bring your questions and get candid insights!

Register and ask your question

Dive deeper

Free tools to verify and analyze what this article covers:

source: BleepingComputer