How jaswanthsai14/cyber_automation works
Cyber Automation is a web application for generating website security assessments and reviewing saved scan reports. Users sign in, submit a target, receive a report, and can view or delete scan history. The frontend calls a Node API for authentication, scan requests, and history; a separate Python API exposes a scan endpoint that invokes the assessment agent. The excerpts show assessment capabilities including DNS, WHOIS, TLS, HTTP headers, subdomains, technology detection, and port scanning, but do not establish how the Node and Python services are connected or the agent’s internal execution order.
Main entry points: gateway.js API gateway · agent.js Scan handler · model.js User and scans · page.tsx Scan history
Components 25
Web application
- Scan interface
frontend/front/app/scan/page.tsx - Scan history
frontend/front/app/history/page.tsx - Report detail
frontend/front/app/history/[id]/page.tsx - Sign-in screens
frontend/front/app/signin/page.tsx - Login screen
frontend/front/app/login/page.tsx - Navigation
frontend/front/app/navbar/page.tsx - Session state
frontend/front/app/contextprovider/provider.tsx
Node API
- API gateway
backend1/gateway.js - Auth routes
backend1/auth/routes/route.js - Auth handlers
backend1/auth/mvc - Scan route
backend1/service/routes/route.js - Scan authorization
backend1/service/middleware/auth.js - Scan cache
backend1/service/middleware/cache.js - Scan handler
backend1/service/mvc/agent.js - Round selection
backend1/service/load/round.js - History routes
backend1/user/routes/route.js - History handlers
backend1/user/mvc - Rate limiter
backend1/limitter.js
Assessment service
- Scan API
backend2/fastapi_back/main.py - Assessment agent
backend2/agent.py - Reconnaissance checks
backend2/agent.py
Persistence
- User and scans
backend1/model.js - Redis cache
backend1/service/redis.js - MongoDB connection
backend1/db.js
Other components
- User
Connections 32
- User → Scan interface: submits target
frontend/front/app/scan/page.tsx - User → Scan history: views history
frontend/front/app/history/page.tsx - User → Sign-in screens: signs in
frontend/front/app/signin/page.tsx - Scan interface → API gateway: posts scan
- Scan history → API gateway: requests history
- Sign-in screens → API gateway: requests auth
- Login screen → API gateway: requests auth
- Navigation → API gateway: posts signout
- Scan interface → Session state: reads session
frontend/front/app/scan/page.tsx - Scan history → Session state: updates session
frontend/front/app/history/page.tsx - Navigation → Session state: updates session
frontend/front/app/navbar/page.tsx - Scan history → Report detail: opens report
frontend/front/app/history/page.tsx - API gateway → Rate limiter: uses limiter
backend1/gateway.js - Auth routes → Auth handlers: routes requests
backend1/auth/routes/route.js - Scan route → Scan authorization: checks token
backend1/service/routes/route.js - Scan route → Scan cache: checks cache
backend1/service/routes/route.js - Scan route → Scan handler: dispatches scan
backend1/service/routes/route.js - Scan handler → Redis cache: uses cache
backend1/service/mvc/agent.js - Scan handler → Round selection: selects backend
backend1/service/mvc/agent.js - Scan handler → User and scans: stores scans
backend1/service/mvc/agent.js - Scan cache → Redis cache: reads and writes
backend1/service/middleware/cache.js - Scan cache → User and scans: uses user data
backend1/service/middleware/cache.js - History routes → History handlers: routes requests
backend1/user/routes/route.js - History handlers → User and scans: reads and deletes
backend1/user/mvc/deleteScans.js - Scan API → Assessment agent: invokes helper
backend2/fastapi_back/main.py - Assessment agent → Reconnaissance checks: performs checks
backend2/agent.py - API gateway → Auth routes: routes auth
- API gateway → Scan route: routes scans
- API gateway → History routes: routes history
- Scan handler → Scan API: requests assessment
- Auth handlers → User and scans: uses user records
backend1/auth/mvc/login.js - MongoDB connection → User and scans: backs model