cowrie/README.md

90 lines
3.3 KiB
Markdown
Raw Normal View History

2018-07-20 18:16:57 +00:00
Cowrie
======
2018-07-20 18:21:38 +00:00
![Travis CI Status](https://travis-ci.org/cowrie/cowrie.svg?branch=master "Travis CI Status")
2014-05-27 20:31:54 +00:00
2016-11-09 18:36:15 +00:00
# Welcome to the Cowrie GitHub repository
2016-11-09 11:24:59 +00:00
This is the official repository for the Cowrie SSH and Telnet
Honeypot effort.
# What is Cowrie
Cowrie is a medium interaction SSH and Telnet honeypot designed to
log brute force attacks and the shell interaction performed by the
attacker.
2014-05-27 20:31:54 +00:00
2018-09-07 14:38:11 +00:00
[Cowrie](http://github.com/cowrie/cowrie/) is developed by Michel Oosterhof.
2014-05-27 20:31:54 +00:00
2018-06-10 08:20:27 +00:00
## Slack
2018-07-11 09:25:21 +00:00
You can join the Cowrie community at the following [Slack workspace](http://bit.ly/cowrieslack)
2018-06-10 08:20:27 +00:00
2014-05-27 20:31:54 +00:00
## Features
2016-01-22 00:11:05 +00:00
2014-05-27 20:31:54 +00:00
Some interesting features:
2016-01-22 00:11:05 +00:00
2014-05-27 20:31:54 +00:00
* Fake filesystem with the ability to add/remove files. A full fake filesystem resembling a Debian 5.0 installation is included
2016-01-22 00:11:05 +00:00
* Possibility of adding fake file contents so the attacker can `cat` files such as `/etc/passwd`. Only minimal file contents are included
2018-06-06 09:37:18 +00:00
* Session logs are stored in an [UML Compatible](http://user-mode-linux.sourceforge.net/) format for easy replay with original timings with the `bin/playlog` utility.
2015-05-12 15:01:57 +00:00
* Cowrie saves files downloaded with wget/curl or uploaded with SFTP and scp for later inspection
2018-08-24 23:25:29 +00:00
log
2015-05-12 15:05:54 +00:00
Additional functionality over standard kippo:
* SFTP and SCP support for file upload
* Support for SSH exec commands
* Logging of direct-tcp connection attempts (ssh proxying)
2016-04-25 14:45:44 +00:00
* Forward SMTP connections to SMTP Honeypot (e.g. [mailoney](https://github.com/awhitehatter/mailoney))
2015-05-12 15:05:54 +00:00
* Logging in JSON format for easy processing in log management solutions
* Many, many additional commands
2017-09-06 08:50:26 +00:00
## Docker
Docker versions are available.
* Get the Dockerfile directly at https://github.com/cowrie/docker-cowrie
2018-07-28 15:16:12 +00:00
* Run from Docker Hub with: ```docker pull cowrie/cowrie```
2017-09-06 08:50:26 +00:00
2014-05-27 20:31:54 +00:00
## Requirements
2016-01-22 00:11:05 +00:00
2014-05-27 20:31:54 +00:00
Software required:
2018-06-22 11:50:45 +00:00
* Python 2.7+, (Limited Python 3 support available for SSH only)
2017-01-30 10:33:29 +00:00
* python-virtualenv
For Python dependencies, see requirements.txt
2015-05-12 15:26:42 +00:00
## Files of interest:
2014-05-27 20:31:54 +00:00
2018-07-20 10:39:49 +00:00
* `cowrie.cfg` - Cowrie's configuration file. Default values can be found in `etc/cowrie.cfg.dist`
2018-08-24 23:25:29 +00:00
* `share/cowrie/fs.pickle` - fake filesystem
2016-01-22 00:11:05 +00:00
* `data/userdb.txt` - credentials allowed or disallowed to access the honeypot
2016-04-28 10:46:57 +00:00
* `honeyfs/` - file contents for the fake filesystem - feel free to copy a real system here or use `bin/fsctl`
2018-06-23 17:06:51 +00:00
* `honeyfs/etc/issue.net` - pre-login banner
* `honeyfs/etc/motd` - post-login banner
2018-08-24 23:25:29 +00:00
* `var/log/cowrie/cowrie.json` - transaction output in JSON format
* `var/log/cowrie/cowrie.log` - log/debug output
* `var/lib/cowrie/tty/` - session logs, replayable with the `bin/playlog` utility.
* `var/lib/cowrie/downloads/` - files transferred from the attacker to the honeypot are stored here
2018-09-07 10:47:17 +00:00
* `share/cowrie/txtcmds/` - file contents for simple fake commands
2016-04-28 10:46:57 +00:00
* `bin/createfs` - used to create the fake filesystem
* `bin/playlog` - utility to replay session logs
2014-05-27 20:31:54 +00:00
## Is it secure?
2016-01-22 00:11:05 +00:00
2018-09-07 10:47:17 +00:00
Maybe. See [FAQ](https://github.com/cowrie/cowrie/wiki/Frequently-Asked-Questions)
2014-05-27 20:31:54 +00:00
## I have some questions!
2016-01-22 00:11:05 +00:00
2018-06-04 11:18:31 +00:00
Please visit https://cowrie.slack.com/ and join the #questions channel
2016-08-22 13:14:17 +00:00
## Contributors
Many people have contributed to Cowrie over the years. Special thanks to:
* Upi Tamminen (desaster) for all his work developing Kippo on which Cowrie was based
2017-07-10 13:29:32 +00:00
* Dave Germiquet (davegermiquet) for TFTP support, unit tests, new process handling
2017-05-22 17:52:58 +00:00
* Olivier Bilodeau (obilodeau) for Telnet support
* Ivan Korolev (fe7ch) for many improvements over the years.
* And many many others.
2016-08-22 13:14:17 +00:00