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:
- Sensor โ a lightweight program you run on a machine you own. It opens the decoy services and reports every attack to the server.
- Server + Dashboard โ a web application (hosted on a public server such as an AWS EC2 instance) that collects the attacks, stores them, and shows them on a live dashboard with charts, a world map and email alerts.
2. Architecture
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
- You register on the dashboard and get a unique API key.
- You run the sensor on a server you own, using a
config.jsonthat holds your API key and the dashboard's address. - The sensor opens fake services (SSH on 2222, an admin login on 8081, FTP on 2121, Telnet on 2323 by default).
- When an attacker connects and tries credentials, the sensor captures the IP, service, username and password โ and grants nothing.
- The sensor sends these events to the server's collector API, authenticated by your API key.
- 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.
- A new attack triggers an email alert (when SMTP is configured).
4. Features
- โ Decoy SSH, HTTP admin, FTP and Telnet services
- โ Real-time dashboard: charts, world map, top-10 tables
- โ Attacker geolocation (country + map)
- โ User accounts, secure login (bcrypt), per-user API keys
- โ Admin panel โ manage users, reset passwords, roles
- โ Forgot / change password
- โ Email alerts on new attacks
- โ One-click sensor download for Windows / Linux / macOS
- โ Attacker simulator for testing & demos
- โ Single static Go binary โ no dependencies to install
5. Technology stack
- Language: Go (Golang) โ statically linked, cross-platform binaries
- Storage: SQLite (pure-Go driver, no external database)
- Web: Go standard library
net/http+html/template - Auth: bcrypt password hashing, cookie sessions
- Charts: Chart.js ยท Map: Leaflet + OpenStreetMap
- GeoIP: ip-api.com ยท Hosting: AWS EC2 (Ubuntu + systemd)
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.