How monicanr/hunny-honeypot works
Hunny Do combines a functioning, authenticated PHP to-do and community app with a multi-layer web honeypot and host-level decoys. The main user flow is registration/login into the to-do app, with separate maze, leaderboard, chat, profile, and chatbot capabilities. Attack traffic is baited through advertised paths and decoy admin/trap pages, logged, and processed by an alert daemon. The README documents deployment and integrations beyond the sampled source; those relationships are cited to it, while unsampled implementation details are not inferred.
Main entry points: config.php App services and logging · hundred-acre-admin/index.php Layer 2 login · admin/index.php Layer 1 fake admin · honeypot_alerts.py Alert processor
Components 31
User application
- Registration and login
code/www/register.php - To-do list
code/www/index.php - Maze game
code/www/maze.php - Leaderboard
code/www/leaderboard.php - Community chat
code/www/chat.php - Pooh chatbot
code/www/pooh-bot.php - Profile and uploads
code/www/profile.php - Shared page layout
code/www/layout.php - App services and logging
code/www/config.php - JWT authentication
code/www/includes/jwt.php
Honeypot layers
- Discovery bait
code/www/robots.txt - Credential bait
code/www/.env - Layer 1 fake admin
code/www/admin/index.php - Layer 2 login
code/www/hundred-acre-admin/index.php - Fake admin dashboard
code/www/hundred-acre-admin/dashboard.php - Interaction beacon
code/www/hundred-acre-admin/beacon.php - Attack classification traps
code/www/mad-hatter.php - Deep trap page
code/www/trap.php
Detection and alerts
- Application and honeypot logs
code/www/config.php - Alert configuration
config/opt/honeypot-alerts/config.py - Alert processor
config/opt/honeypot-alerts/honeypot_alerts.py
Host services
- Nginx and ModSecurity
config/etc/nginx/nginx.conf - OpenCanary services
config/etc/opencanaryd/opencanary.conf - SSH tarpit
config/lib/systemd/system/endlessh.service - Log shipping
config/etc/filebeat/filebeat.yml
Other components
- Visitor
- MySQL database
- Gemini API
- Email service
- Telegram
- Elasticsearch and Kibana
Connections 45
- Visitor → Registration and login: registers or logs in
README.md - Visitor → To-do list: manages tasks
README.md - Visitor → Maze game: plays
README.md - Visitor → Community chat: joins
README.md - Visitor → Profile and uploads: manages profile
README.md - Registration and login → App services and logging: uses app services
code/www/register.php - To-do list → App services and logging: reads and writes
code/www/index.php - To-do list → MySQL database: stores tasks
code/www/index.php - Maze game → App services and logging: uses app services
code/www/maze.php - Maze game → Leaderboard: links to scores
code/www/maze.php - Leaderboard → App services and logging: uses app services
code/www/leaderboard.php - Community chat → App services and logging: uses app services
code/www/chat.php - Pooh chatbot → App services and logging: uses app services
code/www/pooh-bot.php - Pooh chatbot → Gemini API: sends prompts
README.md - Profile and uploads → App services and logging: uses app services
code/www/profile.php - Shared page layout → App services and logging: uses app services
code/www/layout.php - App services and logging → MySQL database: connects to
code/www/config.php - App services and logging → JWT authentication: loads helper
code/www/config.php - Visitor → Discovery bait: discovers paths
README.md - Visitor → Credential bait: finds bait credentials
README.md - Discovery bait → Layer 1 fake admin: advertises
README.md - Credential bait → Layer 2 login: reveals panel path
README.md - Visitor → Layer 1 fake admin: probes credentials
code/www/admin/index.php - Layer 1 fake admin → Layer 2 login: leads deeper
README.md - Visitor → Layer 2 login: attempts login
code/www/hundred-acre-admin/index.php - Layer 2 login → Fake admin dashboard: redirects after login
code/www/hundred-acre-admin/index.php - Fake admin dashboard → Interaction beacon: records interaction
- Visitor → Attack classification traps: submits attack probes
README.md - Visitor → Deep trap page: visits trap
README.md - Layer 1 fake admin → App services and logging: logs activity
code/www/admin/index.php - Layer 2 login → App services and logging: logs attempts
code/www/hundred-acre-admin/index.php - Fake admin dashboard → App services and logging: uses app services
code/www/hundred-acre-admin/dashboard.php - Interaction beacon → App services and logging: logs interaction
code/www/hundred-acre-admin/beacon.php - Attack classification traps → App services and logging: uses app services
code/www/mad-hatter.php - Deep trap page → App services and logging: uses app services
code/www/trap.php - App services and logging → Application and honeypot logs: writes events
code/www/config.php - Alert configuration → Alert processor: provides credentials
config/opt/honeypot-alerts/honeypot_alerts.py - Application and honeypot logs → Alert processor: supplies monitored events
config/opt/honeypot-alerts/honeypot_alerts.py - Alert processor → Email service: sends alerts
README.md - Alert processor → Telegram: sends alerts
README.md - Visitor → Nginx and ModSecurity: sends web requests
README.md - Nginx and ModSecurity → MySQL database: forwards app requests
- Visitor → OpenCanary services: probes fake services
README.md - Visitor → SSH tarpit: connects to SSH decoy
README.md - Log shipping → Elasticsearch and Kibana: ships logs
README.md