A new Linux malware named FlyLegit has been discovered hijacking compromised devices and servers to build a powerful botnet with both distributed denial-of-service (DDoS) and full remote control capabilities. Unlike simple flooding attacks, this malware allows operators to issue arbitrary commands, update the malware, or deploy additional payloads—all from a remote command-and-control (C2) server.
How FlyLegit Works
FlyLegit spreads by locating devices that expose Telnet or other remote services with weak credentials. It also exploits known vulnerabilities—such as an authentication bypass in certain home routers—to silently gain access. Once inside, the malware reports back to a C2 server to receive further instructions or additional malicious components.
The malware supports a wide array of processor architectures, including x86, x64, ARM, MIPS, MIPSEL, SH4, and PPC. That means it can infect everything from standard Linux servers to embedded systems and home devices. Its deployment infrastructure is evolving constantly: researchers found nearly 70 payload‐hosting servers and 900 download URLs in use, with hosting locations being rotated about weekly to reduce exposure.
Threat Scale & Behaviors
FlyLegit isn’t a small-scale menace. Between September 3 and 8, 2026, over 2,000 active bots were tracked in mainland China, with as many as 427 devices coming online in one day. These figures stem from monitoring by NSFOCUS Fuying Security Lab and CNCERT; totals likely are much larger globally.
Earlier in 2026, the malware exhibited fewer attack methods and simpler functionality. From mid-year onward it regained potency: the summer versions included more DDoS attack types and also added target‐scanning routines. The malware is built to survive device reboots by modifying startup scripts so infections persist.
Detection, Containment & Indicators of Compromise
Security teams are advised to audit exposed services like Telnet, SSH, or web-based admin consoles. Unneeded ports should be shut off, default or reused passwords replaced, and remote access restricted to trusted networks. Outdated assets—such as routers affected by CVE-2018-10561—should be disconnected if still in operation.
Detection should focus on unusual outbound scanning, unexpected downloads, or communication with known C2 servers; about 40 such endpoints have been tracked, averaging five new ones per month. Analysts should also look for changes in startup paths like /etc/init.d or /etc/rc.local. Once infected, compromised devices should be isolated, evidence preserved, vulnerabilities patched, credentials reset, or firmware updated. Where endpoint tools aren’t possible, segregating devices onto isolated network segments helps limit damage.
Here are some of the Indicators of Compromise (IoCs) uncovered: C2 endpoints such as 165[.]22[.]247[.]105:2220 and 176[.]65[.]139[.]35:7080; sample file hashes including 4de9763c9bdd12fb25f907bcef4144af and d02158d0fc4233f9654225a3bfc2ea95; and malware filenames like cat.sh or iran.x86_64. However, endpoints change frequently—blocking one may not prevent new ones from appearing.
Analysts warn that blocking network activity is only one part of the solution; stopping how the malware survives reboots and spreads internally matters just as much.
This now‐emerging threat underscores a broader shift toward multi-capability malware. FlyLegit imposes both bandwidth flooding and remote control over compromised systems. For defenders—whether in enterprise, cloud, or industrial/IoT settings—this means greater urgency to audit devices for exposed services and credentials, enable better segmentation, and ensure visibility not just into traffic but into startup and persistence mechanisms. What to watch next: how widely FlyLegit spreads outside China, whether its architecture is adopted by other malware groups, and which mitigation tools can keep pace.