Skip to navigation

Threat reportMalwareTL-2026-7146

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

highACTIVE

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.

By

Key facts

IdentifiersTL-2026-7146, CVE-2018-10561
Also known asFlyLegit, iran.<arch> botnet, catloader
SeverityHIGH
First disclosed
Exploitation statusLinked CVE exploited in the wild; Listed in CISA KEV: CVE-2018-10561 (added )
EPSSCVE-2018-10561: 93.3% (99.8th percentile)
Affected productsDasan Networks GPON router firmware (CVE-2018-10561; NSFOCUS labels it Realtek); Various Linux servers and IoT devices with Telnet exposed and weak credentials (x86, x64, ARM, MIPS, MIPSEL, SH4, PPC)
Weaknesses (CWE)CWE-287, CWE-521
MalwareFlyLegit, telegram
MITRE ATT&CK techniquesT1037.004 RC Scripts, T1059.004 Unix Shell, T1095 Non-Application Layer Protocol, T1110.001 Password Guessing, T1190 Exploit Public-Facing Application, T1222.002 Linux and Mac Permissions, T1498.001 Direct Network Flood, T1571 Non-Standard Port, T1573.001 Symmetric Cryptography, T1583 Acquire Infrastructure, T1595.002 Vulnerability Scanning, T1608 Stage Capabilities
MotivationUNKNOWN
Target sectorsconsumer-iot, enterprise-linux-servers
Target regionschina
Detection rules9 (1 shown free)
Sources6 cited sources

Detection coverage

As of 2026-12-01, Threadlinqs Intelligence publishes 9 detection rule(s) for TL-2026-7146 across Splunk SPL, Microsoft KQL and Sigma, covering 28 indicator(s) of compromise. The whole corpus is readable without an account. Every threat comes with one complete detection in Splunk SPL, Microsoft KQL and Sigma, free for everyone; a free account adds daily TL Creds to unlock the rest. Paid plans add a larger daily allowance, correlation and the MCP server. Threadlinqs MCP server · View plans.

Free detection: FlyLegit CVE-2018-10561 GPON Auth-Bypass and diag_Form Command Injection - Exploitation

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

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

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

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. Sign up free to unlock the detection rules or query them with the Threadlinqs MCP server (Purple and Gold in full, 2 calls a day on a free account)
  • FlyLegit Telnet Weak and Default Credential Guessing Against Linux/IoT Hosts - Exploitation · unlock with TL Creds
  • FlyLegit iran.<arch> Bot Binary chmod, Execution and Known Sample Hashes - Post-Exploitation · unlock with TL Creds
  • FlyLegit Self-Replication Telnet Scanning From a Single Host - Lateral Movement · unlock with TL Creds
  • FlyLegit [indicator] / iran.<arch> Loader Download via wget, curl or tftp - Exploitation · unlock with TL Creds
  • FlyLegit Reverse and Bind Shell Execution (!shellcmd / !openshell) - Post-Exploitation · unlock with TL Creds
  • FlyLegit DDoS Flood Egress From a Single Host - Impact · unlock with TL Creds
  • FlyLegit Persistence via [indicator] or [indicator] with Staged Payload - Post-Exploitation · unlock with TL Creds
  • FlyLegit C2 Node Connection - All 40 NSFOCUS C2 Nodes and Community Siblings - C2 · unlock with TL Creds

Indicators of compromise

As of 2026-12-01, Threadlinqs Intelligence tracks 28 indicators of compromise for TL-2026-7146.

Sample indicators (3 of 28)

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

Defanged, TLP:CLEAR. Full set of 28 indicators: unlock with TL Creds.

28 indicators of compromise · unlock with TL Creds. Compare plans

Community OSINT corroboration

1 of this threat's indicators have also been reported by the open-source security community. Community sightings are unverified and are kept separate from Threadlinqs' curated indicators. Indicator values, reporters and campaign linkage are available to authenticated Red-tier users.

Technical analysis

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 techniques by tactic:

Persistence

T1037.004 RC Scripts

Execution

T1059.004 Unix Shell

Command and Control

T1095 Non-Application Layer Protocol; T1571 Non-Standard Port; T1573.001 Symmetric Cryptography

Credential Access

T1110.001 Password Guessing

Initial Access

T1190 Exploit Public-Facing Application

defense-impairment

T1222.002 Linux and Mac Permissions

Impact

T1498.001 Direct Network Flood

Resource Development

T1583 Acquire Infrastructure; T1608 Stage Capabilities

Reconnaissance

T1595.002 Vulnerability Scanning

Remediation

Patches

  • Remediate CVE-2018-10561; CISA KEV guidance for this end-of-life product is to disconnect it if still in use

Immediate actions

  • Disable Telnet and other unnecessary remote-management interfaces; do not expose management ports to the internet
  • Change default device passwords and use strong, unique credentials per device
  • Block outbound connections to the listed C2 IP:port indicators and monitor for anomalous scanning, payload downloads and DDoS traffic
  • If infected: isolate the device, preserve logs and samples, identify the initial access vector, and restore service only after remediation and credential changes

Workarounds

  • Restrict Telnet to management networks only
  • Monitor /etc/rc.local, /etc/init.d, /tmp, /var and /dev/shm for unexpected executables such as iran.<arch> and cat.sh

Longer-term hardening

  • Apply access controls, network segmentation and egress restrictions for IoT devices that cannot run endpoint protection
  • Keep device firmware and Linux components up to date

Affected and fixed versions

  • Dasan Networks — GPON router firmware (CVE-2018-10561; NSFOCUS labels it Realtek)
    Vulnerable versions: all versions listed in NVD
  • Various — Linux servers and IoT devices with Telnet exposed and weak credentials (x86, x64, ARM, MIPS, MIPSEL, SH4, PPC)
    Vulnerable versions: Any with weak Telnet credentials

Timeline

  • CVE-2018-10561 (authentication bypass in Dasan GPON routers; labelled Realtek by NSFOCUS) published in NVD.
  • CVE-2018-10561 added to the CISA Known Exploited Vulnerabilities catalog.
  • FlyLegit first noticed by security monitors in late 2025; NSFOCUS begins tracking payload hosts and C2 nodes in late December 2025 (month-level precision). V1 active: kill/stop/update plus tcp, syn, http, udp, udpplain, icmp floods.
  • V2 active (Jan-Apr 2026): reduced to kill/stop with syn and udpplain floods; no update command.
  • V3 active (May-Jun 2026): same reduced command set as V2.
  • V4 active (Jul-Aug 2026): update restored, GRE flood added, 'selfrep telnet' and 'selfrep realtek' scanning added; latest version uses plaintext C2.
  • CNCERT and NSFOCUS Fuying Security Lab observe about 2,015 active bots in mainland China during Sept 3-8, with a daily peak of 427 bots coming online.
  • NSFOCUS publishes the risk alert listing 40 C2 nodes, 68 payload-hosting addresses, 900 download URLs and file hashes.

Sources cited

Other reports on CVE-2018-10561

Previous and next in malware

AI-drafted from 6 cited sources; published ; last updated —.

Threadlinqs Intelligence — Real-Time Threat Detection Platform

// threat_feed
$ sort --newest
Showing all threats

Live intelligence console

Threat level

Latest Threats