How le0vip3r/ssh-honeypot-soc works
This is a hands-on SSH honeypot SOC lab: Cowrie captures SSH activity as JSON events, which feed a live failed-login detector, an offline analyzer, and a Flask dashboard. The graph preserves those distinct capture, detection, analysis, and presentation stages, plus alert storage and the dashboard’s event and alert views. Source excerpts establish the detector and dashboard’s Docker-based Cowrie access; README documents the Cowrie event flow and local-log analysis. Cowrie and runtime data paths are documented, not repository source files.
Main entry points: app.py Dashboard Route · live_detector.py Live Detector · analyze_logs.py Offline Log Analyzer
Components 12
SSH Capture
- Cowrie Honeypot
- Cowrie JSON Events
Detection
- Live Detector
scripts/live_detector.py - Failed-Login Threshold
scripts/live_detector.py - Alert Log
Log Analysis
- Offline Log Analyzer
scripts/analyze_logs.py
SOC Dashboard
- Dashboard Route
dashboard/app.py - Login Metrics & Trends
dashboard/app.py - Recent Cowrie Events
dashboard/app.py - Recent Alerts
dashboard/app.py
Other components
- SSH Client / Test Traffic
- SOC Operator
Connections 14
- SSH Client / Test Traffic → Cowrie Honeypot: sends traffic
README.md - Cowrie Honeypot → Cowrie JSON Events: records events
README.md - Cowrie JSON Events → Live Detector: streams events
scripts/live_detector.py - Live Detector → Failed-Login Threshold: checks attempts
scripts/live_detector.py - Live Detector → Alert Log: appends alerts
scripts/live_detector.py - Cowrie JSON Events → Offline Log Analyzer: reads local copy
README.md - Dashboard Route → Cowrie Honeypot: fetches via Docker
dashboard/app.py - Dashboard Route → Login Metrics & Trends: computes metrics
dashboard/app.py - Dashboard Route → Recent Cowrie Events: selects recent events
dashboard/app.py - Dashboard Route → Alert Log: reads alerts
dashboard/app.py - Dashboard Route → Recent Alerts: renders alerts
dashboard/app.py - Login Metrics & Trends → SOC Operator: displays activity
dashboard/app.py - Recent Cowrie Events → SOC Operator: displays events
dashboard/app.py - Recent Alerts → SOC Operator: displays alerts
dashboard/app.py