Cowrie SSH Sensors: possible hands-on attack?

Nov 27, 2026 · @Anthony

TLP:CLEAR — You may share this report without restriction. Sensor addresses and the values of planted honeytokens have been left out.

FieldValue
SensorsSensor 1, Sensor 2 – Cowrie SSH/Telnet
Collection window2026-11-27 00:00 – 18:38 UTC (partial day)
Historical lookbackSensor logs 2026-11-19 – 2026-11-26, used to see when each source was first seen

Executive summary

The most important event: an operator from 193.47.62.69 spent 76 minutes inside Sensor 2. Its commands looked like a person or an AI agent working step by step. It found and used planted database, AWS and Vault breadcrumbs, then worked out that it was on a honeypot by testing whether uploaded binaries would run.

  • Hands-on / agentic intrusion (193.47.62.69): 63 sessions, 100+ staged commands, 16 unique files uploaded. It went after credentials and tried to move to other internal hosts.
  • Honeypot-detection suite (92.118.39.77, 2.57.122.150): structured check_<md5> probes that test whether the shell behaves like a real POSIX shell.
  • Outlaw botnet (50.6.195.65): installed the well-known mdrfckr SSH key and changed the root password.
  • Diicot / Mexals (109.160.32.40, 109.160.32.168): cleared out competing malware, then uploaded the same two payloads by SCP in two separate intrusions.
  • Proxy abuse (176.53.159.196, 77.90.185.29, 138.226.239.233-234): used SSH direct-tcpip to send DNS and TLS traffic through the sensor.

Sensor activity

Sensor 2 got fewer connections than Sensor 1 but about 10 times as many successful logins. Almost all of the post-login activity happened there.

MetricSensor 1Sensor 2
Events30,83225,753
Sessions6,0965,125
Unique source IPs167205
Failed logins6,3124,974
Successful logins988
Commands entered84230
File downloads/uploads captured1231
direct-tcpip (proxy) requests023

Top sources by connection count were 109.160.32.40 (1,288) and 109.160.32.168 (1,230) on Sensor 1, and 39.109.122.90 (749) on Sensor 2. The 77.239.124.0/24 range hit both sensors at about 550 connections per address.

Finding 1 — Hands-on or agentic intrusion from 193.47.62.69

Between 14:07 and 15:23 UTC, 193.47.62.69 opened 63 SSH sessions on Sensor 2 as deploy:deploy. It went from recon to credential use to attempts at moving to other hosts. Then it began testing the sensor itself.

How it operated

  • The client was a real SSH-2.0-OpenSSH_8.9p1 Ubuntu-3ubuntu0.18 (HASSH e1d88fdd485f9c710074daa1fcce80a6) sending LANG=en_US.UTF-8. Commodity bots send SSH-2.0-Go.
  • It ran one command per session, with a new session about every 8 seconds.
  • Commands carried phase markers (@@@STAGE2, @@@DEEP, @@@DB, @@@DB2). Each command changed based on the last one’s output, which points to a person or an LLM-driven agent working step by step.
  • This is the first time this address has been seen on any sensor. 193.47.62.153, in the same /24, validated deploy:deploy and checked GPU details on Sensor 1 (Nov 25, Nov 27) and Sensor 2 (Nov 26). It may be a scout that hands working logins to the operator.

What it did, in order

  1. Situational awareness: id, sudo -n -l, ss -tlnp, docker ps, a check for database clients, ~/.bash_history.
  2. Stage 2 (hunting for services and secrets): web roots, Docker, MySQL/Postgres data directories, /root/.my.cnf, a recursive grep for DB_PASSWORD/DATABASE_URL, .env files, mail spools, Proxmox (qm list, pct list), Tailscale status.
  3. Using the credentials: it read the planted /srv/app/.env, then tried the planted Postgres payments credentials against settlements and the planted AWS key against an S3 bucket (aws s3 ls). It also looked for /root/.aws/credentials.
  4. Bringing its own tools: the emulated psql failed, so it uploaded its own psql and pg_dump binaries. It tried base64, gzip, cat > redirects, and writing to /tmp, ~, /dev/shm and /usr/local/bin.
  5. Testing the sensor: it copied /bin/true and /bin/ls and ran the copies, checked with cmp that an uploaded file matched /bin/ls and still wouldn’t run, and checked ld-linux, mount, dmesg and ASLR. It also grepped the process list for security agents (monarx, falcon, sentinel, wazuh, osquery).
  6. Trying to reach other hosts: it probed internal Vault (10.116.0.9:8200/v1/sys/health) and a Postgres replica (10.116.0.7:5432) using curl, wget, bash /dev/tcp and a Perl IO::Socket::INET script.

Assessment: The breadcrumbs worked. The actor found and used every planted credential within minutes. What gave the honeypot away was that uploaded binaries can’t run. Cowrie’s emulated aws never contacts AWS, so the planted AWS key would only fire if the actor uses it from outside the sensor.

Finding 2 — Shell-fidelity honeypot detection suite

92.118.39.77 and 2.57.122.150 logged in to Sensor 2 as root:P@ssw0rd or root:admin123. They ran a structured test suite meant to tell a real POSIX shell from an emulated one. 92.118.39.77 also touched Sensor 1 today and Sensor 2 on Nov 26.

Each run uses a unique check_<md5> token and tests:

  • arithmetic expansion ($((131*638+42)))
  • $$ (the process ID)
  • positional parameters (set --, $#)
  • shell functions
  • subshell variable scope (v=outer; (v=inner; ...))
  • pipes into while read
  • quoting of a b;$()
  • stderr redirection with a non-zero exit 37
  • reads of /proc/self/stat and /proc/self/status (PID and namespace checks)

Every test runs twice, once directly and once wrapped in sh -c, so the two outputs can be compared.

Assessment: This looks like automated filtering of honeypots, run before a host is handed on for further abuse. The sensor’s output is not in the JSON event log. Check the session ttylogs to see which checks it failed.

Findings 3–5 — Commodity botnets and proxy abuse

Finding 3 — Outlaw (mdrfckr) on Sensor 1

At 16:45 UTC, 50.6.195.65 (SSH-2.0-libssh_0.9.6) logged in as root:P@ssw0rd2 and ran the standard Outlaw takeover:

  • unlocked .ssh with chattr -ia, then replaced it with the known Outlaw RSA key (comment mdrfckr, starts AAAAB3NzaC1yc2EAAAABJQAAAQEArDp4cun2lhr4KUhBGE7VvAcw)
  • changed the root password to aBoaoZ1tj0qF with chpasswd
  • killed competing secure.sh and auth.sh and cleared /etc/hosts.deny
  • profiled the hardware (CPU, memory, disk, crontab -l)

Finding 4 — Diicot / Mexals on Sensor 1

At 08:22 and 17:36 UTC, 109.160.32.40 and 109.160.32.168 logged in as deploy with deploy or deploy123 and ran the same sequence both times:

  • hardware and GPU fingerprinting, plus curl ipinfo.io/org
  • crontab -r and a wipe of /tmp and /var/tmp
  • killed any process using more than 40% CPU or 60% memory
  • chattr -iae on Diicot artifacts (/tmp/.diicot, /var/tmp/Documents/.diicot, /var/tmp/.update-logs)
  • SCP upload of a randomly named binary and a cache file

Both intrusions dropped identical hashes: 486d2587…ee31 and 0980b29b…063741.

Finding 5 — SSH tunnelling through Sensor 2

These sources logged in as root and immediately opened direct-tcpip channels. This looks like checking whether the box can be used as a proxy:

  • 176.53.159.196 (root:admin123) sent a DNS query for a.to to 1.1.1.1:53 on 16 separate occasions today. It has been here every day since Nov 21.
  • 77.90.185.29, 138.226.239.233 and 138.226.239.234 (root:P@ssw0rd) sent a TLS ClientHello to Cloudflare at 104.16.132.229:443 and 104.16.133.229:443.

Indicators of compromise

IP addresses

IPSensorActivityCredential usedFirst seen
193.47.62.692Hands-on or agentic intrusion; took credentials; tried internal hostsdeploy:deploy2026-11-27
193.47.62.1531, 2Login validation and GPU recon (same /24 as above)deploy:deploy2026-11-25
92.118.39.771, 2Shell-fidelity honeypot detectionroot:P@ssw0rd, root:admin1232026-11-26
2.57.122.1502Shell-fidelity honeypot detectionroot:P@ssw0rd2026-11-27
50.6.195.651Outlaw: installed mdrfckr SSH key, changed root passwordroot:P@ssw0rd22026-11-27
109.160.32.401Diicot / Mexals: SCP payload dropdeploy:deploy, deploy:deploy1232026-11-27
109.160.32.1681Diicot / Mexals: SCP payload dropdeploy:deploy, deploy:deploy1232026-11-27
176.53.159.1962direct-tcpip DNS tunnel to 1.1.1.1:53root:admin1232026-11-21
77.90.185.292direct-tcpip TLS to Cloudflareroot:P@ssw0rd2026-11-27
138.226.239.2332direct-tcpip TLS to Cloudflareroot:P@ssw0rd2026-11-27
138.226.239.2342direct-tcpip TLS to Cloudflareroot:P@ssw0rd2026-11-27

“First seen” counts only this sensor network’s logs from 2026-11-19 onward.

File hashes (SHA-256)

SHA-256SourceContext
486d258731b76f0922d79542593cc97880100f589028743a0a79b7380c19ee31109.160.32.40, .168Diicot SCP-uploaded binary (random name)
0980b29bdac6b74fb3a4875a3215373c4ea392bc4a60a7bf931ad888ba063741109.160.32.40, .168Diicot SCP-uploaded cache file
c6f1676734b35a3c26274cdcdedc4a34ead3d0b815ab6d06afd4a58a55baf13c109.160.32.40Diicot captured file
79b0447928d0675f2b6f19b95ffcde683236f2bcd7d46a97da178a9648978549109.160.32.168Diicot captured file
a8460f446be540410004b1a8db4083773fa46f7fe76fa84219c93daa1669f8f250.6.195.65Outlaw captured file
01ba4719c80b6fe911b091a7c05124b64eeece964e09c058ef8f9805daca546b50.6.195.65Outlaw captured file
15e1461bf3287e35e8a37941d35cd4cecc09126a0555551733ae54e5779fd6c3193.47.62.69Uploaded to the session (14:07)
abb365d2a2eb81638226296aaed26f9e5ee333e9bdb9a71932e22ae5e9f1c56a193.47.62.69Uploaded to the session (14:07)
8f3e9209babf3002f5c2f9098dbc764d83f8150a91f5ed8854d8a0cdaf040320193.47.62.69Uploaded to the session (14:09)
26faf8d5dd3f771eaa3358b56d06c38512147a92563d78a799d0a16b9d6280ee193.47.62.69Uploaded to the session (14:09)
3c2828d7b19cdbc794b2df7c384e5404284266ca3a8471e2c8eb54f4c4720a28193.47.62.69Uploaded to the session (14:09)
4c60e02d9971fe29a565a46df21f3f6576029e2965a807fd0be356ac73c95348193.47.62.69Uploaded to the session (14:10)
f90d0513e8b5d5e6f1f27ba15ede883a008e96f9cd9a29bd27c701dceb82b695193.47.62.69Uploaded to the session (14:11)
bba9cb3eb1ac289ac8751830eb457927a72204a5821f217be96fd12e107a8712193.47.62.69Uploaded to the session (14:11)
1f4fa3f44b284bb8cf2c79931049d39f445d063fb16747e97c24fdbed17954c4193.47.62.69Uploaded to the session (14:22)
243ff6868ea6bdedfa2257e78b502e943dba4dbf499b78f28e0117afc4834cff193.47.62.69Uploaded to the session (14:23)
2f6f17cf77b1bf5c29429244f90c2cad33321a01f065b1c612e98161420c1d06193.47.62.69Uploaded to the session (14:24)
c2105fae177e93f1229e81f481b6b62154f645c6f170007ec00b3e3bbbbdf7ec193.47.62.69Uploaded to the session (14:24, re-sent 6 times)
7af7f0887fc02665af970baf169b8abb04569745ddd4a526a6dd3cfeb2f4f0d4193.47.62.69Uploaded to the session (14:25)
94f5d1c6ad51bbd532bf2e702b3d28cb57ba8887435b4514a06e4ba0cd7fedba193.47.62.69Uploaded to the session (14:25)
e018fe33ff05df8a83a21959425bdaece22ae47f58aacccc2105da36d222975d193.47.62.69Uploaded to the session (14:27)
ecedc735a72a406229f6815fe08e79fd3bd2bb9cd05fe22c44b9080efe3b9515193.47.62.69Uploaded to the session (15:21)

The 193.47.62.69 files match its attempts to upload psql, pg_dump and scripts. None of these files have been analysed for this report.

Other indicators

TypeValueContext
SSH public keyssh-rsa AAAAB3NzaC1yc2EAAAABJQAAAQEArDp4cun2lhr4KUhBGE7VvAcw… mdrfckrOutlaw persistence key
Password setaBoaoZ1tj0qFOutlaw chpasswd root password
File paths/tmp/.diicot, /var/tmp/Documents/.diicot, /var/tmp/.update-logsDiicot artifacts
HASSHe1d88fdd485f9c710074daa1fcce80a6193.47.62.69 (OpenSSH 8.9p1 Ubuntu)
HASSH16443846184eafde36765c9bab2f4397193.47.62.153 (SSH-2.0-Go)
HASSH2ec37a7cc8daf20b10e1ad6221061ca592.118.39.77 (SSH-2.0-Go)
HASSHf555226df1963d1d3c09daf865abdc9a50.6.195.65 (libssh 0.9.6)

MITRE ATT&CK mapping

TechniqueIDObserved in
Valid Accounts: Default AccountsT1078.001All findings (weak and default passwords)
Brute Force: Password GuessingT1110.00111,286 failed logins across both sensors
System Information DiscoveryT1082193.47.62.69, Diicot, Outlaw, 193.47.62.153
Virtualization/Sandbox Evasion: System ChecksT1497.001Finding 2 test suite; 193.47.62.69 binary-execution tests
Credentials In FilesT1552.001193.47.62.69 (.env, DB_PASSWORD grep, .my.cnf, .aws)
Security Software DiscoveryT1518.001193.47.62.69 (monarx, falcon, sentinel, wazuh, osquery)
Remote System Discovery / Network Service DiscoveryT1018 / T1046193.47.62.69 (Vault, Postgres replica)
Ingress Tool TransferT1105193.47.62.69 (psql/pg_dump), Diicot SCP
Account Manipulation: SSH Authorized KeysT1098.004Outlaw mdrfckr key
Account Access RemovalT1531Outlaw chpasswd
Impair DefensesT1562Diicot and Outlaw killing competing processes, crontab -r
Protocol Tunneling / ProxyT1572 / T1090Finding 5 direct-tcpip

Recommendations

  • Block or watch for: all IPs in the IOC table, plus 193.47.62.0/24 as a watch range.
  • Defenders: alert on SSH logins as deploy from new sources. Treat bursts of short one-command sessions as a sign of an interactive or AI-agent operator. Look for /dev/tcp and Perl socket probes of internal Vault and database ports.
  • Hardening: disable SSH AllowTcpForwarding on servers that face the internet. That one setting would have stopped all Finding 5 activity.
  • Researchers: the check_<md5> probe pattern and binary-execution checks show that capable actors test whether a host is a honeypot before they do anything else. Emulated shells need to get these primitives right to keep high-value actors engaged.

Comments

Leave a Reply