~ / honeypot / telegram-sms-modem-recon
30 November 2026 · Honeypot investigation · 9 min read

Nine commands, one checklist: an SSH bot that asks whether your server is a MikroTik, a miner, a Telegram login or an SMS gateway

honeypotcowriesshtelegramsmsmikrotikreconnaissance

Between 25 and 30 November four addresses in Russia, the United States, Japan and India logged in to my SSH honeypot as root and typed the same nine commands in the same order, each in about a minute. Read as a checklist, the commands ask whether the machine is a MikroTik router, whether someone is already mining on it, whether it holds a Telegram Desktop login, and whether it has a GSM modem or SMS gateway attached. Nothing came after the checks. One string in the script, D877F783D5D3EF8C, looks random and is not.

TL;DR

Sources Four addresses in four countries, each seen once: 176[.]195[.]91[.]255 (Russia, AS12714 PJSC MegaFon) on 25 Nov, 128[.]110[.]97[.]157 (United States, AS17055 University of Utah) on 28 Nov, 133[.]88[.]107[.]91 (Japan, AS58791 GMO Internet) and 183[.]83[.]196[.]230 (India, AS24309 Atria Convergence Technologies) on 30 Nov. My campaign grouper counts a fifth address with the same commands in the seven days to 30 Nov, which I have not looked at
Client SSH-2.0-libssh2_1.11.0 (HASSH 44ac1859818d6cacfb48ec9cb230b3f0) on three; libssh2_1.11.1 (HASSH f45fb203c31069bb280067b71ed92ccb) on the Russian address. A common library, so a weak link on its own
Access At most five root passwords: root, admin, 123456, 1234, toor. root/toor worked on three; root/123456 on the fourth
What it ran The same nine commands, in the same order, on all four, in about a minute. One question each: is this a MikroTik router, is someone already mining here, is there a Telegram Desktop login to steal, and is there a GSM modem or SMS gateway attached
Finding locate D877F783D5D3EF8Cs looks random but is not. D877F783D5D3EF8C is the first half of the MD5 of the word data, with the two hex digits of each byte swapped. That is how Telegram Desktop names the folder in tdata that holds an account's session. The two public write-ups I found that quote this command do not explain the string
Payload None. All four left after the last check
Verdict A triage script that sorts new SSH logins by what they are worth: router, mining host, Telegram account, SMS gateway. Byte-identical to captures published since at least May 2025. High confidence that it is one script; no attribution

Timeline

All times CST (UTC-6). Each address appears once, logs in, runs the nine commands and is gone within about two minutes of first contact.

When Address Guesses before the one that worked
25 Nov 19:02 to 19:04 176[.]195[.]91[.]255, Russia 4, then root/toor
28 Nov 11:11 to 11:12 128[.]110[.]97[.]157, United States 4, then root/toor
30 Nov 11:08 to 11:10 133[.]88[.]107[.]91, Japan 4, then root/toor. Session 9818ea949f44: 64 seconds, 11:08:12 to 11:09:16
30 Nov 19:59 to 20:01 183[.]83[.]196[.]230, India 2 (root, admin), then root/123456

The guess counts fit one short list tried in a fixed order, stopping at the first password that works. Which password the honeypot accepts is my sensor's setting, not the attacker's choice, so the difference on the last row says more about Cowrie than about the bot.

The nine commands

/ip cloud print
ifconfig
uname -a
cat /proc/cpuinfo
ps | grep '[Mm]iner'
ps -ef | grep '[Mm]iner'
ls -la ~/.local/share/TelegramDesktop/tdata /home/*/.local/share/TelegramDesktop/tdata /dev/ttyGSM* /dev/ttyUSB-mod* /var/spool/sms/* /var/log/smsd.log /etc/smsd.conf* /usr/bin/qmuxd /var/qmux_connect_socket /etc/config/simman /dev/modem* /var/config/sms/*
locate D877F783D5D3EF8Cs
echo Hi | cat -n

Read as a checklist, each line asks one question about the machine:

Decoding D877F783D5D3EF8C

Telegram Desktop keeps its login in a folder called tdata. Several of the names in it are not readable words but hex strings, made by hashing a short key name with MD5 and writing the first eight bytes of the result with the two hex digits of each byte swapped. The key name data gives:

MD5("data")               8d 77 7f 38 5d 3d fe c8 ...
each byte, digits swapped d8 77 f7 83 d5 d3 ef 8c
as a name                 D877F783D5D3EF8C

You can check it in one line: python3 -c "import hashlib;h=hashlib.md5(b'data').hexdigest();print(''.join(h[i+1]+h[i] for i in range(0,16,2)).upper())". The trailing s in the attacker's command matches the way Telegram Desktop names its files on disk, for example key_datas. Search for this name and you find the session wherever tdata lives: under another user, in a backup, in a portable install. The ls on the line before only checks the default path.

Why it matters: stealer malware has copied tdata folders for years, because the folder carries an authorised session. A copy opened on another machine can be signed in without the password and without the code sent to the phone, unless the owner has set a local passcode or ends the session. On a server, that folder usually exists because someone ran Telegram Desktop there for a bot or for remote work.

Two public write-ups quote this exact command. A SANS ISC guest diary (April 2026) calls it a "specific tdata folder lookup" and notes the trailing s. A GitHub write-up of a Cowrie deployment (September 2026) lists it next to the tdata path. Neither explains where the string comes from.

The SMS half of the same ls

The other paths in that ls have nothing to do with Telegram. They describe a machine with a cellular modem:

A host that can send and receive texts is worth more than its CPU. It can receive one-time codes for accounts registered to its SIM, send spam or fraud messages, or carry traffic for a "SIM box". The ISC diary reads the SMS check as a way to reset a stolen Telegram account by text message. That is one possible use; the command only shows that the script wants to know whether a modem exists, not what it would do with one.

What it did next: nothing

On my honeypot every check came back negative: no RouterOS, no miner, no tdata, no modem. All four sessions ended after echo Hi | cat -n, and no file was uploaded or downloaded. That fits a triage stage: the script records what each login is worth and something else comes back for the good ones. From a single sensor that always answers "nothing here", I cannot see what the follow-up looks like.

The same script since at least May 2025

The nine lines are not new. I found the same sequence in three public places:

A script that has not changed by a byte in a year and a half, with the same short password list, is maintained by nobody in particular, or by someone who sees no reason to change it. In both cases it keeps paying off often enough to keep running. The four sources I saw are a Russian mobile operator, a US university, a Japanese hosting company and an Indian broadband provider, which looks like borrowed machines rather than the operator's own.

Assessment

Limits

Detection ideas (for real systems)

A Sigma-style rule for the second and third points, written for the process events my honeypot tooling maps commands to:

title: SSH triage script hunting Telegram sessions and SMS modems
status: experimental
logsource: { product: linux, category: process_creation }
detection:
  router_probe:
    CommandLine|contains: '/ip cloud print'
  telegram:
    CommandLine|contains:
      - 'TelegramDesktop/tdata'
      - 'D877F783D5D3EF8C'
  sms:
    CommandLine|contains:
      - '/var/spool/sms'
      - 'smsd.conf'
      - 'qmux_connect_socket'
      - '/dev/ttyGSM'
  condition: router_probe or telegram or sms
level: high
tags: [attack.discovery, attack.t1082, attack.collection, attack.t1005]

MITRE ATT&CK

ID Technique Evidence
T1110.001 Brute Force: Password Guessing Two to four root guesses before the one that worked
T1078.003 Valid Accounts: Local Accounts root/toor, root/123456
T1082 System Information Discovery /ip cloud print, uname -a, cat /proc/cpuinfo
T1016 System Network Configuration Discovery ifconfig
T1057 Process Discovery ps | grep '[Mm]iner'
T1083 File and Directory Discovery ls -la of Telegram and modem paths; locate
T1005 Data from Local System (intent) Search for Telegram Desktop session data; nothing was found or taken

IOCs

ipv4    176[.]195[.]91[.]255         source, 25 Nov (AS12714, RU)
ipv4    128[.]110[.]97[.]157         source, 28 Nov (AS17055, US)
ipv4    133[.]88[.]107[.]91          source, 30 Nov (AS58791, JP)
ipv4    183[.]83[.]196[.]230         source, 30 Nov (AS24309, IN)
banner  SSH-2.0-libssh2_1.11.0   hassh 44ac1859818d6cacfb48ec9cb230b3f0   (low specificity)
banner  SSH-2.0-libssh2_1.11.1   hassh f45fb203c31069bb280067b71ed92ccb   (low specificity)
cmd     /ip cloud print
cmd     locate D877F783D5D3EF8Cs
cmd     ls -la ~/.local/share/TelegramDesktop/tdata ... /var/spool/sms/* ... /var/qmux_connect_socket ...
cred    root / toor, root / 123456

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