I. Overview
In September, CNCERT and NSFOCUS Fuying Security Lab identified, through joint monitoring, the continued spread of a new botnet family named FlyLegit, which targets Linux servers and IoT devices and remotely controls compromised devices to launch DDoS attacks. Since first coming to the attention of security monitors in late 2025, the family has undergone continuous version updates and now poses a significant security threat to the affected devices.
The name FlyLegit comes from the Telegram group established by the attackers: t.me/flylegit. The attackers use this group for promotion and to attract potential customers or users. Unlike traditional botnets primarily designed for DDoS attacks, FlyLegit supports multiple types of DDoS attacks and also provides self-update, bind shell, and reverse shell capabilities. It can use infected devices as footholds for subsequent attacks and deliver additional malicious components as needed.
As of September, monitoring has identified 68 payload-hosting addresses and 900 URLs used to download malware for different architectures. The downloads cover seven architectures: x86, x64, ARM, MIPS, MIPSEL, SH4, and PPC. These are associated with 40 C2 nodes, and the attackers replace an average of approximately five C2 nodes per month. From September 3 to 8, 2026, approximately 2,015 active bots in mainland China were confirmed, with the daily number of bots coming online reaching a peak of 427.
II. Botnet Analysis
(1) Propagation Methods and Infrastructure
1.Propagation and Payload Delivery
The FlyLegit botnet spreads mainly through two methods: scanning for weak Telnet credentials and exploiting vulnerabilities (including Realtek CVE-2018-10561). The dropped malware binaries follow a consistent naming convention consisting of the prefix iran and an architecture identifier, such as iran.x86_64. The download script is commonly named cat.sh.
The download script contains architecture-specific logic for x86_64, MIPS, ARM, and other platforms. It uses wget or curl to automatically download the corresponding malware binary to the victim host. The malware requires runtime arguments for execution. Previously observed arguments include telnet, catloader, an empty string (“”), $@, “$@”, and Default (execution without arguments). These arguments were later used to construct bot check-in packages.

Figure 1. FlyLegit Botnet Capabilities and Attack Chain
2.Propagation Infrastructure
Since late December 2025, monitoring has identified 68 payload-hosting addresses and 900 URLs used to download malware for different architectures. The attackers replace the payload-hosting addresses approximately once a week. The delivered files generally follow the naming convention of iran plus an architecture identifier. Current monitoring data indicates that the attackers continue to maintain and expand the botnet.

Figure 2. Newly Identified FlyLegit Payload-Hosting Addresses by Month
3.C2 Distribution
Since late December 2025, a total of 40 FlyLegit C2 nodes have been identified. These nodes are distributed across nearly 10 countries, including Germany, the Netherlands, and France. Germany and the Netherlands account for 43% and 28%, respectively. The attackers change C2 nodes frequently, replacing an average of approximately five nodes per month. After replacement, they tend to reuse existing ports; ports such as 7080, 8060, and 7777 have been observed repeatedly. The operational infrastructure relies heavily on small and mid-sized hosting providers in Europe.

Figure 3. Geographic Distribution of FlyLegit C2 Nodes
(2) Technical Characteristics of the Samples
1.Version Evolution
The control commands supported by FlyLegit vary across versions. The initial version supported six types of DDoS attacks. Between January and June 2026, some versions reduced the number of control commands and attack methods. Starting in July 2026, samples added multiple DDoS attack commands again, along with Telnet scanning and scanning for Realtek-related vulnerabilities. Excluding the ping command, the evolution of the control commands is shown below:
| Period | Version | General Control Commands | DDoS Commands | Scanning Commands |
| 2025.12–2026.01 | V1 | kill, stop, update | tcp flood, syn flood, http flood, udp flood, udpplain flood, icmp flood | None |
| 2026.01–2026.04 | V2 | kill, stop | syn flood, udpplain flood | None |
| 2026.05–2026.06 | V3 | kill, stop | syn flood, udpplain flood | None |
| 2026.07–2026.08 | V4 | kill, stop, update | tcp flood, syn flood, http flood, udp flood, udpplain flood, icmp flood, gre flood | selfrep telnet, selfrep realtek |
2.Persistence and Evasion
FlyLegit establishes persistence through mechanisms such as /etc/init.d and /etc/rc.local, allowing it to resume automatically after a system reboot. It also terminates competing processes to monopolize the resources of compromised hosts. Some early versions used the ChaCha20 algorithm to encrypt C2 communications, while the latest version has switched to plaintext communication.
3.Communication Mechanism and Command-and-Control Framework
The FlyLegit command-and-control framework consists primarily of three stages: initial check-in and authentication, heartbeat response, and command delivery. The check-in packet follows the format . The group field distinguishes different campaign batches and defaults to default. If an argument is supplied to the startup script, the malware writes that argument to the group field.
The family uses a ping-pong command mechanism for heartbeat responses: the attacker sends a ping command, and the malware replies with pong together with information about the host architecture. C2 commands are transmitted as strings in key=value format and support parameters such as attack-packet size, source IP address, and port. In some versions, C2 commands are encrypted using ChaCha20. The malware contains an embedded initial key, and the beginning of the delivered data includes the nonce required for decryption.
4.Core Attack Capabilities
FlyLegit’s core capabilities include self-updating, DDoS attacks, and Shell command execution. The !update command triggers a malware update: the malware connects to a hard-coded IP address and port, sends an HTTP GET request to download a new version, and attempts to save it to /tmp/ first. If that directory is not writable, it tries /var/, /dev/shm/, and then the current directory in sequence. After the download, it sets the executable permission on the file.
The attacker can use commands to instruct the malware to send attack payloads to a target during a specified time window. The DDoS attack commands identified to date are listed below:
| Command | Attack Type | Description |
| tcp | TCP Flood | Initiates multiple TCP three-way handshake connections to the target. Payload consists of random data. |
| syn | SYN Flood | Constructs SYN packets using raw sockets. Supports attacks against target network ranges. Payload can consist of specified data, random data, or a combination of specified and random data. |
| udpplain | UDP Flood | Supports attacks against target network ranges. Payload can consist of specified data, random data, or a combination of specified and random data. |
| udp | UDP Flood | Uses a random payload; otherwise, its behavior is the same as udpplain. |
| http | HTTP Flood | Initiates multiple TCP three-way handshake connections to the target. Supports GET, POST, and HEAD. Apart from HTTP headers, only POST carries a small amount of additional data; GET and HEAD carry no additional data. |
| icmp | ICMP Flood | Uses the ICMP_ECHO type. Supports attacks against target network ranges. Payload consists of random data. |
| gre | GRE Flood | Uses a separate configuration structure and supports gre_proto/gport. Supports TCP or UDP. Supports attacks against target network ranges. |
The family also supports bind shell and reverse shell functionality, allowing the attacker to obtain remote Shell access to a compromised host and execute commands:
| Command | Description |
| !openshell | Bind shell: listens on a specified port on the compromised host and uses a password as the access credential, allowing the attacker to execute Shell commands remotely. |
| !shellcmd | Reverse shell: executes Shell commands delivered by the attacker. |
III. Scale of Botnet Infection
Monitoring and analysis show that, from September 3 to 8, 2026, approximately 2,015 active FlyLegit bots were confirmed in mainland China. The daily number of bots coming online in mainland China reached a maximum of 427.

Figure 4. Daily Number of FlyLegit Bots Coming Online in Mainland China
IV. Recommendations for Protection
Internet users are advised to strengthen their risk awareness and security measures to avoid unnecessary financial losses. The main recommendations are as follows:
(1) Disable unnecessary Telnet, SSH, and device remote-management interfaces. Do not expose management ports directly to the public internet.
(2) Change default device passwords, use strong passwords, and avoid reusing the same password across multiple devices.
(3) Identify and remediate the vulnerabilities covered in this report, and promptly update device firmware and Linux system components.
(4) Monitor network traffic for abnormal scanning, payload-download requests, C2 connections, and anomalous DDoS traffic.
(5) If an infection is detected, immediately isolate the affected device, preserve necessary logs and samples, and investigate the initial access vector. Restore services only after vulnerabilities have been remediated and credentials have been changed.
(6) For IoT devices that cannot run endpoint protection software, reduce risk through access controls, network segmentation, and egress restrictions.
V. Related Indicators of Compromise (IoCs)
(1) C2 Servers
| C2 Server | C2 Server | C2 Server | C2 Server |
| 165.22.247.105:2220 | 176.65.139.35:7080 | 85.11.167.182:5855 | 83.168.110.191:1336 |
| 38.60.216.39:13322 | 94.249.228.212:6767 | 176.65.139.67:17692 | 192.109.200.199:23 |
| 174.138.43.79:6060 | 45.156.87.176:7080 | 134.199.219.57:6060 | 140.233.190.82:6221 |
| 176.65.139.18:7000 | 130.12.180.85:7080 | 34.107.120.7:1150 | 45.153.34.77:6000 |
| 64.89.161.81:6667 | 31.56.120.29:7080 | 130.12.180.80:7080 | 87.121.84.11:7080 |
| 45.153.34.195:7080 | 36.255.97.23:7777 | 167.86.99.169:8060 | 31.77.227.119:8060 |
| 165.22.69.214:3131 | 94.154.43.88:8060 | 195.201.123.9:8060 | 103.83.87.122:8060 |
| 176.65.139.51:7080 | 94.26.106.236:777 | 176.65.139.121:7080 | 82.25.63.213:7080 |
| 31.56.209.72:621 | 176.65.139.196:621 | 176.65.139.161:25596 | 176.65.139.7:1337 |
| 176.65.139.45:6060 | 176.65.139.36:5555 | 82.26.74.181:7080 | 176.65.139.61:5090 |
(2) File Hashes
| Hash | Hash |
| 4de9763c9bdd12fb25f907bcef4144af | d02158d0fc4233f9654225a3bfc2ea95 |
| 0370683c629a40cc495915161cf3f975 | b0b959b1d9c06322391d3b39843a9a07 |
| 89d3f3ce6f654953e2cee1101db8de0d | 9f16e5596a7d2fa48d7be03a71fdb21b |
| 76ad977cdbf28f1cf82bba1bdf67303c | 1dff9725fb3889423d8249e1dadade57 |
| 931224bbb764aab452b2a1ae545b3a23 | 018caecd80077ec3d2a9453270a6a784 |
| 4cad9ad790f6d573986497c20ed5dfca | 7bb1e14c29188186670478c2bd99fb9b |
| d284088eff26ebf3b192c01abd269fe0 | c34b4e4a8958653bdd3b01870b97f87b |
| e362076dd212b2e211638bad035bd997 | c0a9a8933607d59f5d5daee74403df05 |
| 17303c070fd6660cc0c5ff77aa9ec165 | fe45e8d7f7afeae48e9edd2fbdae52c5 |
| 870497c8ff0c4ef447dc3989d767834c | 67ab69aa3ff21a5deb7bbc5b266306d4 |
| c831f502474dc988bc9b21eee10a3178 | 2c135e3d6ec2cbf9535b071f09b2576c |
| 1a3461022e05789e226537e18fe3109b | 1904a7168d08625d3321d0d0eef80e5a |
| 44b9c9b80a57e83c336e6a5218fabcf2 | a9cae0f2350f48350ace1528f3a5be84 |
| 70ace99ef8f3b9350063af10303bfd92 | dca40f08cc93bc2fba8e3f5fec18593f |
| f2d5837da4ebe93a67ec5b0a8a8507c7 | 71075cdbcc330b42f0ae68be6ff44ea3 |
| 7a9248f3420d8b3d6b94ba346aea6254 | 0e54628ea332bec9a12705b76a729a0c |
| 62a0e401fcc42c435e66fae9f71d6c10 | 5d5aeddab8cddb7536ce44dbfd23daef |
| 2b1931ca78a0c1832deb0d154fbd17a1 | fc453bc95d34da863f4c3d1cbec45df7 |
| 3ce8a714552d621ba5bb10edcb838078 | cdeacf6fae101680001237b643b12063 |
| a2913a2ccbe45c273287dd285c0e54e1 | 15c99f12454b0678ffd6bcdef1a1bb77 |
| 1d7f5fe93a49193020ab25f13ae6c170 | a83ee62337e4218437d35daa84961324 |
| 0f729e7a9bd73eed5759f1a18358650c | e36870a89afdc8acb6730da78d831737 |
| b8f998dbf01a5237de323d6cb6b8ea84 | 1ebf44143d7c2e71bb294fdcd862a1f4 |
| 4ba79ef0833c5b390f5a7b29f3bee399 | cdffbebdcab69edbe8b42fd15544a1fb |
| b8ae867c8b82e47272e15b23e72df2ce | a17d6def8c4db71feb8492db1cb90f6b |
| f226e5066a68f1ff726206c5eafb611f | b228d31b6630a892200b4be0a4396c0f |
| 644b654a6bb931d8be34de2d491ecf89 | 39cbaaf449babd4f6ea1e7525d29deea |
| bb474861b2e5c7a6eb1013b60b416740 | 45a160258e51e30c74ec313f452dbe89 |
| a108a29b2fdc2918d7e8285c33860394 | 95353f04087412d8adf9c9c4f01a1fc3 |
| 6a27151a55536335f48a54789c3515ac | e6ac4beb231201daffbdcd76d8889ebc |
| 3473a76c22c93ab8289360c5770059cf | 903d78539ceb95324d6f0f5cdb9c71dc |
| ed06f2ac6907f89a09f8bc5d6988700c | 0a553af07ee56bf11694dcb6246e504d |
| 7f0e5f422dec2a152787e38f22851cd2 |