How ajay-yv/active-cyber-deception works
This is a healthcare cyber-deception platform: users access role-specific dashboards and patient workflows, while the backend exposes healthcare and security APIs, routes requests through gateway policy, and supports synthetic twins, analytics, and forensic monitoring. The README documents Google patient sign-in and authenticated realtime alerts. Some subsystems are represented from the tree and README without sampled implementation; those links are omitted or marked unverified rather than inferred.
Main entry points: main.py FastAPI application · patients.py Patient endpoints · api.ts API client · App.tsx App routing
Components 23
Role-based frontend
- App routing
frontend/src/App.tsx - Patient and admin UI
frontend/src/user/AppUser.tsx - Doctor dashboard
frontend/src/components/DoctorDashboard.tsx - Hacker dashboard
frontend/src/hacker/AppHacker.tsx - API client
frontend/src/api.ts
Backend API
- FastAPI application
backend/app/main.py - Patient endpoints
backend/app/api/patients.py - Authentication
backend/app/api/auth.py - Security endpoints
backend/app/api/security.py - Realtime endpoint
backend/app/api/realtime.py
Healthcare and AI
- Patient services
backend/app/services/patients.py - Twin generation
backend/app/services/twin.py - AI twin engine
ai-engine/app/twin_generator.py - Analytics
backend/app/services/analytics.py
Security and persistence
- Gateway policy
backend/app/services/gateway.py - AI engine proxy
backend/app/services/ai_engine_proxy.py - Patient repository
backend/app/repositories/patient_repository.py - Twin repository
backend/app/repositories/synthetic_repository.py - Security repository
backend/app/repositories/security_repository.py - Application databases
backend/app/db/engines.py
Other components
- Patients and staff
- AI security gateway
gateway/app.py - Firebase Authentication
Connections 27
- Patients and staff → App routing: use dashboards
frontend/src/App.tsx - App routing → Patient and admin UI: routes to
- App routing → Hacker dashboard: routes to
- Patient and admin UI → API client: requests data
frontend/src/user/AppUser.tsx - Doctor dashboard → API client: requests data
frontend/src/components/DoctorDashboard.tsx - Hacker dashboard → API client: requests data
frontend/src/hacker/AppHacker.tsx - API client → FastAPI application: calls API
README.md - FastAPI application → Authentication: registers routes
backend/app/main.py - FastAPI application → Patient endpoints: registers routes
backend/app/main.py - FastAPI application → Security endpoints: registers routes
backend/app/main.py - FastAPI application → Realtime endpoint: registers routes
backend/app/main.py - FastAPI application → Gateway policy: evaluates requests
backend/app/main.py - Patient endpoints → Patient services: calls services
backend/app/api/patients.py - Patient endpoints → Gateway policy: checks requests
backend/app/api/patients.py - Patient endpoints → Twin generation: requests twins
backend/app/api/patients.py - Patient endpoints → Patient repository: persists patients
- Twin generation → Twin repository: stores twins
- Authentication → Firebase Authentication: verifies sign-in
README.md - Authentication → Patient services: matches patient
backend/app/api/auth.py - FastAPI application → Analytics: routes analytics
backend/app/main.py - FastAPI application → AI engine proxy: provides AI proxy
- AI engine proxy → AI twin engine: connects to engine
- Gateway policy → AI security gateway: requests decision
backend/app/services/gateway.py - Patient repository → Application databases: reads and writes
backend/app/repositories/patient_repository.py - Twin repository → Application databases: reads and writes
backend/app/repositories/synthetic_repository.py - Security repository → Application databases: reads and writes
backend/app/repositories/security_repository.py - Security endpoints → Security repository: uses repository