LIVE · cybersecurity feed
Live wire
iothigh

Inside the Cross-Platform Propagation of a New Gafgyt Variant C0XMO

FortiGuard Labs has identified a new variant of the Gafgyt botnet, dubbed C0XMO, which exhibits cross-platform propagation capabilities by exploiting a vulnerability in DD-WRT router firmware. The malware, discovered in March, utilizes CVE-2021-27137 to gain initial access. A notable characteristic of C0XMO is its separation of lateral movement functions into a distinct Python script, allowing…

ZeroDay News ·

Source: Fortinet Threat Research

FortiGuard Labs has identified a new variant of the Gafgyt botnet, dubbed C0XMO, which exhibits cross-platform propagation capabilities by exploiting a vulnerability in DD-WRT router firmware. The malware, discovered in March, utilizes CVE-2021-27137 to gain initial access. A notable characteristic of C0XMO is its separation of lateral movement functions into a distinct Python script, allowing for more efficient targeting of diverse system architectures and device types.

The exploitation of CVE-2021-27137, a stack buffer overflow flaw within the UPnP service of vulnerable DD-WRT firmware, is the primary infection vector. Attackers send specially crafted M-SEARCH requests via UDP port 1900, which the SSDP parser in the affected firmware mishandles when encountering oversized ST:uuid: values. While an attack was observed targeting a Japanese technology firm, the originating IP address was traced to Germany. Once compromised, the affected host downloads the malware to a temporary directory.

Analysis of C0XMO revealed multiple compiled samples for various Linux architectures, including ARM, MC68000, MIPS R3000, PowerPC, SuperH, Intel 80836, and AMD64. This broad compilation strategy enhances the botnet's reach across a wide range of devices.

C0XMO shares common traits with other Gafgyt variants, such as employing weak-credential brute-force attacks against Telnet and SSH, incorporating embedded command-injection vulnerabilities, and supporting various Distributed Denial of Service (DDoS) attack techniques.

Upon execution on a compromised system, C0XMO implements a four-stage persistence mechanism. This involves setting up persistence, copying itself to multiple locations, configuring auto-start routines, and terminating competing processes. The malware first checks its execution path to ensure persistence. It then creates several hidden file paths, including directories within /tmp, /var/tmp, and /dev/shm. C0XMO copies itself to these hidden locations and sets execute permissions. If a home directory exists, it also copies itself there.

To maintain persistence, C0XMO creates cron jobs that schedule its execution every 15 minutes. Additionally, it appends execution commands to common shell profile files like ~/.profile, ~/.bashrc, and ~/.bash_profile, ensuring the malware restarts if terminated.

A significant feature of C0XMO is its "competitor killing" functionality. After establishing local persistence, the malware scans all active processes on the system. It maintains an internal blacklist of process names, targeting botnet malware, network services, programming tools, and red team utilities. If a process name matches an entry on this blacklist, C0XMO terminates it. The malware also checks the executable paths of terminated processes against a path blacklist and deletes matching files. Furthermore, C0XMO actively attempts to eliminate rival botnets by not only deleting their binaries but also removing their associated persistence mechanisms, such as cron jobs, rc.local entries, and system services.

Following local persistence setup, C0XMO establishes a connection to its command and control (C2) server located at 85[.]215[.]131[.]70. The malware employs a custom handshake protocol, beginning with a specific magic string and a shared secret. The C2 server confirms the handshake with "HANDSHAKE_OK," after which C0XMO identifies itself as a botnet node. The handshake concludes with a final magic value, prompting a welcome message from the server.

The botnet supports five primary commands received from the C2 server: ping, stop, scan, stopscan, and attack-related commands. The ping command functions as a heartbeat mechanism, with the infected host responding with "PONG" if active.

C0XMO is equipped to launch 19 different types of DDoS attacks, encompassing UDP and TCP floods, SYN floods, amplification attacks (NTP, Memcached), ICMP floods, Ping of Death, and various HTTP-based attacks designed to exhaust resources or bypass defenses like Cloudflare.

Unlike many botnets, C0XMO isolates its scanning functionality into a separate Python script. This script is downloaded from the same IP address and port used for distributing the main C0XMO binary. The scanner script requires several Python packages, including requests, paramiko, and beautifulsoup4, for network communication and SSH/Telnet interactions. The scanner is executed with arguments specifying random IP scanning, target ports, runtime duration, and the C2 server address. The scanner itself is organized into six categories: Worker, Blacklist, Telnet, SSH, HTTP Exploit, and ADB Exploit.

iotmalwarebotnetvulnerability
ShareXLinkedInWhatsAppFacebook

More News

view all →
security

Canadian cybersecurity executive arrested in federal extortion case

A Canadian cybersecurity executive was arrested in Pennsylvania on Thursday, facing federal charges of conspiracy to commit extortion. Edward Dubrovsky, 54, a co-founder and former Chief Operating Officer of CYPFER, a firm specializing in ransomware negotiation, is charged with conspiring to threaten the confidentiality of information for extortion and conspiring to commit Hobbs Act extortion,…

breach

Criminal IP Introduces AITEM as the Next Evolution of Attack Surface Management

AI SPERA, the company behind the cyber threat intelligence platform Criminal IP, has announced AITEM (AI-Powered Threat Exposure Management), an expansion of its Attack Surface Management (ASM) offerings. AITEM aims to move beyond traditional asset discovery to provide a more comprehensive approach to understanding, prioritizing, and responding to security exposures. The platform is scheduled…

ai

AI Is Getting Really Good at Messing With Cybercriminals

Anti-cybercrime initiatives are increasingly deploying artificial intelligence to disrupt scammers by engaging them with lifelike bots, which the criminals mistake for genuine victims. This strategy aims to waste scammers' time and resources while gathering intelligence on their operations.

ransomware

FBI Arrests Ransomware Negotiation Firm Co-Founder in ShinyHunters Probe

The Federal Bureau of Investigation (FBI) has reportedly arrested Edward Dubrovsky, a co-founder of the ransomware negotiation firm Cypfer and currently associated with CyberSteward. The arrest is said to be part of the ongoing ShinyHunters investigation, specifically in connection with an incident involving FBI job applicant data.

ai

The Third-Party Agent Problem: Why Security Built for AI You Chose Misses the Agents You Didn't

A new report highlights a significant blind spot in enterprise security architectures concerning the proliferation of third-party AI agents. The forthcoming 2026 State of Agent Security Report indicates that current security models, often designed to protect AI systems directly chosen and deployed by an organization, frequently fail to account for AI capabilities embedded within third-party…

security

Insider Cyber Extortion Plot Against Industrial Firm Lands Engineer in Prison

A former core infrastructure engineer has been sentenced to prison for an attempted cyber extortion plot against an industrial firm. The engineer reportedly deleted administrative accounts and reset hundreds of user passwords, subsequently demanding a ransom of 20 Bitcoin to prevent further disruption to the company's servers.