This is community work, not a GL.iNet tool. GL.iNet has not reviewed or endorsed it. Use it at your own risk.
Run it before you restart, reset or update the device. Some traces exist only until the restart, and the KVM firmware 1.10.2 for the RM1PE deletes the malware’s files at boot without keeping a copy.
It does not replace a factory reset or GL.iNet’s security firmware. The script finds and removes only the traces we know of.
In a business network, wait. Talk to your cyber insurer or incident response provider before you change or reset the device. Why
Checked before? Check again
The script changes as the community learns more. A device that an early version called clean may not be. The first line of its output shows the version you ran. If it is older than the one below, run it again : it costs a minute and changes nothing on the device.
Current version: shown in the first line of the script’s output
2.45 adds the model and its firmware version to the code of the result page. The page then says whether newer firmware exists for the device.
2.44 makes the line with the address of the result page stand out, in a way that can be read in dark and light terminal themes.
2.42 prints the result last, after the GoodCloud advice, and keeps the question the anonymous report to a few lines. Typing v there shows everything that would be sent.
2.41 prints the address of the result page in a form short enough to type: csa.gl-i.net and nine characters. The long addresses of 2.39 and 2.40 still work.
2.40 shows the address of the page that explains the result directly under the verdict. Before, it came last and was missed by anyone who stopped at the question the report.
2.39 prints an address with every result. The page behind it explains the result in plain words, in English, German and Chinese.
2.38 no longer calls a device infected because a copy of the script itself is saved on it, for example in /etc/config. Earlier versions did.
2.37 checks that the libraries its trusted tools load come from the firmware too, no longer runs a firewall or download tool that is not the firmware’s own, and shows what it is doing while it builds the evidence archive.
2.36 explains below an ATTACKED verdict what it means and what it does not: a command ran, but which one and what it did is not known. It may have been a first scan with nothing installed yet.
2.35 shows the first and the last call of the cloud handler that the attack came through, where the file system keeps both times, recognises the older backdoor’s known second program by its fingerprint, marks file times from a router whose clock was not set yet, and takes a note of your own for the report with --note.
2.34 no longer shows GoodCloud’s remote SSH and web access as on when GoodCloud itself is off. The stored setting is on by default on many firmware versions.
2.33 says at the end to check the GoodCloud switch again after every firmware upgrade: one owner reports that an upgrade switched it back on.
2.32 no longer calls a device infected because it blocks the older backdoor’s server names, says under a clean result when the device last restarted and what that means, and leaves your own autostart files alone when only a remote shell was found.
2.28 finds the older backdoor’s loader under any name, by looking for compiled Lua in the writable part of the system, and counts gl-inet.top as a server of the malware.
2.22 finds the malware in the other directories its installer can use, its line in the running crontab, an SSH key it adds, and the remote terminal service set to the attacker’s server.
2.18 no longer reports an updated Tailscale as an infection. Versions 2.16 and 2.17 did.
2.17 finds the trace that a command from the attacker ran, also after a restart. Earlier versions called such a device clean once the firewall rule was gone.
2.16 no longer skips changed files that belong to the firmware’s own packages. Before, the older backdoor could go unseen on a real device.
2.14 finds the older backdoor (urandom_seed, ulogd, monitord). Earlier versions listed its files without saying what they are.
Log in to the device over SSH as root. You can read the script ↗ first.
Check Only reads and prints a report. It changes nothing. root@device # curl -fsSL -o gl-helper-triage.sh # sh gl-helper-triage.sh # wget -q -O gl-helper-triage.sh # sh gl-helper-triage.sh
Only reads and prints a report. It changes nothing.
Save the evidence Writes an archive to /tmp, which is in RAM, so copy it to your computer before you reboot. It contains your configuration, possibly with Wi-Fi and VPN keys, so don’t post it anywhere. root@device # sh gl-helper-triage.sh --archive
Writes an archive to /tmp, which is in RAM, so copy it to your computer before you reboot. It contains your configuration, possibly with Wi-Fi and VPN keys, so don’t post it anywhere.
Clean up Only if the check found something. Saves the evidence again, stops the malware, removes its files and autostart entries, then checks again. root@device # sh gl-helper-triage.sh --fix
Only if the check found something. Saves the evidence again, stops the malware, removes its files and autostart entries, then checks again.
On an infected device netstat is replaced by a script that hides the malware’s connections. The script never calls it and reads the list of connections from the system directly.
The short way: at the end, under the verdict, the script prints an address like csa.gl-i.net/#AA006011D-2PJ2W . Open it in a browser, or type it if you cannot click it; capitals do not matter. The page explains what was found, what that means and what to do, in plain words, in English, German and Chinese, and says whether newer firmware exists for your model. The code stands for the result, the model and its firmware version. Nothing in it tells your device from another of its kind, and opening the address sends nothing from the device. You can post it in the forum as it is.
The rest of this section is for those who want to read the output itself.
INFECTED The malware’s files, a remote shell, GL.iNet’s indicator process or the older backdoor were found. Save the evidence and follow the steps under “Afterwards”.
ATTACKED A command sent through GoodCloud ran on the device as root, but no malware files and no remote shell are there now. Which commands ran, and what they did, cannot be told afterwards. It may have been a first scan with nothing installed yet, or something not known so far: the one such command that was recovered only looked for the malware, others opened a remote shell. If the script names traces of the malware’s installer instead, the installer was at work and its files are gone. Either way, treat the device like an infected one: every key and password on it may have been read.
no gl-helper indicators found None of the known traces. Below it the script says when the device last started. If that was after the attacks began, a remote shell and what it left in memory are gone, so the result says little the time before.
Exit codes: 0 clean, 1 traces found, 2 fixed and clean, 3 fix incomplete, 4 error.
The traces come from the cleanup GL.iNet shipped in the KVM firmware RM1PE 1.10.2. That cleanup runs when one of these files exists:
/etc/glinet/.cache/gl-helper
/etc/glinet/.cache/gb
/etc/config/.gl/gl-helper
A forum user has since read the malware’s installer ( post in GL.iNet’s forum ↗ ). From it the script also knows the directories the installer falls back to ( /etc/gl_nas/.cache , /userdata/.gl , /overlay/.gl , /tmp/.gl ), its other files such as watch.sh and run.sh , its line in the running crontab, an SSH key named gl-agent , the remote terminal service set to the attacker’s server, and its two servers 65.20.71.131 and 66.245.219.252 .
It also runs GL.iNet’s quick check for a running process crond -i /tmp/.log , and looks for the remote shell that forum users and RemoteToHome Consulting found on GL-AXT1800 routers: a process that uses /tmp/f and connects to 170.39.226.219 . GL.iNet staff says to treat a router with such a shell as compromised. The pipe /tmp/f counts too: it stays after the shell was stopped, until the restart. The script also runs the further checks staff recommends: processes such as nc , socat or /bin/sh -i , and connections held by a shell.
Every running program is compared with the read-only firmware image. A program that was started from /tmp , is not part of the firmware or differs from it is listed as REVIEW , or as INFO when a package installed it. All of this only shows what is running right now.
The report lists the open network connections with their program, and every line of the firewall configuration that is not in the firmware image. Your own port forwards appear there too. It also shows the running firewall rules that redirect traffic.
The script also finds system tools that were replaced (for example netstat ), processes started from these paths, and autostart entries that point to them: crontabs, rc.local , init scripts and the lists of files a firmware update keeps. All details are in the README ↗
An older backdoor, found by forum users
While looking for traces of 20 November, users of GL.iNet’s forum found a second backdoor that is not part of GL.iNet’s notice, on routers of many models, on some since September 2025 ( ehidle’s report ↗ , what is known so far ). GL.iNet’s quick check does not see it. The script reports it with its own verdict when it finds
/etc/init.d/urandom_seed with extra lines that mention monitord or ulogd
/bin/ulogd , or /usr/bin/monitord as a copy of the Lua interpreter
a running monitord or ujaild ; the known second program is recognised by its fingerprint
its two files added to the list a firmware update keeps ( /lib/upgrade/keep.d/netifd ). Not every device with the backdoor has this
compiled Lua in the writable part of the system that no package installed: with the loader’s function names in it, the loader under another name
one of its server names in the configuration: adguardns.com , adguardns.org , lede-openproject.org , adxinsight.com , openwrt-project.org . None of them belongs to AdGuard or OpenWrt
--fix does not remove this backdoor. Its second part runs in memory only and nobody has taken it apart yet, so a cleanup could not promise a clean device. Install the firmware again with “keep settings” off, and do not restore a backup taken from that device.
Keep the evidence archive.
KVM: install GL.iNet’s security firmware. Only the 1.10.2 build for the RM1PE removes the malware’s files by itself; the builds for the RM1 and RM1V2 do not.
Router: update without keeping settings . The malware hides in /etc/config , which an update with kept settings preserves.
A factory reset wipes the writable part of the system. RemoteToHome found that root can also write to the image a reset restores from, so a reflash without kept settings is safer. Why
Check the computer attached to a KVM, and the devices behind a router.
Change the device password, your GL.iNet cloud account password and your SSH keys. Export the device log from your GoodCloud account first: it may show the attacker’s command. Why
If the device was hit, everything it held a key for is exposed too. Remove the router’s VPN profile on the server or with the VPN provider and create a new one, and remove the router’s SSH keys from every machine that trusts them. RemoteToHome’s recovery steps ↗
KVM: after an update that keeps settings, the password, the SSH keys and everything under /etc/kvmd/user are still the old ones. Change them and look for keys and scripts you did not add.
Advisory CSA-2026-01 What happened and what GL.iNet recommends
What happened and what GL.iNet recommends
RemoteToHome’s findings on the incident ↗ How the remote shell got in, what the KVM firmware does, and how to recover a device
How the remote shell got in, what the KVM firmware does, and how to recover a device
Source code and README on GitHub ↗ All options, the script for running it from your computer, tests and limits
All options, the script for running it from your computer, tests and limits
Report a problem ↗ Bugs and false alarms. Never attach an evidence archive.
Bugs and false alarms. Never attach an evidence archive.
Thanks to RemoteToHome Consulting for the analysis of the remote shell and of the KVM firmware, for the recovery steps and for how to read the firmware build, to the forum users kosrkosr and TakashiSasaki for the first reports of the shell, to AdamK for the connection checks, and to everyone who sent a report or posted their output.
The full story
This article is one source in a clustered incident — the cluster page carries the summary, timeline and every other outlet covering it.
