ShellBot, also known as PerlBot, is a Perl-based IRC botnet malware family used for distributed denial-of-service attacks and remote control of compromised Linux systems. It connects to an IRC command-and-control server, joins configured channels, and receives operator instructions. Its capabilities include arbitrary system command execution, reverse-shell access, file downloads, port scanning, data exfiltration, and UDP, TCP, and HTTP flooding. Some variants can download and install additional malware.
ShellBot is commonly deployed on internet-exposed Linux servers after attackers gain access through weak or default credentials, including brute-force and dictionary attacks against SSH services. Deployments have also followed compromise of Tomcat management interfaces and exploitation of server vulnerabilities, including Cacti CVE-2022-46169, vBulletin CVE-2020-17496, and Bash Shellshock vulnerabilities. Infections have been observed in containerized environments as well as conventional server deployments.
Multiple configurable variants exist, including LiGhT’s Modded perlbot v2, PowerBots, and B0tchZ. Observed variants and deployment scripts support persistence through cron jobs, startup scripts, or shell initialization changes. Evasion techniques include Perl obfuscation, masquerading as legitimate service processes, and removal of infection artifacts. Some samples ignore termination-related signals to improve resilience.
ShellBot has been used by the Outlaw threat group and by other operators targeting poorly secured Linux infrastructure. It is frequently deployed alongside other malware and utilities, including XMRig cryptocurrency miners, Tsunami DDoS bots, and log-cleaning tools. Cryptocurrency mining in these combined infections is performed by separate miner payloads rather than by ShellBot itself.
7 CVEs Mallory has correlated with this family across public research and vendor advisories. Each card links to the full Mallory page for that vulnerability.
1 distinct threat actor Mallory has associated with this family across public reporting. Open in Mallory to see the full evidence chain and overlapping campaigns.
The a binary is a script wrapper to start run, a Perl-obfuscated script for installation of a Shellbot to gain control of the infected system. The Shellbot disguises itself as a process named rsync... Shellbot is also used to control the botnet...
34 distinct techniques documented for this family, organized by ATT&CK tactic.
The entry point of this Shellbot malware was a misconfigured Tomcat application, with default credentials for its dashboard management.
"In early 2023, a third critical flaw tracked as CVE-2022-46169 ... came under active exploitation in the wild, allowing threat actors to breach internet-exposed Cacti servers to deliver botnet malware such as MooBot and ShellBot."
It then resets cron and removes possible cache files from other programs, starts scripts and binaries a, init0, and start, and sets the persistence by modifying the crontab.
The attacker gained access to the Tomcat container, brute forcing its default credentials and spawning a reverse shell. | These are the real Shellbot malware that forces the victim to communicate with the IRC server, executing and running whatever it wants.
These payloads try to execute system commands echo and id... The payload contains the PHP function shell_exec() for the execution of arbitrary system commands and a system command cat ../../../../../../../../../../etc/passwd...
The a binary is a script wrapper to start run, a Perl-obfuscated script for installation of a Shellbot to gain control of the infected system.
By exploiting this vulnerability, an attacker could have gained privileged access and control over any vBulletin server running versions 5.0.0 up to 5.5.4... allows attackers to send a crafted HTTP request with a specified template name and malicious PHP code, and leads to remote code execution.
It modified the shell configuration file so that it will download the files again when the user opens a new terminal.
It then resets cron and removes possible cache files from other programs, starts scripts and binaries a, init0, and start, and sets the persistence by modifying the crontab.
The entry point of this Shellbot malware was a misconfigured Tomcat application, with default credentials for its dashboard management.
It modified the shell configuration file so that it will download the files again when the user opens a new terminal.
It modified the shell configuration file so that it will download the files again when the user opens a new terminal.
It then resets cron and removes possible cache files from other programs, starts scripts and binaries a, init0, and start, and sets the persistence by modifying the crontab.
The entry point of this Shellbot malware was a misconfigured Tomcat application, with default credentials for its dashboard management.
The commands above Base64 decode the initial string into the following python code below and execute it with Python.
The Shellbot disguises itself as a process named rsync, commonly the binary seen on many Unix- and Linux-based systems to automatically run for backup and synchronization.
In the end, the malware removed all files, the history, and whatever it had fetched from the IRC server.
The entry point of this Shellbot malware was a misconfigured Tomcat application, with default credentials for its dashboard management.
The injected BASH commands above download a file, change its permissions to read/write/execute for all users, and executes the file... chmod 777 /tmp/besh
It modified the shell configuration file so that it will download the files again when the user opens a new terminal.
Note that while ShellBot supports log manipulation commands, the attackers also distributed MIG Logcleaner from the same address.
They also tracked down an IP address that had attempted to connect to the OSI server 38 times in what Air Force investigators called an SSH brute-force attack.
This post will cover a case where a threat actor managed to log in to poorly managed SSH servers after carrying out dictionary attacks, which was then followed by installing DDoS Bots and XMRig CoinMiner.
It modified the shell configuration file so that it will download the files again when the user opens a new terminal.
This ulimit.sh script initially checked the $EUID variable as a way to see if the attacker had root permissions.
It can also ask to perform a port scanning, which has the purpose to contact some specific ports of the target IP or a full-port scanning.
it printed out all sockets with their process name and process ID, searching for some specific ones to be killed with the kill -9 command.
bash.sh script looped endlessly to remove any evidence that this attack had existed... it printed out all sockets with their process name and process ID, searching for some specific ones to be killed
Bot.pl and craton.pl are two identical scripts used to communicate with different IRC servers, via different ports.
SuperShell is a sophisticated backdoor malware targeting Linux SSH servers... The attack begins with brute force and dictionary attacks against SSH servers...
The entry point of this Shellbot malware was a misconfigured Tomcat application, with default credentials for its dashboard management.
The IRC server can also request to download some specific resources within the victim machine. In this case, the machine calls another function to fetch that specific resource, storing it into the file system.
Bot.pl and craton.pl are two identical scripts used to communicate with different IRC servers, via different ports. | Shellbot malware enables the attackers to communicate with the C&C server... The C&C server, also called the IRC server in this scenario
Tsunami connects to the IRC server, joins a channel, and waits for the threat actor’s commands... ShellBot ... is also an IRC Bot that utilizes the IRC protocol like Tsunami.
Here is the PING-PONG exchange that is used to keep the communication channel alive between the bot and the IRC server.
It ran the following command in order to download the first bash script: This script first removed the traces in case it has already existed in the container, and then it downloaded these other files to be executed.
Tsunami supports ... command execution, and reverse shell... RSHELL Reverse shell ... ShellBot supports ... reverse shells.
The two sides can also send "private messages" in order to perform data exfiltration, exchange other information, or run more specific commands.
searching for some specific ones to be killed with the kill -9 command.
On November 16, 2020, OSI said one of its engineers found a cryptominer on one of its servers during a routine maintenance operation. The crypto-mining malware, which was running at full capacity, had blocked the server altogether, which was failing to process valid requests.
Once it receives the commands from the chat channel, it will execute the related code of port scanning, download files, execute system commands, start a flood attack, pop a shell to attackers and so on.
Tsunami supports various DDoS attack commands... SYNFLOOD ... UDP Flood ... ShellBot supports ... udpflood, tcpflood, httpflood.
121 indicators attributed across vendor reports, sandbox runs, and researcher write-ups. Values are masked here and available in full in Mallory.
16 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.