How m0i6/decoy works
Decoy is a honeypot monitoring and incident-visualization dashboard. The main workflow is that a deployed honeypot observes attacker activity and reports incidents to the Flask API; the API stores honeypots and incidents, while the Vue dashboard fetches them to show a list, details, and severity-aware map. Users can also create honeypot records by selecting a map location and submitting a form. Source excerpts establish most frontend and API wiring; the README documents the honeypot alert workflow. Other honeypot internals and some frontend modules were not sampled, so uncertain links are omitted.
Main entry points: WorldMap.vue World map · router.ts Page routing · Deployment.vue Honeypot form · db.py ORM extension
Components 25
Dashboard
- Application shell
frontend/src/App.vue - Page routing
frontend/src/router.ts - Dashboard page
frontend/src/pages/Home.vue - Honeypot form
frontend/src/pages/Deployment.vue - About page
frontend/src/pages/About.vue - Navigation bar
frontend/src/components/Navbar.vue - Honeypot list
frontend/src/components/HoneypotList.vue - Honeypot details
frontend/src/components/HoneypotDetails.vue - World map
frontend/src/components/WorldMap.vue - API client
frontend/src/backendProxy.ts - API configuration
frontend/src/config.ts - Data types
frontend/src/types.ts
Backend API
- Flask application
backend/main.py - Honeypot routes
backend/database/models/HoneyPotModel.py - Incident routes
backend/database/models/IncidentLogModel.py
Persistence
- ORM extension
backend/database/db.py - Honeypot records
backend/database/models/HoneyPotModel.py - Incident records
backend/database/models/IncidentLogModel.py - SQLite database
- Initial data setup
backend/setup_database.py
Honeypot
- SSH honeypot
honeypot/pot.py - Probe utility
honeypot/probe.py
Other components
- Dashboard user
- Attacker
- Map tile service
Connections 30
- Dashboard user → Page routing: navigates
frontend/src/router.ts - Page routing → Dashboard page: routes to
frontend/src/router.ts - Page routing → Honeypot form: routes to
frontend/src/router.ts - Page routing → About page: routes to
frontend/src/router.ts - Application shell → Navigation bar: renders
frontend/src/App.vue - Application shell → Page routing: hosts routes
frontend/src/App.vue - Dashboard page → Honeypot list: renders
frontend/src/pages/Home.vue - Dashboard page → World map: renders
frontend/src/pages/Home.vue - Dashboard page → Honeypot details: renders
frontend/src/pages/Home.vue - Honeypot form → World map: renders
frontend/src/pages/Deployment.vue - Honeypot form → Honeypot routes: POSTs record
frontend/src/pages/Deployment.vue - Honeypot form → API configuration: reads URL
frontend/src/pages/Deployment.vue - World map → API client: fetches honeypots
frontend/src/components/WorldMap.vue - World map → Incident routes: fetches incidents
frontend/src/components/WorldMap.vue - World map → Honeypot form: emits location
frontend/src/components/WorldMap.vue - World map → Map tile service: loads tiles
frontend/src/components/WorldMap.vue - API client → API configuration: reads URL
frontend/src/backendProxy.ts - API client → Data types: uses types
frontend/src/backendProxy.ts - Honeypot list → API client: fetches records
frontend/src/components/HoneypotList.vue - Flask application → ORM extension: initializes
backend/main.py - Flask application → Incident routes: registers routes
backend/main.py - Flask application → Honeypot routes: registers routes
backend/main.py - Honeypot routes → ORM extension: queries and commits
backend/database/models/HoneyPotModel.py - Incident routes → ORM extension: queries and commits
backend/database/models/IncidentLogModel.py - ORM extension → SQLite database: persists records
- Initial data setup → ORM extension: creates tables
backend/setup_database.py - Initial data setup → Honeypot records: seeds records
backend/setup_database.py - Initial data setup → Incident records: seeds records
backend/setup_database.py - Attacker → SSH honeypot: interacts with
README.md - SSH honeypot → Flask application: sends alerts
README.md