Dev.to Security 🔐 Cybersecurity 👁 2 📖 2 min read

I Set a Honeypot on My Parrot OS. Here's Who Touched It.

Last week I DDoS'd my own Nginx server and wrote about it. This time I flipped the script. Instead of breaking my own server, I set a trap on it. I installed an SSH honeypot on my Parrot OS machine, then flashed a fake

Last week I DDoS'd my own Nginx server and wrote about it. This time I flipped the script. Instead of breaking my own server, I set a trap on it.

I installed an SSH honeypot on my Parrot OS machine, then flashed a fake HTTP server onto a $5 ESP32 chip sitting on my desk. I logged into both myself, watched them log everything, and tore them down.

Here's what happened.

What I Built
Two honeypots. Different layers. Different attack surfaces.

Cowrie (Parrot OS)

Fake HTTP (ESP32)

Port

2222

80

Protocol

SSH

HTTP

Cost

$0 (already had Podman)

~$5 (ESP32 devkit)

Power

My daily driver

5V USB, ~0.5W

Pretends to be

Debian server svr04

A generic web server

What it logs

Commands, sessions, duration

IP, timestamp, request path

The idea: port 2222 gets scanned by targeted bots (they're looking for SSH). Port 80 gets scanned by everything — port scanners, crawlers, SEO bots, and the occasional script kiddie. I wanted to see the difference.

Part 1: Cowrie on Parrot OS
Setup (5 minutes)
I'm on Parrot OS. I already had Podman installed (Docker is broken on this box — AppArmor blocks kernel modules, long story).

podman run -d --name cowrie --network=host cowrie/cowrie

That's it. One command. Cowrie is now listening on port 2222, pretending to be a Debian server called svr04.

No config files. No YAML. No 40-line setup guide.

I Logged In Myself
Since it was on localhost only (no port forwarding, no internet exposure), I connected to it myself:

ssh -p 2222 root@localhost

It asked for a password. I typed one. It let me in.

I got a prompt:

root@svr04:~#

It even showed me a fake /etc/passwd with users like phil (UID 1000) and www-data. I didn't set any of that up. Cowrie ships with a pre-built fake filesystem.

What I Did Inside
I ran a few commands:

ls
whoamii
whoamii
whoami
cat /etc/passwd
exit

Yeah, I typed whoamii twice. Cowrie logged both typos as "Command not found." I think real attackers make the same mistake. It's a small detail that makes the logs feel human.

The Logs
Here's what Cowrie captured:

2026-12-05T17:01:59Z [ssh,43bfafcb9125,127.0.0.1] request_env: LANG=en_IN
2026-12-05T17:02:22Z [ssh,43bfafcb9125,127.0.0.1] CMD: ls
2026-12-05T17:02:30Z [ssh,43bfafcb9125,127.0.0.1] CMD: whoamii
2026-12-05T17:02:30Z [ssh,43bfafcb9125,127.0.0.1] Command not found: whoamii
2026-12-05T17:02:35Z [ssh,43bfafcb9125,127.0.0.1] CMD: whoami
2026-12-05T17:02:43Z [ssh,43bfafcb9125,127.0.0.1] CMD: cat /etc/passwd
2026-12-05T17:02:57Z [ssh,43bfafcb9125,127.0.0.1] CMD: exit
2026-12-05T17:02:57Z [ssh,43bfafcb9125,127.0.0.1] Connection lost after 103556 milliseconds

Each line tells you:

Timestamp — when
Protocol + session ID — which connection
IP — where they came from (127.0.0.1 = me)
Command — what they typed
Duration — how long they stayed (103 seconds in my case)
If I'd port-forwarded this to the internet, that IP would be a real attacker's IP. The rest of the log would look identical.

📰 Read the original article on Dev.to Security

Originally published by Dev.to Security. Aggregated on AIWithGhost for educational purposes — full credit and traffic to the original publisher.