How stvnm-58/winnie_the_pooh works
Winnie the Pooh is an SSH honeypot with a web dashboard. The primary workflow is an unauthorized SSH connection being recorded, optionally handled in a fake shell, stored for later review, and surfaced through dashboard views. The dashboard also exposes session replay, honeypot-port management, and firewall controls. Source excerpts show the SSH-to-storage and shell-to-storage calls; the README documents SQLite persistence and host-firewall actions. Some UI-to-API links are visible only as HTTP requests, so those edges are marked unverified.
Main entry points: web_app.py Web API · honeypot.py SSH listener · App.jsx App routing · database.py Event database
Components 16
SSH capture
- SSH listener
server/src/honeypot.py - Fake shell
server/src/fake_shell.py - Geo lookup
server/src/utils.py
Event storage
- Event database
server/src/database.py - Archive database
server/data/archive.db
Management API
- Web API
server/src/web_app.py - Runtime config
server/data/config.json
Dashboard
- App routing
client/src/App.jsx - Attack dashboard
client/src/pages/Dashboard.jsx - Session replay
client/src/pages/SessionReplay.jsx - Honeypot manager
client/src/pages/MeshManager.jsx - Firewall manager
client/src/pages/FirewallManager.jsx
Other components
- SSH client
- GeoIP service
- Host firewall
- Dashboard user
Connections 19
- SSH client → SSH listener: connects
README.md - SSH listener → Event database: records attacks
server/src/honeypot.py - SSH listener → Fake shell: starts shell
server/src/honeypot.py - Fake shell → Event database: logs commands
server/src/fake_shell.py - SSH listener → Geo lookup: resolves country
server/src/honeypot.py - Geo lookup → GeoIP service: queries
server/src/utils.py - SSH listener → Event database: archives events
server/src/honeypot.py - Event database → Archive database: moves old records
server/src/database.py - Web API → Event database: reads events
server/src/web_app.py - Web API → Runtime config: reads port
server/src/web_app.py - Web API → Host firewall: updates rules
README.md - Dashboard user → App routing: opens dashboard
- App routing → Attack dashboard: routes to
client/src/App.jsx - App routing → Session replay: routes to
client/src/App.jsx - App routing → Honeypot manager: routes to
client/src/App.jsx - App routing → Firewall manager: routes to
client/src/App.jsx - Attack dashboard → Web API: fetches data
- Honeypot manager → Web API: manages ports
- Firewall manager → Web API: requests bans