# FlyLegit Botnet: Widespread Propagation via Weak Telnet Credentials and CVE-2018-10561 (Realtek)

> NSFOCUS and CNCERT report the FlyLegit DDoS botnet is spreading across Linux servers and IoT devices by scanning for weak Telnet credentials and exploiting CVE-2018-10561. About 2,015 active bots were seen in mainland China (Sept 3-8, 2026) and 40 C2 nodes have been tracked since late December 2025, mostly in Germany and the Netherlands.

- **Author:** Threadlinqs Team
- **Published:** 2026-12-01T07:53:21Z
- **Last updated:** 2026-12-01T07:53:21Z
- **Canonical:** https://intel.threadlinqs.com/threat/TL-2026-7146
- **Card image:** https://intel.threadlinqs.com/og/threat/TL-2026-7146.png
- **ID:** TL-2026-7146
- **Severity:** HIGH
- **Category:** MALWARE
- **Status:** ACTIVE
- **Detections:** 9 (1 shown free below) · **IOCs:** 28 (3 shown free below)
- **CVEs:** CVE-2018-10561

## Description

FlyLegit is a Linux/IoT DDoS botnet family named after a Telegram group (t.me/flylegit) its operators use for promotion and recruiting. It was first noticed by security monitors in late 2025. NSFOCUS began tracking payload-hosting addresses and C2 nodes in late December 2025. In September 2026 CNCERT and the NSFOCUS Fuying Security Lab confirmed continued spread through joint monitoring: about 2,015 active bots in mainland China between Sept 3 and 8, 2026, with a daily peak of 427 bots coming online.

Initial access and propagation: the bot scans for weak Telnet credentials and exploits vulnerabilities, the only CVE named being CVE-2018-10561. Note on attribution of that CVE: NSFOCUS labels it a Realtek vulnerability, while NVD describes CVE-2018-10561 as an authentication bypass in Dasan GPON home routers (append '?images' to a login-protected URL; CWE-287; NVD CVSS 3.1 base 9.8; in CISA KEV since 2022-03-31). The NVD score is for the CVE, not for the botnet; the source gives no CVSS for FlyLegit, so cvss_score is null and HIGH severity is analyst judgement. Dropped binaries are named iran.<arch> (e.g. iran.x86_64) and are fetched by a shell script commonly named cat.sh. The script has architecture-specific logic and uses wget or curl. Seven architectures are covered: x86, x64, ARM, MIPS, MIPSEL, SH4 and PPC. Observed runtime arguments include telnet, catloader, an empty string, $@ and no argument; the argument is later written into the check-in packet's group field (default: 'default'). NSFOCUS identified 68 payload-hosting addresses and 900 download URLs; payload hosts are replaced roughly weekly.

Persistence and evasion: the malware persists via /etc/init.d and /etc/rc.local so it restarts after reboot, and it terminates competing processes to monopolize host resources. Early versions encrypt C2 traffic with ChaCha20 (embedded initial key, nonce at the start of the delivered data); the latest version uses plaintext.

C2 protocol: three stages (check-in and authentication, heartbeat, command delivery). The heartbeat is ping/pong, with the bot's pong carrying host architecture information. Commands are key=value strings with parameters such as packet size, source IP and port. Command set: kill, stop, update, ping; !openshell (password-protected bind shell on a specified port); !shellcmd (reverse shell executing attacker-supplied commands); and in V4 'selfrep telnet' and 'selfrep realtek' scanning commands. The !update command makes the bot connect to a hard-coded IP:port, issue an HTTP GET, save the new binary to the first writable of /tmp/, /var/, /dev/shm/ or the current directory, and chmod it executable.

Versions: V1 (Dec 2025-Jan 2026) had kill/stop/update and tcp, syn, http, udp, udpplain and icmp floods; V2 (Jan-Apr 2026) and V3 (May-Jun 2026) were reduced to kill/stop with syn and udpplain floods; V4 (Jul-Aug 2026) restored update, added GRE flood and added Telnet/Realtek self-replication scanning. DDoS: tcp (handshake flood, random payload), syn (raw-socket SYN, network-range support), udp/udpplain (random vs specified/mixed payloads), http (GET/POST/HEAD flood), icmp (ICMP_ECHO flood) and gre (separate config with gre_proto/gport; TCP or UDP).

Infrastructure: 40 C2 nodes across nearly 10 countries (Germany 43%, Netherlands 28%), about five C2 nodes replaced per month, ports 7080, 8060 and 7777 reused frequently, and heavy reliance on small and mid-sized European hosting providers. No threat actor is named. The NSFOCUS report lists 64 32-hex-character file hashes without stating the algorithm (consistent with MD5). BeaconBeagle lookup for a sample C2 IP (176.65.139.35) returned HTTP 404, so no C2 correlation was recorded. Only the single NSFOCUS/CNCERT report was found; no independent English-language write-up was located.

## MITRE ATT&CK

- T1595.002 Vulnerability Scanning
- T1583 Acquire Infrastructure
- T1608 Stage Capabilities
- T1190 Exploit Public-Facing Application
- T1110.001 Password Guessing
- T1059.004 Unix Shell
- T1037.004 RC Scripts
- T1222.002 Linux and Mac Permissions
- T1095 Non-Application Layer Protocol
- T1571 Non-Standard Port
- T1573.001 Symmetric Cryptography
- T1498.001 Direct Network Flood

## Free detection (Splunk SPL, Microsoft KQL, Sigma)

**FlyLegit CVE-2018-10561 GPON Auth-Bypass and diag_Form Command Injection - Exploitation** (`TL-2026-7146-SPL-001`)

Detects HTTP requests to the Dasan GPON /GponForm/ endpoints that use the '?images' authentication bypass of CVE-2018-10561 (Exploit-DB 44576) or that carry diag_Form command-injection markers (dest_host= with wget, curl, tftp, busybox, cat.sh or iran.* loader names). This is the exploit path FlyLegit uses (NSFOCUS labels it Realtek; NVD says Dasan GPON) to run its cat.sh loader and pull the iran.<arch> bot. CVE-2018-10561 is in CISA KEV. Behaviour-first: it keys on the exploit mechanics, not on rotating IPs, and it also surfaces mass internet scanning for the bug.

- **Languages:** Splunk SPL, Microsoft KQL, Sigma
- **ATT&CK:** T1190, T1595.002, T1105, T1059.004
- **Data sources:** stream:http, CommonSecurityLog, webserver_access_logs
- **Severity:** high
- **Confidence:** high

### Splunk SPL

```spl
index=network sourcetype="stream:http" earliest=-24h
| eval uri=lower(coalesce(uri_path,"")), qs=lower(coalesce(uri_query,"")), body=lower(coalesce(form_data,"")." ".coalesce(request_body,""))
| where like(uri,"%/gponform/%")
| eval auth_bypass=if(match(qs,"^images") OR match(uri,"[?]images"),1,0)
| eval diag_inject=if(match(body,"dest_host=") AND match(body,"(wget|curl|tftp|busybox|cat[.]sh|iran[.]|%3b|%7c|%60|%24%28|[;|])"),1,0)
| stats count min(_time) as first_seen max(_time) as last_seen values(uri_path) as uri_path values(http_user_agent) as user_agent max(auth_bypass) as auth_bypass max(diag_inject) as diag_inject by src_ip dest_ip
| where auth_bypass=1 OR diag_inject=1
| convert ctime(first_seen) ctime(last_seen)
```

### Microsoft KQL

```kql
CommonSecurityLog
| where TimeGenerated > ago(24h)
| where RequestURL has '/GponForm/'
| extend Payload = tolower(strcat(RequestURL, ' ', RequestContext, ' ', AdditionalExtensions))
| extend AuthBypass = iff(Payload has '?images', 1, 0)
| extend DiagInject = iff(Payload has 'dest_host=' and Payload matches regex '(wget|curl|tftp|busybox|cat[.]sh|iran[.]|%3b|%7c|%60|%24%28)', 1, 0)
| summarize Attempts = count(), AuthBypass = max(AuthBypass), DiagInject = max(DiagInject), SampleURLs = make_set(RequestURL, 5), FirstSeen = min(TimeGenerated), LastSeen = max(TimeGenerated) by SourceIP, DestinationIP, DeviceVendor
| where AuthBypass == 1 or DiagInject == 1
| project FirstSeen, LastSeen, SourceIP, DestinationIP, DeviceVendor, Attempts, AuthBypass, DiagInject, SampleURLs
```

### Sigma

```yaml
title: FlyLegit CVE-2018-10561 GPON Authentication Bypass and diag_Form Injection
id: 7c1e4a52-3b9d-4f0a-9c6e-1a2d5f8b3e41
status: experimental
description: Detects requests to the Dasan GPON /GponForm/diag_Form endpoint using the '?images' authentication bypass of CVE-2018-10561, or carrying shell-injection loader strings in the diag_Form parameters. Used by the FlyLegit botnet for initial access and loader delivery.
references:
  - https://nsfocusglobal.com/risk-alert-widespread-propagation-of-the-flylegit-botnet/
  - https://nvd.nist.gov/vuln/detail/CVE-2018-10561
  - https://www.exploit-db.com/exploits/44576
author: Threadlinqs Team
date: 2026-12-01
tags:
  - attack.reconnaissance
  - attack.t1595.002
  - attack.initial-access
  - attack.t1190
  - attack.execution
  - attack.t1059.004
  - attack.command-and-control
  - attack.t1105
  - cve.2018-10561
logsource:
  category: webserver
detection:
  selection_bypass:
    cs-uri-stem|contains: '/GponForm/'
    cs-uri-query|startswith: 'images'
  selection_inject:
    cs-uri-stem|contains: '/GponForm/diag_Form'
    cs-uri-query|contains:
      - 'wget'
      - 'curl'
      - 'tftp'
      - 'busybox'
      - 'cat.sh'
      - 'iran.'
  condition: selection_bypass or selection_inject
falsepositives:
  - Authorized vulnerability scanners probing for CVE-2018-10561
  - Legitimate GPON management traffic that happens to use a diag_Form URL
level: high
```

**Known false positives:**

- Authorized vulnerability scanners probing for CVE-2018-10561
- Legitimate GPON management traffic using /GponForm/ URLs from an administrative network

**Tuning notes:** Exclude approved scanner source IPs and internal management subnets. If you do not run Splunk Stream, point the SPL at your WAF, proxy or IDS HTTP sourcetype and map uri_path, uri_query and form_data accordingly. Many sources only log the URL, not the POST body, so the auth_bypass flag may be the only signal. The CVE is labelled Realtek by NSFOCUS but is a Dasan GPON bug in NVD.

### 8 more detection rules (Splunk SPL, Microsoft KQL, Sigma), unlock with TL Creds

- FlyLegit Telnet Weak and Default Credential Guessing Against Linux/IoT Hosts - Exploitation (locked: unlock with TL Creds)
- FlyLegit iran.<arch> Bot Binary chmod, Execution and Known Sample Hashes - Post-Exploitation (locked: unlock with TL Creds)
- FlyLegit Self-Replication Telnet Scanning From a Single Host - Lateral Movement (locked: unlock with TL Creds)
- FlyLegit [indicator] / iran.<arch> Loader Download via wget, curl or tftp - Exploitation (locked: unlock with TL Creds)
- FlyLegit Reverse and Bind Shell Execution (!shellcmd / !openshell) - Post-Exploitation (locked: unlock with TL Creds)
- FlyLegit DDoS Flood Egress From a Single Host - Impact (locked: unlock with TL Creds)
- FlyLegit Persistence via [indicator] or [indicator] with Staged Payload - Post-Exploitation (locked: unlock with TL Creds)
- FlyLegit C2 Node Connection - All 40 NSFOCUS C2 Nodes and Community Siblings - C2 (locked: unlock with TL Creds)

Sign up free to unlock the detection rules: https://threadlinqs.com/?modal=signup

## Sample indicators (3 of 28)

Defanged, TLP:CLEAR.

- IP address: `165.22.247[.]105`
- File hash: `4de9763c9bdd12fb25f907bcef4144af`
- IP address: `176.65.139[.]35`

Full set of 28 indicators unlocks with TL Creds: https://threadlinqs.com/tl-creds

## Sources

- [Risk Alert: Widespread Propagation of the FlyLegit Botnet (NSFOCUS)](https://nsfocusglobal.com/risk-alert-widespread-propagation-of-the-flylegit-botnet/)
- [CNCERT/NSFOCUS FlyLegit report (secrss.com)](https://www.secrss.com/articles/94349?app=1)
- [NVD: CVE-2018-10561](https://nvd.nist.gov/vuln/detail/CVE-2018-10561)
- [CISA Known Exploited Vulnerabilities Catalog (CVE-2018-10561 added 2022-03-31)](https://www.cisa.gov/known-exploited-vulnerabilities-catalog)
- [Exploit-DB 44576 (CVE-2018-10561 exploit)](https://www.exploit-db.com/exploits/44576)
- [CVE Record: CVE-2018-10561](https://www.cve.org/CVERecord?id=CVE-2018-10561)

## Full data

The other 8 detection rules (Splunk SPL / Microsoft KQL / Sigma) unlock with TL Creds; a free account includes daily creds: https://threadlinqs.com/?modal=signup
Indicator values unlock with TL Creds, at a lower price on Red and Purple; AI agents can query rules and IOCs through the Threadlinqs MCP server (Purple and Gold in full, 2 calls a day on a free account): https://intel.threadlinqs.com/mcp

Canonical: https://intel.threadlinqs.com/threat/TL-2026-7146
