~ / honeypot / mirai-busybox-telnet
22 November 2026 · Updated 23 November · Honeypot investigation · 7 min read

Fourteen seconds of Mirai: a Telnet loader that checks for BusyBox before it commits

honeypotcowriemiraitelnetiotbusybox

Two home internet lines in Pakistan, twenty minutes apart, guessed their way into a Telnet honeypot with root/samsung, walked out of five vendor router consoles, probed every writable directory, and asked BusyBox to echo a random hex token. Cowrie could not answer, so the loader never sent its binary.

Update, 23 Nov 2026. The same routine came back today with variations, from eight more addresses. None of the three I inspected in full delivered a binary.

The nine-command chain above, five more times. 103[.]152[.]100[.]77 (Pakistan, AS151330 Play Broadband, the same AS as my second source) is the one I read in full: session 92a509912206, 14 seconds again, token VFYGHR, admin/12345 after 24 failed logins. 103[.]66[.]148[.]149, 119[.]116[.]32[.]174, 153[.]117[.]127[.]220 and 153[.]117[.]34[.]230 ran the same chain as well; for those four I have only the summaries my reporting tool wrote, not a full read of each session.

A shorter variant, twice. 213[.]91[.]204[.]178 (Vivacom, Bulgaria) and 43[.]254[.]125[.]78 ran enable; system; shell; sh and then cat /proc/mounts; /bin/busybox <token>, with tokens BIQSN and OEHPM. There is no directory probe and no hex echo. The loader asks BusyBox for an applet that does not exist; a real BusyBox answers with an “applet not found” line naming the token, and Cowrie did not. The first one guessed 666666/666666, root/1111, root/anko and then got in with root/5up, all straight from the original Mirai credential table (Suricata flagged two of them as ET MALWARE Possible Linux.Mirai Login Attempt). Shodan shows 213[.]91[.]204[.]178 is itself a MikroTik RouterOS device with Winbox, API and FTP open. An infected router scanning for more devices fits the model in the Assessment below, though I cannot prove that router is infected.

A different probe, same credentials. 45[.]198[.]224[.]130 (AS215925 Vpsvault.host, US; its address block and its AS are both on Spamhaus DROP) tried root/xc3511 and vizxv, then ran a=K60; b=706; echo $a$b > /tmp/.zq || echo $a$b > /var/tmp/.zq; cat /tmp/.zq /var/tmp/.zq; echo $a$b; id -u; uname -m; echo ZE. That writes a random token to a hidden file, reads it back, and records the user ID and CPU architecture. It sends no BusyBox check at all, but it uses the same default-credential list (Suricata: ET EXPLOIT HiSilicon DVR - Default Telnet Root Password).

Taken together: the routine is not one script but a family of near-identical checks (hex echo, applet-not-found, write-and-read-back) that share one credential table and one goal, which is to confirm a real, writable device before sending a binary.

TL;DR

Sources 39[.]34[.]186[.]146 (AS132165, Pakistan Telecommunication) at 18:56 and 103[.]198[.]154[.]134 (AS151330, Play Broadband) at 19:18. Both fixed-line ISP addresses in PK
Sensor Cowrie (T-Pot 24.04.1), Telnet/23
Access 24 and 22 failed logins with router and fiber-gateway defaults; root/samsung worked for both, admin/adminpass for the second
Session 98dc47de32f7, 18:56:08 to 18:56:22 CST (14 s, 9 commands)
What it did Escaped vendor CLIs, found a writable directory, then ran /bin/busybox echo -e with a hex token
Outcome Cowrie failed the BusyBox check; the loader disconnected without sending a payload
Family Mirai-family loader. High confidence on lineage (credentials straight from the original Mirai table plus textbook loader behavior); exact variant unknown, no binary delivered
Reputation Both GreyNoise malicious. AbuseIPDB 37% (11 reports) and 100% (170 reports); both in OTX botnet or malware feeds; neither has a Shodan record

Timeline

All times CST (UTC-6), 22 Nov 2026.

Time Event
18:56:04 First Telnet connection
18:56:04 to 18:58:00 25 Telnet sessions, 24 failed logins
18:56:08 root/samsung succeeds; session 98dc47de32f7 opens
18:56:08 to 22 9 commands, then disconnect
18:58:00 Last event from the first source
19:18:24 to 19:20:47 Second source, 103[.]198[.]154[.]134: 25 sessions, 22 failed logins, then three logins (admin/adminpass twice, root/samsung) each running the identical 9 commands

The wordlist tells you the target

The credential list is not a generic password spray. It is a list of factory defaults for consumer network hardware:

Tried What it suggests
ubnt / ubnt Ubiquiti radios and routers
telecomadmin, cuadmin, super, admin with vendor-looking passwords Superuser accounts on ISP-issued fiber gateways (ONTs), widely published in default-credential lists
root / samsung, root / system, root / 12341234 Embedded Linux defaults (DVRs, cameras, set-top boxes)
administrator / 1234, admin / pass Generic web-admin defaults

The second source's list removes any doubt about lineage. It included root/vizxv, root/juantech and admin/smcadmin, entries from the hardcoded credential table in the original Mirai source release, alongside newer fiber-gateway defaults such as gpon/gpon, cht/chtngpon and gdcuadmin/gdcuadmin. Mirai forks keep the original table and append to it.

The bot is looking for devices that ship with a fixed password and a Telnet port nobody closed.

What it ran

start
enable
config terminal
system
linuxshell
su
shell
sh
>/var/run/.x&&cd /var/run;>/mnt/.x&&cd /mnt;>/usr/.x&&cd /usr;>/dev/.x&&cd /dev;>/dev/shm/.x&&cd /dev/shm;>/tmp/.x&&cd /tmp;>/var/.x&&cd /var;/bin/busybox echo -e '\x59\x57\x5a\x48\x55\x58'

Step by step

  1. Console escape (start to sh). Many routers drop Telnet users into a restricted vendor shell. enable, config terminal, system, linuxshell, su, shell and sh are the escape commands for several vendors' consoles, sent blind in sequence. Whatever works first lands the bot in a real shell; the rest fail harmlessly.
  2. Writable-directory probe. >/var/run/.x && cd /var/run creates an empty hidden file and, only if that succeeds, moves into the directory. Chained across /var/run, /mnt, /usr, /dev, /dev/shm, /tmp and /var, it leaves the shell in the last writable directory. On a read-only router filesystem that is usually a RAM disk like /dev/shm or /tmp. That is where the binary would go (T1083, T1564.001).
  3. The BusyBox test. /bin/busybox echo -e '\x59\x57\x5a\x48\x55\x58' should print YWZHUX. The second source sent ENPIWW instead: the token is randomized per run, so the bot can tell a real reply from a canned one. It checks three things at once: BusyBox exists, the echo applet runs, and echo -e turns hex escapes into raw bytes.

That third point is the real purpose. When a device has no wget, curl or tftp, Mirai-style loaders write the bot binary with repeated echo -ne '\x7f\x45\x4c\x46...' >> file, a few hundred bytes at a time. The hex-echo test proves that delivery method will work before the loader spends any effort on it.

Why it stopped

The BusyBox line is in Cowrie's failed-command log:

/bin/busybox echo -e \x59\x57\x5a\x48\x55\x58

Cowrie's BusyBox emulation did not run the echo applet with hex escapes, so the token never came back. A real device prints YWZHUX; the loader got nothing, concluded this was not a usable target, and disconnected. Total time inside: 14 seconds.

Suricata flagged the same session independently with three ET HUNTING SUSPICIOUS busybox rules (shell, path and enable).

Assessment

MITRE ATT&CK

ID Technique Evidence
T1110.001 Brute Force: Password Guessing 24 and 22 failed logins with device defaults
T1078.001 Valid Accounts: Default Accounts root/samsung
T1059.004 Command and Scripting Interpreter: Unix Shell Console escape to sh
T1083 File and Directory Discovery Writable-directory probe chain
T1564.001 Hide Artifacts: Hidden Files and Directories .x probe files
T1027 Obfuscated Files or Information Hex-escaped echo -e token

Detection ideas

IOCs

ipv4   39[.]34[.]186[.]146         source (likely an infected device; AS132165, PK)
ipv4   103[.]198[.]154[.]134       source (likely an infected device; AS151330, PK)
cred   root / samsung, admin / adminpass (Telnet)
token  YWZHUX, ENPIWW   (randomized per run; low value as IOCs)
regex  >/[a-z/]+/\.x&&cd /[a-z/]+;.*/bin/busybox
regex  cat /proc/mounts; /bin/busybox [A-Z]{4,8}   (short variant, 23 Nov)
ipv4   103[.]152[.]100[.]77        23 Nov, nine-command chain (AS151330, PK); token VFYGHR
ipv4   103[.]66[.]148[.]149        23 Nov, nine-command chain (from summary)
ipv4   119[.]116[.]32[.]174        23 Nov, nine-command chain (from summary)
ipv4   153[.]117[.]127[.]220       23 Nov, nine-command chain (from summary)
ipv4   153[.]117[.]34[.]230        23 Nov, nine-command chain (from summary)
ipv4   213[.]91[.]204[.]178        23 Nov, short variant (AS8866, BG; MikroTik); token BIQSN
ipv4   43[.]254[.]125[.]78         23 Nov, short variant; token OEHPM
ipv4   45[.]198[.]224[.]130        23 Nov, write-and-read-back probe (AS215925, Spamhaus DROP)

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