Builderoom

September 25, 2026

Download

A Go-based SSH tarpit that exports Prometheus metrics and visualizes attack sources via Grafana dashboards.

GPL-3.0LinuxDockerSelf-hosted
1 / 2

Product facts

Type
Desktop App
Category
Security & Privacy › Network and VPN
Pricing
Open source
Platforms
Linux · Docker · Self-hosted
License
GPL-3.0
Launched
Sep 25, 2026
Listed
Sep 25, 2026
Website
github.com

Overview

GitHubGitHub

endlessh-go is an SSH tarpit written in Go, inspired by the original C implementation endlessh. Its primary purpose is to counter brute-force SSH attacks: when an attacker attempts to connect, the program holds the connection open and continuously sends meaningless banner data, wasting the attacker's time.

Unlike the original version, which only provides plain-text logs, endlessh-go addresses the need to visualize attackers' geolocations and other statistics. It natively supports exporting metrics in Prometheus format and includes a companion Grafana dashboard to display them, eliminating the hassle of writing extra scripts to parse logs.

Key capabilities:

  • SSH tarpit: Listens on port 2222 by default, hanging any SSH client that tries to connect. Message delay, maximum banner line length, and maximum client count can be customized via CLI arguments.
  • Prometheus metrics export: Enabled with -prometheus_enabled, serving metrics at /metrics on port 2112 by default. Metrics include client connections, disconnections, bytes sent, and time trapped.
  • IP geolocation resolution: Converts attacker IPs into Geohashes used as labels in Prometheus metrics. You can choose the ip-api online service or a MaxMind offline database.
  • Health check: Includes a built-in HTTP health check endpoint that returns status and uptime information in JSON.
  • Flexible deployment: Can be compiled from source or deployed quickly using the provided Docker image.

Who it's for:

System administrators and DevOps engineers who want to defend against SSH brute-force attacks while monitoring and visualizing attack source data with Prometheus and Grafana. Note that due to the IP-to-Geohash conversion and metrics export features, memory usage is around 10MB, higher than the original C implementation.

Key features

  • SSH Tarpit Defense: Hangs connecting SSH clients and sends meaningless data, wasting attackers' time to thwart brute-force attempts.
  • Prometheus Metrics Export: Natively exports structured metrics such as connection counts, bytes sent, and time trapped for Prometheus scraping.
  • Grafana Dashboard: Includes a companion Grafana dashboard to clearly visualize attackers' geolocations and related statistics.
  • IP Geolocation Resolution: Converts attacker IPs to Geohashes using the ip-api online service or a MaxMind offline database.
  • Docker Deployment: Provides an official Docker image so you can start the service quickly with a simple docker run command.
  • HTTP Health Check: Exposes an HTTP endpoint returning service status and uptime in JSON for easy health monitoring.
  • Multi-Port Listening: Use multiple -port arguments to have the server listen on several ports simultaneously.
  • PROXY Protocol Support: Enable PROXY protocol support so the server can handle incoming connections with PROXY protocol headers.

Releases

Notify me

Initial · endlessh-go

Q&A

What is the difference between endlessh-go and the original C version of endlessh?AI-generated
The original C implementation only provides text-based logging. endlessh-go is rewritten in Go, natively supports exporting Prometheus metrics, converts attacker IPs to Geohashes, and ships with a Grafana dashboard for visualization. The trade-off is increased memory usage of about 10MB.
How do I enable Prometheus metrics export?AI-generated
Metrics export is disabled by default. Add the CLI argument `-prometheus_enabled` at startup to enable it. Once enabled, metrics are served at the `/metrics` path on port 2112 by default.
How do I obtain attackers' geolocation information?AI-generated
Enable it with the `-geoip_supplier` argument. Choose `ip-api` to use the online service (mind its query rate and commercial limits), or choose `max-mind-db` together with the `-max_mind_db` argument to specify the local MaxMind database file path for offline resolution.
Which port does it listen on by default? Can I change it?AI-generated
The SSH tarpit listens on port 2222 by default. You can change it with the `-port` argument, and provide multiple `-port` flags to listen on several ports at once.
How do I run endlessh-go with Docker?AI-generated
Run `docker run -d -p 2222:2222 shizunge/endlessh-go -logtostderr -v=1` to start the container in detached mode, mapping host port 2222 to container port 2222.
Download
Bookmark

This product has no owner yet

It was listed by the platform or its author left. If it is your work, prove your relationship to become the owner.

Claim this product

Alternatives

The product content on this page was translated by AI from the author's original.