How nyx-off/honeypot-dashboard works
Project type and purpose
• This is a Docker‐based, multi‐container full‐stack application whose goal is to deploy a Cowrie honeypot, ingest its logs, store them in MongoDB, and present a real-time web dashboard (Flask + SocketIO) to monitor attacks.
File structure
• Top level:
• cowrie/ – Cowrie honeypot configuration, rootfs, SSH/Telnet keys, and log directory
• ingestion/ – Python script (ingest.py) that monitors cowrie/log and writes to MongoDB
• dashboard/ – Flask app (app.py), templates, requirements.txt, optional GeoIP DB
• docker-compose.yml – Orchestrates 4 services (cowrie, mongo, ingestion, dashboard)
• Notice the shared volume cowrie/log mounted into ingestion.
• cowrie/cowrie.cfg and cowrie/etc/userdb.txt define honeypot behavior.
Extract architectural insights from README
• Four Docker services: cowrie, mongo, ingestion, dashboard
• Data flow: Attacker → Cowrie → Log files → Ingestion → MongoDB ← Dashboard
• Dashboard communicates with clients via WebSockets for real-time updates.
• Optional GeoIP lookup happens in the dashboard container.
Essential details to capture
• Shared volume path: cowrie/log → mounted into ingestion
• Docker Compose service names and inter‐service network
• Real-time update mechanism: MongoDB → Dashboard → Client via WebSockets
• Config files: cowrie/cowrie.cfg, userdb.txt, GeoLite2-City.mmdb (if used)
• Entrypoints: cowrie.tac for Cowrie, ingest.py for ingestion, app.py for dashboard