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:
/ip cloud print: is this a MikroTik router? It is a RouterOS command that prints the router's cloud DDNS name. On Linux it fails, and it was the only command my honeypot could not answer. A script that opens with it expects some of its logins to land on routers.ifconfig,uname -a,cat /proc/cpuinfo: what is it? Network interfaces, kernel and architecture, CPU model and core count. Standard for anything that might install a miner.ps | grep '[Mm]iner', twice: is someone already mining? The brackets are a small, deliberate trick. The pattern[Mm]inermatches "Miner" and "miner" but not the text[Mm]ineritself, so the grep does not find its own process. The second form,ps -ef, covers systems where plainpsprints too little.- The long
ls -la: is there a Telegram account or an SMS modem here? One command, two different hunts (next two sections). locate D877F783D5D3EF8Cs: where is the Telegram session, if not in the usual place?echo Hi | cat -n: does the shell behave? On a real system this prints1 Hi. A pipe and a numbered line are a cheap test that output is coming back unmangled, and a parser can match on it.
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:
/dev/ttyGSM*,/dev/ttyUSB-mod*,/dev/modem*: serial devices for GSM and USB modems./var/spool/sms/*,/var/log/smsd.log,/etc/smsd.conf*: the spool folders, log and configuration of smsd, the SMS server daemon from smstools, which sends and receives text messages through an attached modem./usr/bin/qmuxd,/var/qmux_connect_socket: Qualcomm's modem multiplexing daemon and its socket, found on devices built around Qualcomm cellular chips./etc/config/simman,/var/config/sms/*: configuration paths of the kind cellular routers keep for SIM management and SMS./etc/config/is where OpenWrt-based routers keep their settings.
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:
- An AbuseIPDB report filed by ThreatBook on 7 May 2025 against an Oracle Cloud address, quoting the commands from
/ip cloud printthrough the device paths. - A Japanese T-Pot operator's Cowrie log analysis (August 2025) with all nine commands, including
locate D877F783D5D3EF8Cswith the trailings. - The SANS ISC guest diary of April 2026 and the GitHub write-up of September 2026 mentioned above.
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
- What: the post-login triage step of an SSH operation that collects Linux servers, MikroTik routers, Telegram sessions and SMS-capable hosts. High confidence that the four sessions ran one script (identical text and order, identical first guesses). Medium confidence on purpose, which is read from the paths, not from anything the operator did on my sensor.
- Who: unknown. Four networks in four countries, a public library client, no payload, no server address. No attribution.
- Not a miner dropper, on this evidence. It checks for miners, but the check is as consistent with avoiding a competitor as with joining one. Nothing was installed.
Limits
- One sensor, four sessions. The fifth address my grouper counted is not in these tables.
- Reputation lookups for the four addresses were not part of this pass.
- My honeypot has no Telegram data and no modem, so the script never had a reason to go further. What it does after a positive answer is not something I can observe.
Detection ideas (for real systems)
- File access: any process other than Telegram Desktop reading
tdata, or alocate/findforD877F783D5D3EF8C. On a server there is no innocent reason for either. - Commands:
/ip cloud printtyped into a Linux shell. Nobody does that by hand on a Linux box; a script that expects a router does. - Commands: a single
lsthat names both Telegram paths and SMS modem paths. The combination is the fingerprint. - Auth: a successful root password login with
tooror123456after a handful of tries. Disable root password login and it never gets that far. - If you run Telegram Desktop on a server: set a local passcode, and end sessions you do not use from Settings, Devices.
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
- SANS ISC, “[Guest Diary] Beyond Cryptojacking: Telegram tdata as a Credential Harvesting Vector, Lessons from a Honeypot Incident” (22 Apr 2026): isc.sans.edu/diary/32888
- abateee, “cowrie-honeypot-writeup” (GitHub, September 2026 observation window)
- えるくじらのブログ, “ハニーポット(T-pot)運用_Cowrieログ分析2” (August 2025): the same nine commands
- AbuseIPDB report by ThreatBook.io, 7 May 2025, against 129[.]146[.]125[.]185: the same command list
- smstools (smsd) documentation: spool and configuration paths
- Hunt reports for the four addresses, 30 Nov 2026, and the seven-day campaign grouping