cowrie  by cowrie

SSH/Telnet honeypot with AI-driven interaction

Created 10 years ago
6,096 stars

Top 8.3% on SourcePulse

GitHubView on GitHub
1 Expert Loves This Project
Project Summary

Summary

Cowrie is a medium to high interaction SSH and Telnet honeypot designed to log brute force attacks and attacker shell interactions. It offers an emulated UNIX system, proxying capabilities, and an experimental LLM mode for dynamic responses, benefiting security researchers and administrators by providing insights into attacker behavior.

How It Works

Cowrie emulates a UNIX system with a fake filesystem in its default shell mode, or acts as an SSH/Telnet proxy to monitor activity on other systems. An experimental LLM mode allows it to generate dynamic, context-aware responses to attacker commands without predefined scripts. All session logs are stored in a UML-compatible format for replayability with the playlog utility.

Quick Start & Requirements

  • Installation: Docker (easiest for quick testing), git clone (recommended for configuration), or pip (beta).
    • Docker quick start: docker run -p 2222:2222 cowrie/cowrie:latest then ssh -p 2222 root@localhost.
    • Docker build: make docker-build.
    • PyPI install: pip install cowrie followed by twistd cowrie.
  • Requirements: Python 3.10+, python-virtualenv.
  • Configuration: Key files include etc/cowrie.cfg, etc/userdb.txt, and the honeyfs/ directory for fake filesystem contents.
  • Links: Documentation: https://docs.cowrie.org/en/latest/index.html, Slack: https://www.cowrie.org/slack/.

Highlighted Details

  • Emulated filesystem resembling Debian 5.0, with fake file contents and support for wget/curl, SFTP, and SCP file transfers.
  • Logs direct-TCP connection attempts and SSH exec commands.
  • Experimental LLM backend for generating realistic, dynamic shell responses.
  • Session logs are UML-compatible for replay with playlog and JSON logging is available.

Maintenance & Community

Maintained by Michel Oosterhof. A Slack community is available. Notable past contributors are listed, including Upi Tamminen and Guilherme Borges.

Licensing & Compatibility

The README does not explicitly state the license. This requires clarification for commercial use or closed-source linking.

Limitations & Caveats

The pip installation method is still in beta and may not work as expected. The LLM mode is experimental.

Health Check
Last Commit

3 days ago

Responsiveness

Inactive

Pull Requests (30d)
29
Issues (30d)
5
Star History
79 stars in the last 30 days

Explore Similar Projects

Starred by Chip Huyen Chip Huyen(Author of "AI Engineering", "Designing Machine Learning Systems"), Wei-Lin Chiang Wei-Lin Chiang(Cofounder of LMArena), and
13 more.

awesome-tensor-compilers by merrymercy

0.1%
3k
Curated list of tensor compiler projects and papers
Created 5 years ago
Updated 1 year ago
Starred by Shengjia Zhao Shengjia Zhao(Chief Scientist at Meta Superintelligence Lab), Chip Huyen Chip Huyen(Author of "AI Engineering", "Designing Machine Learning Systems"), and
14 more.

BIG-bench by google

0.1%
3k
Collaborative benchmark for probing and extrapolating LLM capabilities
Created 5 years ago
Updated 1 year ago
Starred by Lysandre Debut Lysandre Debut(Chief Open-Source Officer at Hugging Face), Shizhe Diao Shizhe Diao(Author of LMFlow; Research Scientist at NVIDIA), and
14 more.

simpletransformers by ThilinaRajapakse

0%
4k
Rapid NLP task implementation
Created 6 years ago
Updated 4 months ago
Starred by Aravind Srinivas Aravind Srinivas(Cofounder of Perplexity), Chip Huyen Chip Huyen(Author of "AI Engineering", "Designing Machine Learning Systems"), and
16 more.

text-to-text-transfer-transformer by google-research

0.1%
6k
Unified text-to-text transformer for NLP research
Created 6 years ago
Updated 2 days ago
Starred by Vaibhav Nivargi Vaibhav Nivargi(Cofounder of Moveworks), Chuan Li Chuan Li(Chief Scientific Officer at Lambda), and
5 more.

awesome-mlops by visenger

0.1%
14k
Curated MLOps knowledge hub
Created 5 years ago
Updated 1 year ago
Feedback? Help us improve.