Threat intel5 min read
FlyLegit botnet turns Linux and IoT devices into DDoS nodes
FlyLegit spreads through weak Telnet passwords and an old Dasan GPON router flaw. Infected devices launch DDoS floods, give the operators a remote shell and now scan for new victims.
4Tify Team

A Linux botnet called FlyLegit has been spreading across internet-facing servers, routers and other connected devices since late 2025. It gets in by guessing weak Telnet passwords and by exploiting a router flaw from 2018. Once a device is infected, the operators can use it to flood targets with traffic, open a remote shell on it or install more malware.
What happened
FlyLegit first appeared at the end of 2025. Its name comes from a Telegram group the operators use to promote it. Between 3 and 8 September 2026, 2,015 active bots were confirmed in mainland China, with up to 427 coming online in a single day. Those numbers cover one country over six days. Nobody has published a worldwide count, and it isn't known who runs the botnet or which sites it has attacked.
The malware ships in builds for seven processor architectures: x86, x64, ARM, MIPS, MIPSEL, SH4 and PPC. That covers most Linux servers and a large share of home routers, cameras and embedded boxes. A download script usually named cat.sh fetches the binary with wget or curl, and the payload files follow the pattern iran.<architecture>, for example iran.x86_64.
How it gets in
There are two ways in. The first is brute force against Telnet, the old remote-login protocol that many devices still leave open with default or reused passwords. The second is CVE-2018-10561, which the NVD entry describes as an authentication bypass in Dasan GPON home routers: adding ?images to a protected URL skips the login and hands over the device. It is rated CVSS 9.8. CISA added it to its Known Exploited Vulnerabilities catalog on 31 March 2022, notes that the product is end-of-life and says it should be disconnected if still in use.
What an infected device does
FlyLegit is more than a flood tool. On command, a bot can:
- send TCP, SYN, UDP, plain UDP, HTTP (GET, POST, HEAD), ICMP and GRE floods, some of them aimed at whole network ranges;
- open a password-protected shell on a listening port, or run shell commands the operators send it;
- download a new version of itself over HTTP into
/tmp, falling back to/varor/dev/shm.
It survives reboots by adding itself to /etc/init.d and /etc/rc.local, and it kills competing malware so it has the device to itself. A device that is quiet between attacks is still under the operators' control.
The code has changed several times this year. The first builds, from December 2025 and January 2026, carried six flood types. From January to June 2026 the operators cut that down to SYN and plain UDP floods only. The version seen in July and August 2026 brought the full set back, added a GRE flood and gained modules that scan for new victims over Telnet and through the router flaw, so infected devices now recruit more devices. Early versions encrypted their command traffic with ChaCha20. The latest one sends it in plaintext.
The infrastructure behind it
Since late December 2025 the operators have used 40 command-and-control servers in nearly 10 countries, 43% of them in Germany and 28% in the Netherlands. They replace about five a month. The malware itself was served from 68 hosting addresses through some 900 download URLs, and those addresses changed roughly once a week. The control servers keep reusing ports 7080, 8060 and 7777, which helps with detection. A blocklist of addresses, on the other hand, goes stale within days.
Who is affected
Any Linux server, router, camera or embedded device that exposes Telnet to the internet with a default or weak password is a candidate. So is any Dasan GPON router still in service. Organisations whose devices are infected also carry a second problem: their network becomes the origin of attack traffic against someone else.
What to do now
- List every device that answers on Telnet (port 23) from the internet and switch Telnet off. Put SSH and web admin panels behind a VPN or an IP allowlist.
- Change default and reused passwords on routers, cameras and servers. Use a different password per device.
- Replace any Dasan GPON router. There is no fix for an end-of-life product.
- On Linux hosts, check
/etc/init.dand/etc/rc.localfor entries you didn't add, and look for files namediran.*orcat.shin/tmp,/varand/dev/shm. - Watch outbound traffic for connections to unusual ports such as 7080, 8060 and 7777, and for sudden bursts of flood traffic leaving your network.
- If you find an infected device, isolate it, keep its logs and a copy of the sample, work out how it got in and fix that, then change its credentials before reconnecting it. Devices that can't run security software belong on a separate network segment with outbound traffic restricted.
FlyLegit needs only one forgotten device with Telnet open. Our Attack Surface Management service maps the hosts and services you expose to the internet, so a stray Telnet port or an old router shows up in your inventory before a botnet scanner finds it.
