TP-Link Router Flaw Exploited by Mirai Botnet Variant
Attackers are exploiting CVE-2023-33538, a command injection flaw in TP-Link Archer AX21 routers, to deploy a Mirai botnet variant. The campaign hijacks devices for DDoS attacks and credential theft.

MITRE ATT&CK® TTPs (4)
Click any technique to view details on attack.mitre.org
Executive Summary
Attackers are actively exploiting a critical command injection vulnerability, CVE-2023-33538, in TP-Link Archer AX21 (AX1800) Wi-Fi 6 routers to install a variant of the Mirai botnet malware. According to analysis by Palo Alto Networks Unit 42, the exploitation attempts involve payloads that download and execute a malicious binary, granting the threat actor full control over the compromised device. The primary objectives appear to be the conscription of routers into a distributed denial-of-service (DDoS) botnet and the theft of credentials from the device's local storage.
Technical Analysis
The vulnerability exists in the tcpip service (/usr/bin/tcpip) on TP-Link Archer AX21 routers running firmware versions before 1.1.4 Build 20230509. As detailed by Unit 42, the flaw is a command injection issue within the service's handling of the PingAddr parameter. The service runs with root privileges, meaning successful exploitation results in complete system compromise.
The observed exploitation chain follows a predictable pattern. Attackers send a crafted HTTP POST request to the router's web management interface, injecting a command into the PingAddr field. This command typically downloads a shell script from a remote server using wget or curl, pipes it to sh for execution, and then deletes the script to cover its tracks. The shell script, in turn, fetches and executes a malicious ELF binary tailored for the router's CPU architecture (in this case, ARM).
The downloaded binary is a Mirai variant. Upon execution, it attempts to kill competing processes associated with other malware families, establishes persistence, and connects to a command-and-control (C2) server. The malware is equipped with standard Mirai capabilities for launching DDoS attacks using various protocols (UDP, TCP, HTTP floods). A notable addition in this variant is a module designed to scrape the router's filesystem for files containing strings like password and user, exfiltrating them to the C2 server.
Tactics, Techniques & Procedures
The threat actor employs the following TTPs, mapped to the MITRE ATT&CK framework:
- Initial Access: Exploit Public-Facing Application (T1190) via the router's web interface.
- Execution: Command and Scripting Interpreter: Unix Shell (T1059.004) through injected commands.
- Persistence: Create or Modify System Process (T1543) via the installed malware service.
- Defense Evasion: Indicator Removal on Host (T1070) by deleting the downloaded shell script.
- Collection: Unsecured Credentials: Credentials In Files (T1552.001) by searching for password strings.
- Command and Control: Application Layer Protocol: Web Protocols (T1071.001) for C2 communication.
- Impact: Network Denial of Service (T1498) via DDoS attack capabilities.
Threat Actor Context
The exploitation attempts bear the hallmarks of financially motivated botnet operators, a common profile for Mirai-based campaigns. The primary goal is to build a resilient network of compromised devices (bots) that can be rented out for DDoS attacks or used for credential theft. The targeting of a specific, widespread consumer router model suggests an opportunistic, scalable approach rather than a targeted attack. The use of a known vulnerability (CVE-2023-33538) that was patched by TP-Link in mid-2023 indicates the threat actors are scanning for and exploiting unpatched, internet-facing devices.
Mitigations & Recommendations
TP-Link released a patch for CVE-2023-33538 in May 2023. The primary and most critical mitigation is to ensure affected TP-Link Archer AX21 routers are updated to firmware version 1.1.4 Build 20230509 or later. Users should verify their current firmware version in the router's web administration interface and apply any available updates immediately.
Additional defensive actions include:
- Disabling remote administration (WAN-side management) on the router if it is not required.
- Changing default administrative credentials to strong, unique passwords.
- Implementing network segmentation to isolate IoT devices from critical internal networks.
- Monitoring network traffic for unexpected outbound connections, particularly to unknown IP addresses on non-standard ports, which may indicate C2 communication. Organizations should incorporate IoT device vulnerability management into their security programs, as these devices are frequent initial access vectors.
Stay Updated
Get the latest cybersecurity news delivered to your inbox.

