Outlaw
- Type
- Botnet
- Capabilities
- Initial accessBrute forceScanningLateral movementPersistenceReconnaissanceExfiltrationDefense evasionPost exploitationDDOS
- Delivery
- Cracked software
- Platforms
- Linux
Outlaw, also known as Dota, is a Linux cryptocurrency-mining botnet associated with the Outlaw Hacking Group, first publicly identified in 2018. It opportunistically compromises SSH-accessible systems using weak or default credentials and uses infected hosts to attack additional systems, including machines on local subnets. Its modular package combines a modified XMRig Monero miner, a Perl-based STEALTH SHELLBOT backdoor, and the BLITZ SSH brute-force component. Victims have been observed across multiple countries, without a demonstrated restriction to a particular industry.
Following compromise, shell scripts retrieve and install the malware package. Outlaw maintains persistence through scheduled and reboot-triggered cron jobs, watchdog scripts, and attacker-controlled SSH public keys. Some components replace existing SSH authentication material and apply restrictive or immutable filesystem attributes to obstruct removal. The miner uses embedded pool configurations, while supporting scripts optimize RandomX performance through hugepages and model-specific register settings. Outlaw terminates competing miners and other resource-intensive processes to reserve computing resources for its own mining activity.
The IRC backdoor supports remote command execution, payload downloads, file uploads, port scanning, and DDoS attacks. BLITZ retrieves target addresses and credential lists, performs multithreaded SSH password guessing, changes compromised account passwords, and transfers the malware package directly to new victims. It collects host characteristics and compromised-account details and exfiltrates them through SSH-based infrastructure. Defense-evasion techniques include hidden installation directories, command and Perl obfuscation, Base64 encoding, packed binaries, and process masquerading. Although much of the operation is automated, interactive operator reconnaissance and payload reinstallation have also been observed.
Associated vulnerabilities
1 CVE Mallory has correlated with this family across public research and vendor advisories. Each card links to the full Mallory page for that vulnerability.
Associated threat actors
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.
According to this article, this apparently belong to the "Outlaw Hacking Group" which was first identified by TrendMicro in 2018.
Techniques & procedures
35 distinct techniques documented for this family, organized by ATT&CK tactic.
Initial Access
1 technique
Initial Access
Following successful SSH brute-force authentication, the malware replaces the existing SSH authorized_keys file with a new version containing a malicious SSH public key... The malware then changes the user credentials for the authenticated account by entering a new password using the passwd utility.
Execution
3 techniques
Execution
In both scripts, the malware installs cron jobs that execute its binaries at regular intervals and on system reboots.
The attack starts when tddwrt7s.sh downloads the dota3.tar.gz package from a C2 server. The extracted initall.sh script executes, kicking off the infection chain.
The run script contains three base64-encoded blobs, which are piped to perl ... Upon base64 decoding, obfuscated perl scripts are identified.
Persistence
5 techniques
Persistence
In both scripts, the malware installs cron jobs that execute its binaries at regular intervals and on system reboots.
Following successful SSH brute-force authentication, the malware replaces the existing SSH authorized_keys file with a new version containing a malicious SSH public key... The malware then changes the user credentials for the authenticated account by entering a new password using the passwd utility.
Once access is gained, it changes the user’s password for persistent access.
The malware removes and recreates the victim’s ~/.ssh folder, injects an attacker-controlled SSH public key, and re-applies restrictive permissions.
If the file does not exist, it enables MSR writes through the modprobe msr allow_writes=on command.
Privilege Escalation
5 techniques
Privilege Escalation
In both scripts, the malware installs cron jobs that execute its binaries at regular intervals and on system reboots.
Following successful SSH brute-force authentication, the malware replaces the existing SSH authorized_keys file with a new version containing a malicious SSH public key... The malware then changes the user credentials for the authenticated account by entering a new password using the passwd utility.
Once access is gained, it changes the user’s password for persistent access.
The malware removes and recreates the victim’s ~/.ssh folder, injects an attacker-controlled SSH public key, and re-applies restrictive permissions.
If the file does not exist, it enables MSR writes through the modprobe msr allow_writes=on command.
Stealth
6 techniques
Stealth
These init scripts all use variable-based string concatenation obfuscation, where commands are split into small variable fragments that are dynamically concatenated and executed.
The malware's binaries are packed with UPX, reducing their size and altering their signature to evade traditional malware detection.
For persistence purposes, the attackers used the following command to wipe the existing SSH setup... cd ~ && rm -rf .ssh && mkdir .ssh ...
Following successful SSH brute-force authentication, the malware replaces the existing SSH authorized_keys file with a new version containing a malicious SSH public key... The malware then changes the user credentials for the authenticated account by entering a new password using the passwd utility.
The run script contains three base64-encoded blobs, which are piped to perl.
The primary execution path installs the malware in the hidden directory ~/.configrc6.
Defense Impairment
4 techniques
Defense Impairment
The script ends off with installing its own SSH public key for persistent access, setting restrictive permissions, and making the directory immutable to prevent modification through chattr.
The script grants execution permissions to the upd file and '777' permissions to all files in its folder. The malware also uses chattr +ia to prevent modification.
The malware ensures dominance by killing competing brute-forcers and miners... the run script will start the stop script, which is a typical script that bring down the defenses of any known miner configurations any known miner configurations and kill any known miner processes
The run script will start the stop script, which is a typical script that bring down the defenses of any known miner configurations and kill any known miner processes.
Credential Access
2 techniques
Credential Access
OUTLAW gains initial access through opportunistic SSH brute-forcing, targeting systems with weak or default credentials. The malware employs its blitz component... to perform high-volume scanning and password-guessing attempts.
OUTLAW gains initial access through opportunistic SSH brute-forcing, targeting systems with weak or default credentials.
Discovery
6 techniques
Discovery
Once access is gained, it executes system reconnaissance commands, collecting user privileges.
The malware scans the local subnet of newly compromised systems, identifying additional SSH-accessible machines to attack.
Below are the Outlaw TTPs identified from our malware analysis... Discovery System Network Connections Discovery T1049
The attacker immediately performed basic reconnaissance by running the w command to check who was logged in and then executing ps to see what processes were running.
The malware executes various commands to collect details about the system’s CPU, user privileges, operating system, memory usage, and available binaries.
Below are the Outlaw TTPs identified from our malware analysis... Discovery Account Discovery T1087
Lateral Movement
1 technique
Lateral Movement
BLITZ systematically scans for and compromises systems with weak or default SSH credentials.
Collection
3 techniques
Collection
Below are the Outlaw TTPs identified from our malware analysis... Collection Data from Local System T1005
Upon successful authentication, Blitz logs attack details into a 'v' file.
This data is stored in a simple text file before being uploaded to a C2 server... Upon successful authentication, Blitz logs attack details into a 'v' file.
Command and Control
4 techniques
Command and Control
SHELLBOT scripts operate as IRC-based backdoors, allowing attackers to remotely control infected machines via predefined commands sent through an IRC channel.
STEALTH SHELLBOT for remote control via IRC C2... SHELLBOT scripts operate as IRC-based backdoors, allowing attackers to remotely control infected machines via predefined commands sent through an IRC channel.
kswapd01 establishes a new connection by launching a fresh socat process to listen on the local machine and forward traffic to a remote server, typically on port 4444.
tddwrt7s.sh downloads the dota3.tar.gz package from a C2 server.
Exfiltration
1 technique
Exfiltration
Exfiltration occurs when OUTLAW initiates an outbound SSH connection via sftp-server to transfer the collected information to a predefined C2 server.
Impact
2 techniques
Impact
Interestingly enough, one of the first execution steps is checking if other known miners are present on the machine... If any miners are found, the script tries to kill and block their execution.
kswapd0 is a maliciously modified copy of the legitimate XMRig cryptocurrency miner.
Observables
56 indicators attributed across vendor reports, sandbox runs, and researcher write-ups. Values are masked here and available in full in Mallory.
Recent activity
17 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.