High-interaction SSH honeypot (ok, it's really a logging ssh proxy).
Still more or less a work-in-progress. Feel free to
go installthis repository if you'd like to try it. Run it with
-hto see more options. In particular, logging is kinda rough.
One of these days there'll be better documentation, really.
The general idea is that sshlowpot runs somewhere between the attacker and the real SSH server such that the attacker logs into the honeypot, and the honeypot logs into the server.
go install github.com/magisterquis/sshhipot
Most of the options should be useable as-is. The ones I expect will need to be configured:
| ||SSH identity file (i.e. |
| ||Server's address. Can be loopback, even.|
| ||Ok, maybe |
| ||Try |
Please note by default the server listens on port 2222. You'll have to use pf or iptables or whatever other firewall to redirect the port. It's probably a really bad idea to run it as root. Don't do that.
There is a general log which goes to stdout. More granular logs go in a directory named
connsby default (
-dflag). At the moment, the granular logs also go to stderr.