Condi
- Type
- Botnet
- Capabilities
- DDOSScanningInitial accessPersistenceDefense evasion
- Platforms
- LinuxIOT
Condi is a Mirai-based botnet malware family used for distributed denial-of-service attacks and advertised through the Telegram-based Condi Network DDoS-as-a-service operation. It primarily compromises Linux-based routers and other IoT devices, with payloads supporting multiple processor architectures. Its source code became publicly available in 2023, allowing independent operators to develop and deploy derivatives; Condi-related code does not establish attribution to the original operator.
Condi propagates by scanning public IP addresses for exposed HTTP services and exploiting vulnerable devices. A principal infection vector is CVE-2023-1389, an unauthenticated command-injection vulnerability in TP-Link Archer AX21 routers. Exploitation downloads and executes shell scripts that retrieve architecture-specific bot binaries. Condi has also been deployed through exploitation of the GeoServer remote code execution vulnerability CVE-2024-36401. Attempts to distribute Condi-like payloads through CVE-2023-33538 in older TP-Link routers were observed, but the analyzed exploit attempts were unsuccessful.
The malware communicates with command-and-control infrastructure using a modified Mirai binary protocol and supports multiple TCP and UDP flooding methods, including SYN, ACK, and Valve Source Engine attacks. Operators can check bot activity, terminate bots, update distributed binaries, and start an embedded HTTP server on infected devices to serve additional malware. Condi aggressively terminates selected processes, including competing botnet processes, to retain control and hinder detection. Some process-killing logic is flawed and can disrupt legitimate device operation. It also deletes system utilities used for rebooting or shutting down devices to prolong infection, although the analyzed malware does not survive a system reboot. Condi campaigns have used cloud-hosted services for payload distribution and command-and-control communications.
Associated vulnerabilities
4 CVEs Mallory has correlated with this family across public research and vendor advisories. Each card links to the full Mallory page for that vulnerability.
Techniques & procedures
22 distinct techniques documented for this family, organized by ATT&CK tactic.
Initial Access
2 techniques
Initial Access
It also comes equipped with the ability to update itself with a newer version and act as a web server to spread the infection to other devices that connect to it.
It attempted to spread by exploiting TP-Link Archer AX21 (AX1800) routers vulnerable to CVE-2023-1389... sends a hardcoded exploitation request to download and execute a remote shell script... if it is a vulnerable TP-Link Archer AX21 device.
Execution
3 techniques
Execution
sends a hardcoded exploitation request... to download and execute a remote shell script at hxxp://cdn2[.]duc3k[.]com/t... The remote shell script is typical of Mirai-based loaders that try to download and execute binaries of each architecture in turn
The execFormatCmd() function calls tp_SystemEx() to execute "iwconfig %s essid %s" with the injected content... This final function executes the resulting command using execve("/bin/sh")
The attacks work by sending malicious HTTP GET requests to the /userRpm/WlanNetworkRpm endpoint. The requests carry commands embedded in the ssid parameter, which the router’s firmware processes without filtering harmful input.
Stealth
3 techniques
Stealth
This HTTP server masquerades as a legitimate Apache HTTP server by responding with the “Server: Apache” header when any URLs are requested.
Because of this, it deletes the following binaries used to shut down or reboot the system.
Because of this, it deletes the following binaries used to shut down or reboot the system. /usr/sbin/reboot /usr/bin/reboot /usr/sbin/shutdown /usr/bin/shutdown /usr/sbin/poweroff ...
Defense Impairment
2 techniques
Defense Impairment
The next command executes chmod 777 on the arm7 binary to grant the file read, write and execute permissions.
this malware employs several techniques to keep itself running... it also prevents infections from other botnets by attempting to terminate their processes.
Discovery
3 techniques
Discovery
it embeds a simple scanner modified from Mirai’s original Telnet scanner to scan for any public IPs with open ports 80 or 8080... We found source code for an older version of Condi that scans for devices with an open Android Debug Bridge port (TCP/5555)
It also reads the /proc/<PID>/status for each running process and compares the Name field... It also generates a random string... and attempts to kill any process with this string in its command line
Because of this, it deletes the following binaries used to shut down or reboot the system...
Lateral Movement
2 techniques
Lateral Movement
The arm7 binary also starts an HTTP server on the infected device using a port randomly chosen between 1024 and 65535. Once active, this server delivers fresh malware copies to other devices that connect to it, spreading the infection further without requiring any additional input from the attacker.
It also comes equipped with the ability to update itself with a newer version and act as a web server to spread the infection to other devices that connect to it.
Command and Control
5 techniques
Command and Control
The binary protocol used by Condi to communicate with the C2 server is a modified version of that initially implemented in Mirai.
Once it receives the command used to start the webserver, this malware downloads bot binaries... After that, it starts a basic HTTP server on a random port number above 1024 to host these binaries.
The binary protocol used by Condi to communicate with the C2 server is a modified version of that initially implemented in Mirai.
this malware downloads bot binaries from a hardcoded IP and port. After that, it starts a basic HTTP server on a random port number above 1024 to host these binaries.
The data is stored in the buffer var_868 from the fd_serv function, which is the command-and-control (C2) server socket... After receiving data, the arm7 binary checks for specific byte patterns
Impact
3 techniques
Impact
it also prevents infections from other botnets by attempting to terminate their processes... kills any processes with matching names... kills any processes with binary filenames containing the following extensions commonly used by other botnets
Below is this sample's list of attack functions... attack_tcp_syn... attack_tcp_ack... attack_tcp_socket... attack_tcp_thread... attack_tcp_bypass... attack_udp_plain... attack_udp_thread... attack_udp_smart
Finally, it generates two numbers... and kills any processes with a command line length matching either number. Killing off random processes based on their command line length is likely to wreak havoc and prevent the infected device from functioning correctly
Observables
34 indicators attributed across vendor reports, sandbox runs, and researcher write-ups. Values are masked here and available in full in Mallory.
Recent activity
14 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.