$ cd ~/projects/rust-telnet-honeypot

Rust Telnet Honeypot

What IoT botnets do after they log in · 186 hours on Google Cloud · Nov 3–10, 2026

Rust Google Cloud Terraform nftables MITRE ATT&CK pandas Plotly
Funnel chart, Nov 3–10: 5,527 connections; 4,805 sent a login (86.9%); 839 got into the shell (15.2%); 706 sent a command (12.8%); 348 ran a real-shell check (6.3%); 23 reached a download (0.4%).
Of 5,527 connections, 839 got into the fake shell and 23 reached a download. The last two steps overlap rather than nest: 7 of the 23 downloads came after a check.
01

In short

02

The post-login playbook

Bar chart of sessions per playbook step, in attack order, with ATT&CK IDs. The same numbers are in the table below.
Sessions that took each step. Most sessions took several. 348 of the 706 sessions with commands ran a check that only a real shell passes, and 341 of them stopped there.
The playbook as a table
StepMITRE ATT&CKSessionsIPs
Log in with factory defaultsT1110.001, T1078.001839330
Break out of a router's limited menuT1059.008, T1059.004576211
Try a router CLIT1059.00819658
Inject a shell into a ping toolT1059.004137117
Look aroundT1082, T1087.001, T1033, T1083192118
Find a writable folder, then check with a hex echoT108319860
Check for a real BusyBoxT1497.0018228
Check that echo worksT1497.0011212
The SHELL_TEST checkT1497.001583
Download and runT1105, T1222.002, T1059.0042312
Remove rival botsT148922
Clean upT1070.00465

The system-check rows use T1497.001 as the closest fit, as does T1489 for removing rival bots. The IPs column for logging in counts the IPs that got in.

Segmented bar: of 839 shell sessions, 531 (63%) hung up and 308 (37%) hit the 30-second limit.
None of the 839 sessions typed exit. The 308 that hit the limit held a bot for the full 30 seconds.
03

Were these IPs already known?

04

What defenders should do

  1. Block inbound telnet (23 and 2323) at the edge. 87% of connections here sent a login, and an open telnet port was all any of these bots needed to start.
  2. Change factory-default logins before a device is deployed. 18 common defaults were enough for 839 logins from 330 IPs in 186 hours.
  3. Put IoT devices on their own network segment, with outbound traffic restricted to what they need. Every dropper here had to fetch its payload from a raw IP address, over ports 80, 443, 8081 and 9087 or over TFTP or FTP. An outbound allow-list would have stopped every download in this data, as this honeypot's own firewalls did.
  4. Alert on new outbound connections from IoT devices. These devices talk to a small, fixed set of servers, so a connection to an unfamiliar address is worth a look, especially within minutes of an inbound login. The full report has a KQL query that does this from firewall logs.
  5. Use IP reputation blocklists, but as one layer, not the defense. At least 316 of the 330 IPs that got into the shell (96%) had been reported to AbuseIPDB before they reached the honeypot, so a reputation blocklist would likely have flagged most of them. A past report isn't the same as a high score on the day, though: the lookups give only each IP's score when it was checked, so what these IPs scored when they arrived can't be seen. By Nov 11, 551 of the 901 IPs (61%) scored 75 or above, and at least 2 of those, and as many as 6, had no reports until after they reached the honeypot. A blocklist only knows yesterday's attackers, so it adds to steps 1 to 4 rather than replacing them.

The detections were updated as the bots changed. The report's BusyBox rule now looks for an upper-case letter anywhere in the applet word, so a random word that starts in lower case is caught, and its download rule now covers BusyBox's FTP client, ftpget, and scripts piped out with -O- at the end of a line. Both are tested against the real command lines, masked. One gap remains: a generically named script saved to a file isn't caught, because matching every script fetched from a bare IP would also flag internal installers.

Bar chart of the usernames tried by the most IPs: root 351, admin 261, default 84, guest 60, support 57, user 41, telnetadmin 40, super 37, telecomadmin 34, Alphanetworks 26.
The usernames bots tried most widely. Passwords aren't shown, and neither are names only one IP tried.
05

The telnet opening, and its caveat

Before the shell, the honeypot only showed a login prompt, and 82% of visits sent nothing at all. 241 of those silent visits came from 11 IPs with the same rhythm: connect, stay silent for about 8 seconds, hang up and try again. Real devices start telnet negotiation as soon as a client connects, so the shell release does the same. From Nov 3 to Nov 6, silent visits fell to 12%, and 81% of visits answered the negotiation. Through Nov 10, silent visits stayed between 8% and 14% each day.

Bar chart of silent visits before and after the change: all visits 82% before and 12% after; without the 11 retry IPs, 66% before, and those IPs never came back; the 7 IPs seen in both periods, 40% before and 8% after.

The caveat. Turning on the shell meant reinstalling the server, but it kept the same IP address, so a change of address doesn't explain the drop. The visitors did change: only 7 of the 117 IPs from the day before were seen again. Those 7 went from 40% to 8% silent, which points the same way, but 7 is too few to prove it, and the baseline is a single day. The 11 retry IPs never came back to the same address, so for the bots that prompted the change, it's untested. The opening is the likeliest cause of the drop, but this setup can't rule out the change in visitors.

Line chart of visits per hour from Nov 2 to Nov 10, with a line marking the change on Nov 3 at 01:29 UTC, when the telnet opening and fake shell went live.
Visits per hour, UTC. The vertical line is the change, when the telnet opening and fake shell went live.

The full write-up

The report covers the safety design layer by layer, masked examples of every playbook step, the egress results and three detection rules in Sigma and KQL.