Rust Telnet Honeypot
What IoT botnets do after they log in · 186 hours on Google Cloud · Nov 3–10, 2026
In short
- What I built: a medium-interaction telnet honeypot in Rust, run on Google Cloud for 186 hours. 18 common factory-default logins get into a shell that's entirely fake. Every reply is fixed text compiled into the program, and nothing a visitor sends is ever run or fetched.
- What I found: 839 of 5,527 connections logged in and sent 3,784 commands, including 23 attempts to download and run malware. None of them produced an outbound connection. Most bots followed the same playbook, mapped below to MITRE ATT&CK.
- What it shows: a fixed-reply shell is safe but easy to spot. Almost every bot that checked for its own marker word left before the payload stage. Silent visitors fell from 82% to 12% after the server began opening with telnet negotiation. The IP address stayed the same, but almost none of the earlier visitors came back and the baseline is one day, so that cause isn't proven.
The post-login playbook
The playbook as a table
| Step | MITRE ATT&CK | Sessions | IPs |
|---|---|---|---|
| Log in with factory defaults | T1110.001, T1078.001 | 839 | 330 |
| Break out of a router's limited menu | T1059.008, T1059.004 | 576 | 211 |
| Try a router CLI | T1059.008 | 196 | 58 |
| Inject a shell into a ping tool | T1059.004 | 137 | 117 |
| Look around | T1082, T1087.001, T1033, T1083 | 192 | 118 |
| Find a writable folder, then check with a hex echo | T1083 | 198 | 60 |
| Check for a real BusyBox | T1497.001 | 82 | 28 |
| Check that echo works | T1497.001 | 12 | 12 |
The SHELL_TEST check | T1497.001 | 58 | 3 |
| Download and run | T1105, T1222.002, T1059.004 | 23 | 12 |
| Remove rival bots | T1489 | 2 | 2 |
| Clean up | T1070.004 | 6 | 5 |
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.
exit. The 308 that hit the limit held a bot for the full 30 seconds.Were these IPs already known?
- Almost all were already reported. On Nov 10 and Nov 11, I checked all 901 IPs that visited from Nov 2 to Nov 10 against AbuseIPDB, sending only the addresses (Nov 2 was the day before the shell, when the honeypot only showed a login prompt). Of the 330 that got into the fake shell, 328 (99%) had reports from the past year, and at least 316 (96%) had been reported before the honeypot first saw them. All 901 give the same shares: 891 (99%) had reports from the past year and at least 867 (96%) from before, and the other 10 had none in the past year. At least 48 of the 901 were research scanners such as Censys, Shadowserver and Shodan: none got into the shell, all had been reported before, and leaving them out moves none of these shares by as much as a point.
- The download IPs had all been reported before. All 12 IPs that tried a download had been reported before they arrived. For 5 of them, all 100 reports AbuseIPDB lists came after the honeypot saw them, so it took a second check, counting only the reports since a day before, to show there were older ones.
- Most of my reports weren't the first. Of the 170 IPs I reported to AbuseIPDB, someone else had reported 162 first: 158 shown by the reports AbuseIPDB lists, and 4 more by the same kind of second check. I was the first in the past year for 7. For the last one it can't be told: mine wasn't among the newest 100 reports AbuseIPDB lists, and the second check counted more reports than the first lookup had, because more came in between.
What defenders should do
- 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.
- Change factory-default logins before a device is deployed. 18 common defaults were enough for 839 logins from 330 IPs in 186 hours.
- 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.
- 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.
- 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.
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.
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.
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.