I left an SSH honeypot open for 11 days. Here's what walked in.

, 8 min read

Here’s a little teaser to start with.

NowHunting for accounts and devicesFull replays
0:00
The trailer: highlights from 8 real attacks on the honeypot, sped up. These are real attack commands, so don't copy or run them. The full replays, with notes on every step, are further down, after a warning worth reading.

Why?

A friend told me that when they opened SSH on a new server, thousands of connections started pouring in. That got me curious, so I set up my own VPS with a fake shell that logs everything these connections do. Almost all of them are bots, so I also wanted to know: are attackers using AI agents yet, and if so, how?

But first, a quick refresher.

What is a honeypot?

A honeypot is a decoy: a system that looks worth breaking into, but exists only to record what attackers do. Mine was Cowrie, a fake SSH server that accepts any password and answers with a pretend Linux shell. It ran on an Oracle Cloud VPS from October 17 to 28, 2026. To catch AI agents, I planted a trail of fake files and notes that only something reading along would follow.

Here’s how I kept it contained:

  • Nothing actually ran. Cowrie only pretends to be a shell, so attackers’ commands never touched a real system. Files they downloaded were stored, never run.
  • Nothing real to steal. The files and passwords planted on the server were made up.
  • Kept apart from my own access. My admin login used a separate port, and the monitoring dashboard was only reachable through an SSH tunnel.
  • Redacted before publishing. Attacker keys, access tokens, the passwords bots set, and the lists of servers they were told to attack are removed. Attacker addresses are written so they can’t be clicked (1.2.3[.]4). No malware files are published.

Internet background noise

Turns out this traffic has a name: Internet background noise, also called Internet background radiation. I came across the term in a YouTube video recently, and it clicked right away, because I’d heard of the cosmic background radiation: the faint glow left over from the early universe, coming from every direction in the sky. It’s a fitting name. Every address on the internet picks up this noise, whether or not anything is listening.

Bots have been crawling and probing the internet for about as long as it has existed. Not all of them are bad: search engines and researchers scan it too. But a considerable share of that traffic comes from bad actors, looking for open ports, weak passwords and known bugs.

Replays

My honeypot caught a slice of that traffic. Here’s a shell session for each attack type it saw: a recording of what the bot typed and what the honeypot answered, played back at near human speed.

How to watch Whatever follows the root@svr04:~# prompt is something the bot typed, and everything else is the honeypot answering. Notes under the terminal explain what’s happening, and playback holds at each one while you read (Skip moves on). Expect errors: a fake shell can’t do everything a bot asks of it.

The recordings cover all 11 days. Identical sessions are stored once, and over that time there were 569 unique ones, not counting my own tests. 537 of them are the 11 attack types below, in small variations: a different guessed password, or one command of the attack run as a session of its own. The other 32 are one- or two-command checks like uname or whoami. So each replay stands for many sessions. There’s no standard naming for these, so I’ve named each one after what the bot does.

Before you start, please read the warning below. It’s there to protect you and others on the internet. Read this first

Remote management agent

This bot tries to install a real, legitimate monitoring tool and sign the server up to the attacker’s dashboard.

  1. Makes sure Python is installed, installing it if not, so its next script can run.
  2. Runs a Python script it expected to find. It crashes, so the bot deletes it and moves on.
  3. Installs Komari, a real open-source server monitor, and signs this server up to the attacker's dashboard.
Replayed from the honeypot's recording at near human speed, holding at each note while you read. The bot took 16.1 seconds.
Commands in this replay (12)
command -v
Checks whether a program is installed, and prints where. command -v Bash manual
/dev/null
A file that throws away whatever is written to it. Sending output there hides it. /dev/null man page
||
Runs the next command only if the one before it failed. Bots chain these as fallbacks. || Bash manual
apt-get
Installs software on Debian and Ubuntu. -y answers yes to every question. apt-get man page
&&
Runs the next command only if the one before it worked. && Bash manual
yum
Installs software on Red Hat-style systems: the same job as apt-get. yum man page
python3
Runs a program written in Python. python3 Python docs
rm
Deletes files. -rf deletes folders and everything in them, without asking. rm man page
if … then
Runs commands only when a test passes. $? holds the last command's result: 0 means it worked. if … then Bash manual
curl
Downloads from the web, like wget. -s keeps it quiet and -k skips the security check on the site. curl man page
bash
The usual Linux shell, the program that reads and runs commands. Text piped into it runs as commands. bash man page
<( )
Runs the command inside and hands its output to another command as if it were a file. <( ) Bash manual

If it had worked: Your server would show up on the attacker’s dashboard next to their other hacked machines, ready to be watched and managed.

Self-spreading worm

One long line does everything: it brings its own key and tries to log in to its home server to fetch the next stage.

  1. Notes the system type and prints "auth_ok" in hex, so its controller knows it got in.
  2. Looks for a folder it can write to, trying three in turn.
  3. Writes out a private key it brought along. It uses the key to log in to its own server.
  4. Fetches the next stage over SSH. If that fails, it falls back to wget, then curl, and runs it.
  5. Deletes its files to cover its tracks. Only logs kept off the machine would still show this.
Replayed from the honeypot's recording at near human speed, holding at each note while you read. The bot took 3.6 seconds.
Commands in this replay (15)
uname
Prints what kind of system this is: its name, kernel version and processor type. uname man page
;
Runs commands one after another, whether or not each one works. ; Bash manual
echo
Prints text. With a pipe or a redirect, the text goes into a command or a file instead. echo man page
cd
Moves to another folder. ~ is your home folder. cd Bash manual
||
Runs the next command only if the one before it failed. Bots chain these as fallbacks. || Bash manual
>
Writes a command's output into a file, replacing what was there. > Bash manual
chmod
Sets who can read, change or run a file. +x makes it runnable. chmod man page
scp
Copies files to or from another machine over SSH. scp man page
if … then
Runs commands only when a test passes. $? holds the last command's result: 0 means it worked. if … then Bash manual
/dev/null
A file that throws away whatever is written to it. Sending output there hides it. /dev/null man page
sh
Starts a shell to run a script, or the command after -c. Text piped into it runs as commands. sh man page
wget
Downloads a file from the web. -O- prints it instead of saving it, ready to pipe on. wget man page
curl
Downloads from the web, like wget. -s keeps it quiet and -k skips the security check on the site. curl man page
|
A pipe: sends one command's output into the next command. | Bash manual
rm
Deletes files. -rf deletes folders and everything in them, without asking. rm man page

If it had worked: Your server would join the botnet and use the same key to break into the next one. Every infected server finds more.

Download and run

The classic: download a script and pipe it straight into the shell. Watch it try one malware build after another.

  1. Downloads a script and pipes it straight into the shell. Nothing is saved to disk first.
  2. The script tries a build for one processor after another until one runs. Here, none can.
Replayed from the honeypot's recording at near human speed, holding at each note while you read. The bot took 3.5 seconds.
Commands in this replay (5)
cd
Moves to another folder. ~ is your home folder. cd Bash manual
;
Runs commands one after another, whether or not each one works. ; Bash manual
wget
Downloads a file from the web. -O- prints it instead of saving it, ready to pipe on. wget man page
|
A pipe: sends one command's output into the next command. | Bash manual
sh
Starts a shell to run a script, or the command after -c. Text piped into it runs as commands. sh man page

Locking out the owner

No malware, just a new password, typed twice in two dialects of echo so it works on any shell.

  1. Pipes a new password into passwd. The bot doesn't stay. It just makes sure the owner can't get back in.
  2. The same command again, written for shells whose echo works differently. Bots cover every case.
Replayed from the honeypot's recording at near human speed, holding at each note while you read. The bot took 1.1 seconds.
Commands in this replay (4)
echo
Prints text. With a pipe or a redirect, the text goes into a command or a file instead. echo man page
|
A pipe: sends one command's output into the next command. | Bash manual
passwd
Changes a user's password. It asks for the new one twice; here the answers are piped in. passwd man page
bash
The usual Linux shell, the program that reads and runs commands. Text piped into it runs as commands. bash man page

Hunting for accounts and devices

A router command, a check for miners, then a hunt for Telegram logins and SMS modems.

  1. A MikroTik router command. The bot doesn't know what it has landed on, so it checks for a router first.
  2. Looks for a crypto miner. If one is already running, another attacker got here first.
  3. Hunts for Telegram login sessions and SMS modems. Both can be used to take over accounts.
  4. That code is the name of Telegram Desktop's key folder. The bot searches the whole disk for it.
  5. A honeypot test. Fake shells often get small details like this wrong.
Replayed from the honeypot's recording at near human speed, holding at each note while you read. The bot took 7.0 seconds.
Commands in this replay (11)
/ip cloud print
A command for MikroTik routers, not Linux. It shows the router's cloud settings. /ip cloud print MikroTik docs
ifconfig
Lists the machine's network connections and their addresses. ifconfig man page
uname
Prints what kind of system this is: its name, kernel version and processor type. uname man page
cat
Prints a file's contents. With -n it numbers each line. cat man page
/proc/cpuinfo
Not a command but a file the system keeps up to date, describing each processor core. /proc/cpuinfo man page
ps
Lists running programs (processes). -ef lists every one, with details. ps man page
|
A pipe: sends one command's output into the next command. | Bash manual
grep
Keeps only the lines that match a pattern. [Mm]iner matches both Miner and miner. grep man page
ls
Lists files and folders. -la includes hidden ones, with details like size and owner. ls man page
locate
Searches a ready-made index of every file name on the disk. locate man page
echo
Prints text. With a pipe or a redirect, the text goes into a command or a file instead. echo man page

If it had worked: A copied Telegram session folder logs the attacker into your account on their own computer, with no password or code needed. An SMS modem could send spam or receive other people’s login codes.

Crypto miner install

Clear out rival miners and lock the attacker’s key in place. Most of it fails here, because its files never arrived.

  1. Runs a script that removes rival miners, then one that installs its own. Neither file made it here, so both fail.
  2. Locks the attacker's key in place. Even root can't change the file until the flag is removed.
  3. Prints "auth_ok" from hex codes: a marker telling the bot's controller that the login worked.
Replayed from the honeypot's recording at near human speed, holding at each note while you read. The bot took 0.1 seconds.
Commands in this replay (10)
chmod
Sets who can read, change or run a file. +x makes it runnable. chmod man page
sh
Starts a shell to run a script, or the command after -c. Text piped into it runs as commands. sh man page
;
Runs commands one after another, whether or not each one works. ; Bash manual
rm
Deletes files. -rf deletes folders and everything in them, without asking. rm man page
mkdir
Creates a folder. -p also creates any missing folders above it, and doesn't complain if it exists. mkdir man page
chattr
Sets lock flags on a file. +i makes it unchangeable, even by root, and -i unlocks it. chattr man page
echo
Prints text. With a pipe or a redirect, the text goes into a command or a file instead. echo man page
>
Writes a command's output into a file, replacing what was there. > Bash manual
authorized_keys
The file, in the .ssh folder, listing the keys allowed to log in to an account without a password. authorized_keys man page
uname
Prints what kind of system this is: its name, kernel version and processor type. uname man page

If it had worked: Your CPU would run at full load mining for someone else. You’d pay the bill, and everything else on the server would slow down.

Turning the server into a scanner

Your server becomes the next attacker. This one fails on its first line: its scanner never made it onto the honeypot.

  1. Starts a program named sshd from a hidden folder, so it looks like the real SSH server in a process list.
  2. nohup keeps it running after the bot logs out. It was handed 51 addresses to attack next.
Replayed from the honeypot's recording at near human speed, holding at each note while you read. The bot took 0.1 seconds.
Commands in this replay (4)
chmod
Sets who can read, change or run a file. +x makes it runnable. chmod man page
;
Runs commands one after another, whether or not each one works. ; Bash manual
nohup
Keeps a program running after the user logs out. nohup man page
&
Runs a command in the background, so the shell doesn't wait for it to finish. & Bash manual

If it had worked: The attacks would come from your IP address. Abuse reports go to your hosting provider, which may suspend your account.

Honeypot test, then malware drop

Smarter bots check whether the shell is real before dropping anything. This one runs its tests, then drops its file anyway.

  1. First, tiny tests: print a token, do arithmetic, show the process ID. This fake shell fails the arithmetic one.
  2. Instead of downloading malware, it uploads a hidden file straight over SSH.
  3. It feeds the password it guessed into sudo, with three fallbacks, just to make that file runnable.
Replayed from the honeypot's recording at near human speed, holding at each note while you read. The bot took 155.9 seconds.
Commands in this replay (10)
sh
Starts a shell to run a script, or the command after -c. Text piped into it runs as commands. sh man page
printf
Prints text in an exact format, so the bot can check the reply character for character. printf man page
$(( ))
Does arithmetic and puts the answer in its place: $((2+3)) becomes 5. $(( )) Bash manual
$$
Stands for the shell's own process ID, the number the system gave it. $$ Bash manual
;
Runs commands one after another, whether or not each one works. ; Bash manual
echo
Prints text. With a pipe or a redirect, the text goes into a command or a file instead. echo man page
|
A pipe: sends one command's output into the next command. | Bash manual
sudo
Runs a command as root, the administrator. -S reads the password from piped text. sudo man page
chmod
Sets who can read, change or run a file. +x makes it runnable. chmod man page
||
Runs the next command only if the one before it failed. Bots chain these as fallbacks. || Bash manual

SSH key backdoor

Wipe every existing key, install its own, and the owner is locked out.

  1. Removes any lock flags on the SSH folder. Another attacker may have locked it.
  2. Deletes every existing SSH key, so the owner and any rival bots lose access.
  3. Adds the attacker's own key. From now on they can log in without a password.
Replayed from the honeypot's recording at near human speed, holding at each note while you read. The bot took 0.5 seconds.
Commands in this replay (11)
cd
Moves to another folder. ~ is your home folder. cd Bash manual
;
Runs commands one after another, whether or not each one works. ; Bash manual
chattr
Sets lock flags on a file. +i makes it unchangeable, even by root, and -i unlocks it. chattr man page
lockr
Not a standard command. Probably a renamed copy of chattr that some attack kits carry, so here it just fails.
&&
Runs the next command only if the one before it worked. && Bash manual
rm
Deletes files. -rf deletes folders and everything in them, without asking. rm man page
mkdir
Creates a folder. -p also creates any missing folders above it, and doesn't complain if it exists. mkdir man page
echo
Prints text. With a pipe or a redirect, the text goes into a command or a file instead. echo man page
>>
Adds a command's output to the end of a file. >> Bash manual
authorized_keys
The file, in the .ssh folder, listing the keys allowed to log in to an account without a password. authorized_keys man page
chmod
Sets who can read, change or run a file. +x makes it runnable. chmod man page

If it had worked: Changing your password wouldn’t help: the attacker’s key still lets them in. Your own key is gone, so you’re the one locked out.

System fingerprinting

The most common visit of all: over 1,300 logins from six addresses in a single 8-hour sample on October 28, each asking one question: what are you?

  1. One command, then it leaves. The bot records what kind of machine this is, so a later wave knows which malware fits.
Replayed from the honeypot's recording at near human speed, holding at each note while you read. The bot took 3.1 seconds.
Commands in this replay (1)
uname
Prints what kind of system this is: its name, kernel version and processor type. uname man page

If it had worked: Nothing happens yet. Your server goes on a list, and a later wave comes back with malware that fits it.

Evicting a rival attacker

Criminals fight over hacked servers. This bot changes the root password, kills the previous squatter, sizes up the CPU, and then the honeypot slips.

  1. Counts CPU cores. More cores means more money from mining.
  2. Sets a new root password. The owner is locked out, and so is any other bot that guessed the old one.
  3. Kills a rival attacker's scripts and empties their ban list. Hacked servers get fought over.
  4. Checks that ls is a real program of a normal size. Honeypots sometimes fake it.
  5. Looks for scheduled jobs and other logged-in users: signs that someone is watching.
  6. These fail: this honeypot doesn't fake top or df well. A careful bot would leave now.
Replayed from the honeypot's recording at near human speed, holding at each note while you read. The bot took 18.4 seconds.
Commands in this replay (25)
cat
Prints a file's contents. With -n it numbers each line. cat man page
/proc/cpuinfo
Not a command but a file the system keeps up to date, describing each processor core. /proc/cpuinfo man page
|
A pipe: sends one command's output into the next command. | Bash manual
grep
Keeps only the lines that match a pattern. [Mm]iner matches both Miner and miner. grep man page
wc
Counts lines, words or characters. -l counts lines. wc man page
echo
Prints text. With a pipe or a redirect, the text goes into a command or a file instead. echo man page
chpasswd
Sets passwords from lines of user:password text. Admins use it to change many at once. chpasswd man page
bash
The usual Linux shell, the program that reads and runs commands. Text piped into it runs as commands. bash man page
rm
Deletes files. -rf deletes folders and everything in them, without asking. rm man page
;
Runs commands one after another, whether or not each one works. ; Bash manual
pkill
Stops running programs by name. -9 forces them to stop at once. pkill man page
>
Writes a command's output into a file, replacing what was there. > Bash manual
/etc/hosts.deny
A list of addresses that may not connect. Emptying it lifts every ban. /etc/hosts.deny man page
head
Keeps only the first lines. -n 1 keeps one. head man page
awk
Picks columns out of text: {print $2} prints each line's second word. awk man page
free
Shows how much memory is used and free. -m gives it in megabytes. free man page
ls
Lists files and folders. -la includes hidden ones, with details like size and owner. ls man page
$( )
Runs the command inside and puts its output in its place: $(which ls) becomes the path to ls. $( ) Bash manual
which
Prints where a program is installed. which man page
crontab
Lists or edits jobs scheduled to run at set times. -l lists them. crontab man page
w
Shows who is logged in and what they're running. w man page
uname
Prints what kind of system this is: its name, kernel version and processor type. uname man page
top
A live, full-screen list of the programs using the most processor and memory. top man page
lscpu
Describes the processor: its model, cores and speed. lscpu man page
df
Shows how much disk space is used and free. -h gives sizes like 20G. df man page

What about AI agents?

This was the question I started with. A script runs the same commands on every server it reaches. An AI agent would read what it finds and decide what to do next. So I built a labyrinth that only something reading along would follow: a status command that pointed at interesting folders, a fake customer export, notes about a stale copy and an archive server, and a “vault” at the end asking for a secret. Some of the notes were written to catch a language model’s attention.

Nothing followed it. Across 569 unique sessions in 11 days, not one touched the labyrinth. None of them was even typed key by key: the bots sent whole commands at once, and the only hand-typed sessions were my own tests. Every attack was a script, running its commands whether or not they made sense on this server.

There was one hint of where things are heading, though. Some of the usernames bots tried point at machines set up for AI work. In the 8-hour sample, claude was tried 11 times, along with ai, aiuser and airflow, next to crypto node names like solana, geth and validator. The bots aren’t AI yet, but they’re already looking for AI servers.

What to do with this information

Every attack in this article started by guessing a password. If you run a server with SSH open, these steps would have stopped it, or at least limited the damage:

  • Turn off password logins. Use SSH keys, and set PasswordAuthentication no and PermitRootLogin no in the SSH server’s config. On its own, this would have stopped every attack here.
  • Ban repeat offenders. Tools like fail2ban or CrowdSec block an address after repeated failed logins, which cuts down the noise.
  • Don’t let temp folders run programs. Several bots here dropped their files in /tmp, /var/tmp or /dev/shm. Mounting them with noexec stops anything placed there from running.
  • Limit outbound traffic. A server rarely needs to reach random addresses. Blocking outbound connections by default stops downloads like the ones in Download and run and the worm, and stops your server scanning others. Set AllowTcpForwarding no too, unless you use SSH tunnels.
  • Watch the files attackers change. Alert on changes to authorized_keys and /etc/shadow, and on any use of chattr. That catches key backdoors and password changes.
  • Keep a way back in. Most hosting providers offer a web console. If a bot changes your password or wipes your keys, that’s how you get back in.
  • Keep logs off the server, and personal things off servers. Bots delete their tracks, but logs stored somewhere else survive. And a server is no place for your Telegram session or anything else worth stealing.

Wrapping up

This was crazy: 20,000+ connections over 11 days, just for putting SSH on the internet. But none of it was clever. It was the same handful of scripts, guessing the same passwords and running the same commands on every server they reached, whether the commands made sense or not.

That’s the good news: a few settings stop nearly all of it. The less comforting part is that it never stops, and the usernames suggest the bots are already looking for the next kind of server: the ones running AI.


AI disclosure: I used LLM agents to help analyse this dataset: parsing the logs and recordings, grouping sessions into attack types, redacting the replays, and drafting the notes and command explanations. I reviewed what’s published here.