FlyLegit botnet hijacks Linux and IoT devices for DDoS

Published

A botnet that advertises itself on Telegram has been hijacking Linux servers and internet-connected devices since late 2025, and it is still growing. China's national CERT (CNCERT) and NSFOCUS's Fuying Security Lab say the family, named FlyLegit after the attackers' Telegram group, had about 2,015 active bots in mainland China between September 3 and 8, with as many as 427 coming online in a single day, according to NSFOCUS's risk alert.

FlyLegit is mainly a DDoS tool, but it does more than flood targets. It can update itself and open both bind and reverse shells, so an infected device can also serve as a foothold for follow-on attacks and for delivering additional malicious components.

Weak Telnet passwords and an eight-year-old router bug

The botnet spreads in two ways: scanning for devices with weak Telnet credentials, and exploiting known vulnerabilities, including CVE-2018-10561, which the CVE record describes as an authentication bypass in Dasan GPON routers and which sits on CISA's list of exploited flaws. A download script, usually named cat.sh, uses wget or curl to fetch the right binary for the victim. The binaries follow a fixed naming pattern, the prefix "iran" plus an architecture tag such as iran.x86_64, and cover seven architectures: x86, x64, ARM, MIPS, MIPSEL, SH4 and PPC.

Persistence comes through /etc/init.d and /etc/rc.local, so the malware survives a reboot, and it kills competing processes to keep the device's resources to itself.

A crew that rotates its infrastructure every week

Since late December 2025, the researchers have tracked 68 payload-hosting addresses, 900 download URLs and 40 command-and-control (C2) servers. The operators replace payload hosts roughly once a week and swap out about five C2 nodes a month, but tend to reuse the same ports, with 7080, 8060 and 7777 appearing repeatedly. The C2 servers sit in nearly 10 countries, led by Germany (43%) and the Netherlands (28%), and rely heavily on small and mid-sized European hosting providers.

The code has changed shape several times. The first version supported six DDoS attack types, some versions between January and June 2026 cut that list back, and samples from July 2026 onward restored them, added a GRE flood, and gained self-propagation over Telnet and scanning for Realtek-related vulnerabilities. Early builds encrypted C2 traffic with ChaCha20; the latest version has switched to plaintext.

Close Telnet and kill default passwords

The researchers' advice is basic but effective against a botnet that lives on weak credentials: disable Telnet, SSH and remote-management interfaces that are not needed, never expose management ports directly to the internet, replace default passwords with strong unique ones, and keep firmware and Linux components patched. For IoT devices that cannot run security software, they recommend access controls, network segmentation and egress restrictions. Infected devices should be isolated, with logs and samples preserved, and returned to service only once the entry point is fixed and credentials are changed.

Selected indicators

C2 servers: 176[.]65[.]139[.]35:7080, 45[.]156[.]87[.]176:7080, 130[.]12[.]180[.]85:7080, 167[.]86[.]99[.]169:8060, 36[.]255[.]97[.]23:7777. MD5 hashes: 4de9763c9bdd12fb25f907bcef4144af, d02158d0fc4233f9654225a3bfc2ea95, 0370683c629a40cc495915161cf3f975. Telegram group: t[.]me/flylegit. The full list of 40 C2 servers and more than 60 hashes is in the original report.

FlyLegit joins a crowded field of IoT botnets, alongside families such as RustDuck, and nothing about it is sophisticated. That is exactly the problem: as long as routers and servers sit online with open Telnet and default passwords, a crew that rebuilds its infrastructure every week can keep thousands of devices working for it.

This briefing is provided by IntelFusions for informational and defensive purposes only. It is based on sources assessed to be reliable at the time of writing, and analytic judgments carry the confidence levels indicated. Indicators of compromise are defanged; re-arm them only in controlled environments. IntelFusions is not affiliated with the organizations named and makes no warranty as to completeness or accuracy.

Earlier in Cyber Incidents

All Cyber Incidents briefings

Latest briefings

Read the full analysis on IntelFusions