Skip to content

deoktr/goneypot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

goneypot

Low-interaction SSH honeypot written in Go.

Attackers will be able to log in, and send commands, but nothing is ever executed, just logged.

Usage

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

Credentials

By default, goneypot accept any combinaison of username/password.

Login credentials can be added to restrict the username/password that can log in:

  1. create a file with username:password in it:

    echo "foo:foo" > creds
  2. start goneypot with the -creds-file flag:

    goneypot -creds-file creds

Prometheus

goneypot supports Prometheus, to enable it use flag -enable-prometheus:

goneypot -enable-prometheus -prom-port 9001 -prom-addr localhost

Alternatives

TODO

  • add connections timeout

License

goneypot is licensed under MIT.