Kippo - SSH Honeypot
Go to file
g0tmi1k e64aad4e94 Silence the "umask" command
Credit: https://github.com/micheloosterhof/kippo
2014-05-30 04:56:08 +01:00
data Initial support for non-root users. Check your root passwords! 2011-02-05 21:53:54 +00:00
dl Added 'empty' folders … 2014-05-28 05:00:21 +01:00
doc Add support for logging downloaded files via dblog 2013-01-08 17:31:29 +00:00
honeyfs Update fs.pickle to reflect debian 7.0, and refresh some other stuff too 2013-04-05 12:40:06 +00:00
kippo Silence the "umask" command 2014-05-30 04:56:08 +01:00
log/tty Added 'empty' folders … 2014-05-28 05:00:21 +01:00
txtcmds Removed all trailing spaces 2014-05-28 05:13:55 +01:00
utils Removed all trailing spaces 2014-05-28 05:13:55 +01:00
README.md Removed all trailing spaces 2014-05-28 05:13:55 +01:00
fs.pickle Update fs.pickle to reflect debian 7.0, and refresh some other stuff too 2013-04-05 12:40:06 +00:00
kippo.cfg.dist Removed all trailing spaces 2014-05-28 05:13:55 +01:00
kippo.tac Remove connection limit support for now, since adding a protocol wrapper 2013-01-21 12:41:41 +00:00
start.sh A bunch of changes: 2009-11-20 15:48:45 +00:00

README.md

Kippo

Kippo is a medium interaction SSH honeypot designed to log brute force attacks and, most importantly, the entire shell interaction performed by the attacker.

Kippo is inspired, but not based on Kojoney.

Demo

Some interesting logs from a live Kippo installation below (viewable within a web browser with the help of Ajaxterm). Note that some commands may have been improved since these logs were recorded.

Features

Some interesting features:

  • Fake filesystem with the ability to add/remove files. A full fake filesystem resembling a Debian 5.0 installation is included
  • Possibility of adding fake file contents so the attacker can 'cat' files such as /etc/passwd. Only minimal file contents are included
  • Session logs stored in an UML Compatible format for easy replay with original timings
  • Just like Kojoney, Kippo saves files downloaded with wget for later inspection
  • Trickery; ssh pretends to connect somewhere, exit doesn't really exit, etc

Requirements

Software required:

  • An operating system (tested on Debian, CentOS, FreeBSD and Windows 7)
  • Python 2.5+
  • Twisted 8.0+
  • PyCrypto
  • Zope Interface

See Wiki for some installation instructions.

How to run it?

Edit kippo.cfg to your liking and start the honeypot by running:

./start.sh

start.sh is a simple shell script that runs Kippo in the background using twistd. Detailed startup options can be given by running twistd manually. For example, to run Kippo in foreground:

twistd -y kippo.tac -n

By default Kippo listens for ssh connections on port 2222. You can change this, but do not change it to 22 as it requires root privileges. Use port forwarding instead. (More info: MakingKippoReachable).

Files of interest:

  • dl/ - files downloaded with wget are stored here
  • log/kippo.log - log/debug output
  • log/tty/ - session logs
  • utils/playlog.py - utility to replay session logs
  • utils/createfs.py - used to create fs.pickle
  • fs.pickle - fake filesystem
  • honeyfs/ - file contents for the fake filesystem - feel free to copy a real system here

Is it secure?

Maybe. See FAQ

I have some questions!

I am might be reachable via e-mail: desaster at gmail dot com, or as desaster on the #honeypots channel in the freenode IRC network.