Skip to content
goTool Español

goTool › Traps and SSH honeypot

Traps

What nobody with good intentions ever touches.

Counting failed logins is statistics: the whole internet tries passwords on every server. A trap is something else. If someone opens a bait file or tries the fake key, they are inside looking for passwords. It almost never gives false alarms and, when it fires, the alert is serious.

Ask us for a demoRespond from Telegram

🔴 web1 · T-0031 · TRAP
/root/passwords.txt has been READ
program: cat · account: root
logged in as «deploy» over SSH
chain: cat < sudo < bash < sshd
from 198.51.100.23 🇩🇪 Frankfurt
🚫 Block the IP🧊 Freeze
✂️ Close their session🔒 Block «deploy»
▶ Do it
A bait file alert: who opened it, which account they logged in with and from where.

What gets set up

TrapWhat it isWhen it fires
Bait filesThey look like old password notes: one only root can read and one any account can read, including a website with a backdoor. Never inside a website.Someone opens, changes or deletes it
Fake userA name made up for each server. It isn't created on the system: it's only written in the bait files.Someone tries to log in over SSH with it
Fake API keyIt looks like goTool's keys, but belongs to nobody.Someone calls the API with it
Fake SSH keyA real key that opens nothing. The bait files say it's the backup key.Someone opens it, or tries it on the honeypot: they took it
Website trap pathA made-up address listed in robots.txt as «don't enter». It's on no bot's list.Someone requests it on any website on the server
SSH honeypot (optional)It looks like SSH and never lets anyone in. It records each attempt's IP, user and password.They try the bait credentials, come from your network or from an IP that already logged in
Trap ports (optional)They listen where databases usually are (3306, 5432, 6379, 27017…) when nothing is there.A device on your network or an IP that already logged in connects

Not just what: who

The watcher runs as root and offline. When someone opens a bait file it says the program, the account, which account the person logged in with even if they then used sudo, what launched it and, if they came over SSH, from which IP. With the IP, the alert brings the response buttons.

A website read it

Almost certainly there is a backdoor in a website and someone is using it. The alert says where to look.

A cron job read it

If it's not a backup, it may be a task someone left behind.

Backups and antivirus

rsync, restic, borg or clamscan launched by cron or a service are logged but don't alert.

If they stop the watcher

Serious alert within a minute: it's the first thing someone who knows it's there would do.

Why it's safe

  • Low interaction. The honeypot says «no» to everything and the trap ports hang up without answering. No fake shell: nothing to break.
  • No root. The honeypot and the ports run as a throwaway user, with caps on connections, time and memory.
  • It never calls out. It only answers whoever calls. No hacking back.
  • Passwords masked. The ones tried are stored masked: it may be someone who just got the port wrong.
  • All fake. The passwords, key and SSH key in the bait files open nothing: if they're read, there's nothing to change.
  • It doesn't open the firewall. If needed, it tells you the command. And the honeypot runs on 2222, not on the real 22.

Set up with one command

The basics

The bait files, the fake user, key and SSH key, and the watcher. With a test alert that reaches Telegram and email.

The optional ones

The SSH honeypot, the website trap path and the trap ports. Off unless you ask. Removing them leaves everything as it was.

sudo gotool traps add            # bait files, user, key, SSH key and watcher
sudo gotool traps test           # a «TEST» alert
sudo gotool traps ssh on         # the SSH honeypot, on 2222
sudo gotool traps web add --all  # the trap path in robots.txt
sudo gotool traps ports on       # the trap ports
gotool traps                     # what's set up and what happened last
sudo gotool traps remove         # remove it all

Frequently asked questions

What is an SSH honeypot?

A program that looks like SSH but never lets anyone in. Internet noise is counted without alerting; it alerts if someone tries the bait credentials, comes from your network or is an IP that really logged in before.

Does it give many false alarms?

Hardly any. Nobody with good intentions opens a password file that isn't theirs or requests a path only listed as «don't enter». Backups and antivirus don't alert.

Could it open a hole in my server?

No. They are low interaction, run without root, never call out and don't open the firewall. What's inside them is fake.

Does it touch my websites?

Only if you add the trap path: it adds one line to robots.txt and removes exactly that. On a WordPress without its own robots.txt it touches nothing and tells you how to add it.