GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - Ojasveer955/Cowrie-ELK-honeypot: A Cowrie honeypot integrated with ELK SIEM stack for advanced network monitoring and threat-hunting

BranchesTags
Open more actions menu

Latest commit

 

History

11 Commits
11 Commits

Folders and files

NameName
Last commit message
Last commit date
Images
Images
 
 
cowrie_logs
cowrie_logs
 
 
enriched_logs
enriched_logs
 
 
logstash
logstash
 
 
scripts
scripts
 
 
.env.example
.env.example
 
 
.gitignore
.gitignore
 
 
CONTRIBUTING.md
CONTRIBUTING.md
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
cowrie_index_template.json
cowrie_index_template.json
 
 
cowrie_template.json
cowrie_template.json
 
 
docker-compose.yml
docker-compose.yml
 
 
requirements.txt
requirements.txt
 
 

Repository files navigation

Cowrie Honeypot + ELK Threat Intelligence Platform

Table of Contents

  • Project Overview
  • Features
  • Architecture Overview
  • Getting Started
  • Configuration
  • Usage
  • Directory Structure
  • Contributing
  • Security & Ethics
  • Incoming Updates
  • License

Project Overview

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.

Features

  • 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

Architecture Overview

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.

Getting Started

Prerequisites

  • Docker & Docker Compose
  • Python 3.8+
  • (Optional) Elasticsearch and Kibana if running outside Docker

Cowrie Setup

To set up Cowrie, please follow the official documentation: https://cowrie.readthedocs.io/en/latest/

GeoIP Database

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).

AbuseIPDB API Key

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.


Kibana Dashboard for Live Incoming Logs

Below is the screenshot of the Kibana showing the logs coming in as they are captured by the honeypot.

Kibana Dashboard


Malwares Samples Dropped And Captured

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.

All captured Malware Samples:

Malwares Dropped

Malware Capture in Kibana:

Malware Kibana

Malware Info:

Malware Info

Virus Total on the Malware Dropped:

Virus Total


Sample Dashboards

Below are some of the custom developed dahsboards, regarding the offending IP, usernames and passwords used, the protocol, etc.

World Offending IP Geolocation Map

World Map

Protocol Distribution

Protocol Distribution

Top 10 IPs

Top 10 IPs

Top 10 Usernames Attempted

Top 10 Usernames Attempted

Top 10 Passwords Attempted

Top 10 Passwords Attempted

Offending IP Abuse Confidence

Offending IP Abuse Confidence

Commands Executed

Commands Executed

Top Attacker COuntries

Top 10 Attacker Countries

Quickstart

  1. Clone this repository
  2. Copy and edit configuration files as needed
  3. Run docker-compose up -d to start the stack
  4. Access Kibana at http://localhost:5601

Manual Setup

Instructions for manual installation will be updated soon.

Configuration

  • Cowrie: Configure in cowrie_template.json and cowrie_logs/
  • Logstash: Pipeline in logstash/pipeline/logstash.conf, GeoIP DB in logstash/geoip/
  • Enrichment Scripts: Settings in scripts/ and environment variables
  • Docker Compose: Services and volumes in docker-compose.yml

Usage

  • 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

Directory Structure

  • cowrie_logs/ — Raw Cowrie logs
  • enriched_logs/ — Enriched log output
  • logstash/ — Logstash pipeline and GeoIP data
  • scripts/ — Python enrichment and utility scripts
  • docker-compose.yml — Container orchestration
  • requirements.txt — Python dependencies

Contributing

Contributions are welcome! Please open issues or pull requests for bug fixes, new features, or documentation improvements. See CONTRIBUTING.md for guidelines (if available).

Security & Ethics

  • 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

Incoming Updates

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.

License

This project is licensed under the MIT License. See the full license text in the LICENSE file or read the MIT License online.

About

A Cowrie honeypot integrated with ELK SIEM stack for advanced network monitoring and threat-hunting

Topics

elk-stackhoneypotsiemsshtelnetthreat-huntingthreat-intelligence

Resources

Readme
MIT license

Contributing

Contributing
Activity

Stars

1 star

Watchers

0 watching

Forks

0 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.