GoHoney โ€” Documentation

A self-hosted honeypot platform written in Go. This page explains what it is, how it is built, and exactly how to install and run it.

1. What is GoHoney?

A honeypot is a decoy computer service designed to attract attackers. It looks like a real, vulnerable server โ€” SSH, FTP, Telnet, an admin login page โ€” but it gives no real access. Instead it records everyone who tries to break in: their IP address, which service they hit, and the usernames and passwords they attempt.

GoHoney has two parts:

2. Architecture

๐Ÿ•ต Attacker / botnet / scanner GoHoney Sensor decoy SSH ยท HTTP FTP ยท Telnet (a machine you own) Server + Dashboard Go ยท SQLite ยท AWS EC2 collector API + web UI GeoIP ยท email alerts ๐Ÿ‘ค You ๐Ÿ“ง Alert probe events (API key) view notify

The sensor only listens โ€” it logs inbound connections to its decoy ports and never touches the machine it runs on. That is what keeps it a defensive tool.

3. How it works, step by step

  1. You register on the dashboard and get a unique API key.
  2. You run the sensor on a server you own, using a config.json that holds your API key and the dashboard's address.
  3. The sensor opens fake services (SSH on 2222, an admin login on 8081, FTP on 2121, Telnet on 2323 by default).
  4. When an attacker connects and tries credentials, the sensor captures the IP, service, username and password โ€” and grants nothing.
  5. The sensor sends these events to the server's collector API, authenticated by your API key.
  6. The server stores them, geolocates the attacker IPs, and shows everything on your dashboard โ€” stat cards, a 14-day trend, service breakdown, top attacker IPs / usernames / passwords, top countries and a world map.
  7. A new attack triggers an email alert (when SMTP is configured).

4. Features

5. Technology stack

6. Install & run

You need two things running: the server (once, on your public machine) and a sensor (on each machine you want to monitor). After logging in, download the sensor and a pre-filled config.json from the Setup page.

๐ŸชŸ Windows

Download the Windows sensor, config.json and the launcher into one folder, then double-click gohoney-run-windows.bat (it allows the firewall and starts the sensor). To run it manually instead:

.\gohoney-sensor.exe -config config.json

๐Ÿง Linux

chmod +x gohoney-sensor
./gohoney-sensor -config config.json

๐ŸŽ macOS

chmod +x gohoney-sensor
xattr -d com.apple.quarantine gohoney-sensor
./gohoney-sensor -config config.json

Then open your dashboard. To generate a test capture, open http://13.203.97.23:8080:8081 and submit the fake login โ€” it appears within a few seconds.

7. Build from source (developers)

Requires Go 1.26+. From the project folder:

# Windows โ€” builds server + sensor for every OS into .\bin
.\build.ps1

# Linux / macOS
./build.sh

Run the server locally:

.\bin\windows-amd64\gohoney-server.exe      # http://localhost:8080

8. Attacker simulator (for demos)

To fill the dashboard with realistic data, run the included simulator against your own honeypot:

gohoney-attacker.exe -target YOUR_SERVER_IP -rounds 20

It cycles common usernames and passwords across every decoy service, exactly like a real brute-force bot โ€” so you can demo the dashboard, charts and map without waiting for real attackers.

Ethics & scope. Deploy sensors and run the simulator only on infrastructure you own or are explicitly authorised to test. GoHoney is a defensive / educational tool: it logs inbound attackers reaching its decoy ports and never monitors the host it runs on.