How sainitesh10/neon-aegis works
Neon Aegis combines a Python honeypot service with a Next.js command-center UI. The principal workflow is a scanner following the hidden landing-page bait, triggering IP blocking and Gemini analysis; the backend publishes the resulting event over SSE for the dashboard. Separately, Next.js exposes simulated attack, mitigation, reset, and telemetry endpoints backed by in-memory state. Those simulation endpoints are distinct from the backend honeypot flow. The graph uses README and sampled source; unsampled internals are not inferred.
Main entry points: main.py Honeypot trap · state.ts Simulation state · app/page.tsx Public landing page · dashboard/page.tsx Threat dashboard
Components 16
Web interface
- Public landing page
src/app/page.tsx - Threat dashboard
src/app/dashboard/page.tsx
Simulation API
- Trigger attack
src/app/api/trigger-attack/route.ts - Mitigation endpoint
src/app/api/mitigate/route.ts - Reset endpoint
src/app/api/reset/route.ts - Telemetry endpoint
src/app/api/telemetry/route.ts - Simulation state
src/lib/state.ts
Honeypot defense
- Honeypot trap
backend/main.py - Banned IP store
backend/main.py - Gemini analysis
backend/main.py
Threat event feed
- SSE event queues
backend/main.py - SSE stream
backend/main.py
Other components
- Site visitor
- Scanner / bot
- Google Gemini API
- Attack simulator
backend/hacker_attack.py
Connections 14
- Site visitor → Public landing page: opens
README.md - Public landing page → Honeypot trap: links bait
src/app/page.tsx - Scanner / bot → Honeypot trap: triggers trap
README.md - Attack simulator → Honeypot trap: sends payload
backend/hacker_attack.py - Honeypot trap → Banned IP store: checks and bans
backend/main.py - Honeypot trap → Gemini analysis: requests analysis
backend/main.py - Gemini analysis → Google Gemini API: calls
backend/main.py - Honeypot trap → SSE event queues: publishes event
backend/main.py - SSE stream → SSE event queues: reads events
backend/main.py - Threat dashboard → SSE stream: opens SSE
src/app/dashboard/page.tsx - Trigger attack → Simulation state: triggers attack
src/app/api/trigger-attack/route.ts - Mitigation endpoint → Simulation state: mitigates threat
src/app/api/mitigate/route.ts - Reset endpoint → Simulation state: resets state
src/app/api/reset/route.ts - Telemetry endpoint → Simulation state: reads metrics
src/app/api/telemetry/route.ts