Dev.to Security 🔐 Cybersecurity 👁 0 📖 6 min read

60 days on a $6 server: what 128,777 connections to a honeypot looked like

One source address made 17,417 SSH connections to our decoy server in 60 days, about one in every seven connections it received. The other 111,360 came from 2,604 more addresses, and most of them wanted the same few thin

60 days on a $6 server: what 128,777 connections to a honeypot looked like

One source address made 17,417 SSH connections to our decoy server in 60 days, about one in every seven connections it received. The other 111,360 came from 2,604 more addresses, and most of them wanted the same few things: a root password, a quick check that the shell worked, and any file that might hold a secret.

Method in one line: captured with Echidra OSS on one $6 VPS, one region, 28 July to 26 September 2026. Our own test traffic is excluded.

Who came

Protocol Sessions
SSH 115,079
HTTP 9,350
FTP 2,264
Telnet 2,084
Total 128,777

SSH is almost nine in ten of everything. The server wasn't advertised anywhere, and its address was never published. These connections came from tools that sweep the internet address by address.

The traffic is very uneven. One address made 17,417 connections, and the 10 busiest addresses made 67,973 sessions: 52.8% of everything. That's good news: a short blocklist removes a large share of the noise (see "What you can use today" below).

What they tried

17,707 SSH login attempts used 614 different usernames. root was tried 15,114 times, about 85% of the total; then ubuntu (598), support (584) and admin (252). The passwords and how bots choose them are covered in Analyzing SSH Brute-Force Patterns.

Over HTTP, the requests weren't looking for a website. They were looking for mistakes:

What was requested Sessions
CONNECT, testing whether the server is an open proxy 270
/.env, a file that often holds database passwords and API keys 242
Paths used by network cameras 177
/mcp, /api/mcp, /sse: AI tool servers 78
Commands injected into router web pages 65

The AI tool server paths stand out. These servers became common in the last year, and scanners already ask for them on machines that have never run one. Some of these requests come from research scanners, so "scanned for" is fairer than "attacked".

What they did after getting in

The decoy lets SSH logins succeed so it can see what comes next. Almost every bot that got in ran a single command to check that the shell answered:

First command Times sent
echo -e "\x6F\x6B" (prints ok) 11,110
echo OK 3,132
whoami 746
echo -n login_success 499

The hex-encoded ok is the odd one. Writing ok as \x6F\x6B prints the same thing as a plain echo ok. One likely reason: it slips past a simple rule that looks for the word.

180 sessions worth looking at

Out of 128,777 sessions, Echidra OSS rated 180 as high risk. 179 tried to make the server download and run a program: 90 over SSH after logging in, 89 through commands hidden in web requests. One planted a key.

The key. On 10 August a bot logged in as alexandra with the password 123. Two and a half seconds later it had typed one line and left:

mkdir -p /root/.ssh && echo 'ssh-rsa AAAAB3NzaC1yc2E...6oWL rsa-key-20250409' >> /root/.ssh/authorized_keys && chmod 700 /root/.ssh && chmod 600 /root/.ssh/authorized_keys

That adds its own key to root's authorized_keys. With that key in place, its owner can log back in without a password, even after the password is changed.

The download. One of the SSH ones logged in as admin / admin, then sent one long command that:

  1. printed auth_ok, written in hex, to confirm the shell answered;
  2. moved to /tmp, /var/tmp or /dev/shm, whichever was writable;
  3. wrote its own private SSH key to a file and used it to copy a script from a server it named, with scp;
  4. if that failed, fetched the same script over HTTPS with wget or curl and piped it straight into sh;
  5. deleted the key and the script.

Carrying its own key lets the bot fetch its payload over SSH, which looks like ordinary admin traffic on many networks, and fall back to HTTPS only when it has to.

The CPU check. One session ran echo 1 && cat /bin/echo. It read the program file behind a basic command to learn the server's CPU type, the usual step before downloading malware built for it.

Almost everything that reaches a server is automated and careless. The careful sessions are rare, and they're the ones worth finding.

Want to see what's hitting your own server? Echidra OSS runs on a $6 VPS and takes a few minutes to set up. Setup guide

How Echidra OSS labelled it

Echidra OSS Session Inspector for the key-implant session: two high-severity findings (a login key added to authorized_keys, and SSH logins with guessed passwords), the evidence text, and the command timeline with login alexandra, password 123 and the one-line key install
The key-implant session in the Session Inspector, linked to its two findings.

For the key implant, Echidra OSS:

  1. labelled it a commodity bot, high risk, intent persistence;
  2. tagged it with ATT&CK T1098.004 (SSH authorized keys) and T1110 (brute force);
  3. explained why: "After logging in, the session wrote a public key into an SSH authorized_keys file, which would let its owner log back in without a password.";
  4. gave the fix: "Disable password login over SSH, review every authorized_keys file for keys you don't recognize, and alert on any change to those files."

Across the sessions it labelled, the classifier sorted them like this:

Who Sessions
Brute-force bots 19,744
Automated scanners 2,001
Commodity bots (bots that act after logging in) 684
Risk Sessions
High 180
Medium 20,365
Low 1,884
What they were after Sessions
Stealing logins 20,247
Looking around (reconnaissance) 1,985
Delivering a payload 179
Exploiting a known flaw 17
Staying in (persistence) 1

Echidra OSS Intelligence page row for the key-implant finding: Commodity bots are adding their own login key to authorized_keys after logging in over SSH, severity HIGH, MITRE technique T1098.004 SSH Authorized Keys, 1 session, recommended fix starting Disable password login over SSH, status Open
The key-implant finding on the Intelligence page: high severity, ATT&CK T1098.004, one session, and the recommended fix.

What to change on your own servers

Every item here comes from something the decoy actually received.

  1. Turn off password logins for root. In /etc/ssh/sshd_config, set PermitRootLogin prohibit-password (or no), then reload SSH. 85% of login attempts used root.
  2. Use keys, not passwords, for SSH: PasswordAuthentication no.
  3. Check authorized_keys for keys you don't recognise, on every server and every account. One added key is enough for an attacker to keep access.
  4. Make sure your web server never serves .env. From outside, run curl -s -o /dev/null -w "%{http_code}\n" https://your-site/.env. Anything other than 404 or 403 needs fixing today.
  5. Put AI tool servers behind a login, and don't expose them to the internet unless they have to be.
  6. Don't leave a proxy open. If you run one, make sure it only accepts your own clients.

What you can use today

  • A blocklist of the 50 most active addresses from these 60 days, as plain text: blocklist-top50.txt. Addresses change hands, so treat it as a starting point and expire entries after a few weeks.
  • The same list from your own server, if you run Echidra OSS: echidra blocklist, with plain text or CSV output for a firewall, fail2ban or Cloudflare.
  • The rule that caught the key implant: ssh_authorized_key_install in default_rules.yaml. It fires when an SSH session, after logging in, writes to an authorized_keys file:
- id: ssh_authorized_key_install
  name: SSH login key added after login
  risk_score: 90
  mitre_tags:
    - T1098.004
  conditions:
    - field: protocol
      operator: equals
      value: tcp_shell
    - field: authorized_keys_write_attempt
      operator: equals
      value: true

Method and limits

  • One sensor, one region, one $6 VPS, from 28 July to 26 September 2026.
  • Captured with development builds of Echidra OSS from before 1.0. Every session was re-labelled with the 1.0.0 classifier on 22 October.
  • Our own test traffic from 127.0.0.1 (12,705 sessions) is excluded from every number.
  • A "session" is one connection. One address can make many.
  • A decoy only sees what reaches it. A server with a domain name or a public service would see more targeted traffic than this.
  • The sensor's address and provider aren't published.

A question for you

If you run servers that face the internet, what shows up in your own logs that isn't here? We'll look for it in the next report.

See what's hitting your own server. Echidra OSS is open source (AGPL-3.0). It runs on a $6 VPS and takes a few minutes to set up. Setup guide · Echidra OSS on GitHub. On GitHub, use Watch → Releases to hear about new versions.

📰 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.