- Project Overview
- Features
- Architecture Overview
- Getting Started
- Configuration
- Usage
- Directory Structure
- Contributing
- Security & Ethics
- Incoming Updates
- License
This project integrates the Cowrie SSH/Telnet honeypot with the ELK (Elasticsearch, Logstash, Kibana) stack to provide a robust platform for collecting, enriching, analyzing, and visualizing malicious activity. It is designed for security research, threat intelligence, and hands-on learning in cyber defense.
- Automated log collection from Cowrie honeypot
- Log enrichment with GeoIP, ASN, and threat intelligence sources (e.g., AbuseIPDB)
- Custom enrichment scripts for advanced analysis
- Pre-built and custom Kibana dashboards for threat hunting and reporting
- Modular pipeline for adding new enrichment or log sources
- Docker Compose for easy deployment
- Secure and ethical deployment guidelines
The platform consists of the following components:
- Cowrie: Captures attacker interactions and logs them in JSON format
- Logstash: Parses, enriches, and forwards logs
- Elasticsearch: Stores and indexes enriched events
- Kibana: Visualizes and analyzes data
- Enrichment Scripts: Python scripts for additional threat intelligence and data processing
Logs flow from Cowrie to Logstash, where they are enriched and indexed in Elasticsearch. Kibana provides dashboards and search capabilities for analysis.
- Docker & Docker Compose
- Python 3.8+
- (Optional) Elasticsearch and Kibana if running outside Docker
To set up Cowrie, please follow the official documentation: https://cowrie.readthedocs.io/en/latest/
You must manually download the GeoLite2 City database from MaxMind (https://dev.maxmind.com/geoip/geolite2-free-geolocation-data) and place it in the appropriate location (e.g., logstash/geoip/GeoLite2-City.mmdb).
For log enrichment with AbuseIPDB, you need to obtain a free API key from https://www.abuseipdb.com/ and add it to your environment or configuration as required by the enrichment scripts and Logstash pipeline.
Below is the screenshot of the Kibana showing the logs coming in as they are captured by the honeypot.
Below shows the screenshots of the malwares dropped by the bots/threat actors on the honeypot. All dropped malwares are safely captured by the honeypot, renamed to their SHA256 hash.
Below are some of the custom developed dahsboards, regarding the offending IP, usernames and passwords used, the protocol, etc.
- Clone this repository
- Copy and edit configuration files as needed
- Run
docker-compose up -dto start the stack - Access Kibana at
http://localhost:5601
Instructions for manual installation will be updated soon.
- Cowrie: Configure in
cowrie_template.jsonandcowrie_logs/ - Logstash: Pipeline in
logstash/pipeline/logstash.conf, GeoIP DB inlogstash/geoip/ - Enrichment Scripts: Settings in
scripts/and environment variables - Docker Compose: Services and volumes in
docker-compose.yml
- Start/stop the stack with Docker Compose
- View and analyze logs in Kibana
- Run enrichment scripts as needed (see
scripts/) - Add new log sources or enrichments by updating Logstash config and scripts
cowrie_logs/— Raw Cowrie logsenriched_logs/— Enriched log outputlogstash/— Logstash pipeline and GeoIP datascripts/— Python enrichment and utility scriptsdocker-compose.yml— Container orchestrationrequirements.txt— Python dependencies
Contributions are welcome! Please open issues or pull requests for bug fixes, new features, or documentation improvements. See CONTRIBUTING.md for guidelines (if available).
- Deploy in a controlled, isolated environment
- Do not use for unauthorized monitoring or entrapment
- Outbound connections from the honeypot are restricted
- Review and comply with all applicable laws and policies
A Terraform script to codify the honeypot and supporting infrastructure as code (IaC) will be released soon. This will enable automated, reproducible deployments in cloud or on-prem environments.
This project is licensed under the MIT License. See the full license text in the LICENSE file or read the MIT License online.












