Low-interaction SSH honeypot written in Go.
Attackers will be able to log in, and send commands, but nothing is ever executed, just logged.
Generate SSH server private keys without passphrase:
ssh-keygen -f id_rsa -N "" -t rsa
Build:
go build .
Run:
./goneypot -key id_rsa -addr 0.0.0.0 -port 2222
Test:
ssh -p 2222 user@localhost
By default, goneypot accept any combinaison of username/password.
Login credentials can be added to restrict the username/password that can log in:
-
create a file with
username:password
in it:echo "foo:foo" > creds
-
start goneypot with the
-creds-file
flag:goneypot -creds-file creds
goneypot supports Prometheus, to enable it use flag -enable-prometheus
:
goneypot -enable-prometheus -prom-port 9001 -prom-addr localhost
- add connections timeout
goneypot is licensed under MIT.