FlyLegit DDoS-for-hire botnet infects Linux servers and IoT devices via weak Telnet passwords and CVE-2018-10561
A DDoS-for-hire botnet called FlyLegit is compromising Linux servers and IoT devices through weak Telnet credentials and flaws in old routers, including CVE-2018-10561. The name comes from the operators' Telegram group (t.me/flylegit), which they use to promote the service and recruit customers. CNCERT and NSFOCUS Fuying Security Lab reported continued spread in September 2026. Between September 3 and 8, researchers confirmed about 2,015 active bots in mainland China. The family has been updated repeatedly since it first appeared in late 2025. This record is based on the article alone, because no web research was done.
Entenda a falha
A vulnerabilidade
CVE-2018-10561 is an authentication bypass in Dasan GPON home routers (CVSS 9.8, listed by CISA as exploited in the wild). The articles do not detail what the attacker needs beyond network reach to the device, nor the affected and fixed versions. The CNCERT report attributes the flaw to Realtek, so check both vendor names when inventorying devices. The FlyLegit botnet uses it, along with weak Telnet passwords, to take over routers, IoT devices and Linux servers and add them to a DDoS-for-hire network. CISA advises disconnecting end-of-life Dasan GPON devices.
Como funciona
The botnet scans for hosts with weak Telnet passwords or vulnerable routers, including those affected by CVE-2018-10561. Once it gets in, a script usually named cat.sh downloads, with wget or curl, the binary matching the architecture (named iran plus an architecture tag). The binary checks in with the C2, sending a group field, then keeps a ping-pong heartbeat and receives commands as key=value strings. It persists via /etc/init.d and /etc/rc.local and kills rival processes. The articles do not describe the internals of the authentication bypass itself.
Por que é vulnerável
The infections rest on weak or default Telnet credentials, management services exposed to the internet, and an authentication bypass in old Dasan GPON routers that are often end of life and unpatched. The articles do not explain the code-level root cause of CVE-2018-10561. Remediation advice is to disable unneeded Telnet and SSH, replace default or reused passwords, patch firmware and retire unsupported devices.
Como foi descoberta
CNCERT and NSFOCUS Fuying Security Lab flagged the FlyLegit botnet's continued spread in September 2026. Between September 3 and 8 they confirmed about 2,015 active bots in mainland China. The family first appeared in late 2025 and has been updated repeatedly. The articles do not say how CVE-2018-10561 itself was found; they only note the NVD entry and CISA's listing as exploited in the wild.
PoC existente, privada
O exploit existe, mas quem o tem não o publicou.
No article mentions a published proof of concept. The flaw is, however, actively exploited in the wild by FlyLegit, whose version 4 (July 2026) added a "selfrep realtek" scanning command. The exploit is seen only in attacks, with no published copy, so any exposed vulnerable device should be treated as urgent to patch or disconnect.
Explicação gerada por IA a partir da matéria e dos artigos, em 02/12/2026 08:16.
Exploit público
Há código de exploração publicado no Exploit-DB para CVE-2018-10561. O código não é reproduzido aqui: o link leva à fonte, e a explicação foi escrita pela IA a partir do arquivo publicado.
-
GPON Routers - 'images/' Authentication Bypass / 'dest_host' Command Injection
This short shell script abuses two flaws in Dasan GPON home routers. An authentication bypass lets unauthenticated requests reach the router's web management pages, and the ping diagnostic form passes its host field to the system without sanitizing it, so commands are injected. The attacker only needs network access to the router's web interface and a vulnerable firmware, with no credentials or user interaction. It runs arbitrary commands on the device, then reads the output back from the diagnostics page. It is a simple but working exploit, and the flaws were widely abused by botnets.
Detalhes técnicos
- Spread: scanning for weak Telnet passwords, plus exploitation of flaws such as CVE-2018-10561. The NVD describes this as an authentication bypass in Dasan GPON routers, with CVSS 9.8, and CISA lists it as exploited. The CNCERT report attributes it to Realtek.
- Payloads: binaries named "iran" plus an architecture tag (for example iran.x86_64), fetched by a script usually named cat.sh using wget or curl. The script passes a runtime argument that fills the "group" field in the check-in packet (default: "default").
- Infrastructure: 68 payload-hosting addresses and 900 download URLs, linked to 40 C2 nodes. The C2 nodes sit in nearly 10 countries, mainly Germany (43%) and the Netherlands (28%). Ports seen are 7080, 8060 and 7777.
- Capabilities: DDoS floods (TCP, SYN, HTTP, UDP, UDP-plain, ICMP, and GRE in v4), self-update, bind shell (!openshell) and reverse shell, and command execution (!shellcmd). Version 4 (July 2026) added the "selfrep telnet" and "selfrep realtek" scanning commands. Early builds used ChaCha20 for C2 traffic, while the latest sends plaintext.
- Persistence: /etc/init.d and /etc/rc.local. The malware kills rival processes.
Remediação
- Disable Telnet and SSH where they are not needed.
- Keep management ports off the public internet.
- Replace default or reused passwords.
- Patch firmware.
- Disconnect end-of-life Dasan GPON devices.
- Monitor for abnormal scanning, payload downloads, C2 connections and DDoS traffic.
- Use segmentation and egress filtering for IoT devices.
- Isolate infected devices and preserve logs and samples.
Linha do tempo
-
FlyLegit DDoS-for-hire botnet infects Linux servers and IoT devices via weak Telnet passwords and CVE-2018-10561
ler a análise desta fonte ocultar
A DDoS-for-hire botnet called FlyLegit is compromising Linux servers and IoT devices through weak Telnet credentials and flaws in old routers, including CVE-2018-10561. The name comes from the operators' Telegram group (t.me/flylegit), which they use to promote the service and recruit customers. CNCERT and NSFOCUS Fuying Security Lab reported continued spread in September 2026. Between September 3 and 8, researchers confirmed about 2,015 active bots in mainland China. The family has been updated repeatedly since it first appeared in late 2025. This record is based on the article alone, because no web research was done.
Technical Details
- Spread: scanning for weak Telnet passwords, plus exploitation of flaws such as CVE-2018-10561. The NVD describes this as an authentication bypass in Dasan GPON routers, with CVSS 9.8, and CISA lists it as exploited. The CNCERT report attributes it to Realtek.
- Payloads: binaries named "iran" plus an architecture tag (for example iran.x86_64), fetched by a script usually named cat.sh using wget or curl. The script passes a runtime argument that fills the "group" field in the check-in packet (default: "default").
- Infrastructure: 68 payload-hosting addresses and 900 download URLs, linked to 40 C2 nodes. The C2 nodes sit in nearly 10 countries, mainly Germany (43%) and the Netherlands (28%). Ports seen are 7080, 8060 and 7777.
- Capabilities: DDoS floods (TCP, SYN, HTTP, UDP, UDP-plain, ICMP, and GRE in v4), self-update, bind shell (!openshell) and reverse shell, and command execution (!shellcmd). Version 4 (July 2026) added the "selfrep telnet" and "selfrep realtek" scanning commands. Early builds used ChaCha20 for C2 traffic, while the latest sends plaintext.
- Persistence: /etc/init.d and /etc/rc.local. The malware kills rival processes.
Remediation
- Disable Telnet and SSH where they are not needed.
- Keep management ports off the public internet.
- Replace default or reused passwords.
- Patch firmware.
- Disconnect end-of-life Dasan GPON devices.
- Monitor for abnormal scanning, payload downloads, C2 connections and DDoS traffic.
- Use segmentation and egress filtering for IoT devices.
- Isolate infected devices and preserve logs and samples.