How sameergfhf/aegis works
AEGIS is a multi-tenant API security scanner and posture-management platform. Users submit API targets through the web app; backend routes validate targets, run security scans, score and visualize findings, and persist results for history and reporting. Separate product branches support authentication, workspace governance, scheduled scans, OpenAPI analysis, API discovery/comparison, and executive reports. Evidence is limited to the supplied excerpts, SOURCE INDEX references, and README; unsampled feature links are included only where documented there.
Main entry points: routes.py API routes · scan_service.py Scan orchestration · App.tsx Web router · database.py Database access
Components 26
Web application
- Web router
frontend/src/App.tsx - Scan interface
frontend/src/pages/ScanResults.tsx - Scan client hook
frontend/src/hooks/useScan.ts - HTTP API client
frontend/src/services/api.ts
Scanning and analysis
- API routes
backend/app/api/routes.py - SSRF validation
backend/app/security/url_validation.py - Scan orchestration
backend/app/services/scan_service.py - Security probes
backend/app/scanners - Evidence scoring
backend/app/services/scoring.py - Telemetry generation
backend/app/services/visualization_service.py - Secret redaction
backend/app/security/redaction.py
Identity and workspaces
- Auth state
frontend/src/contexts/AuthContext.tsx - Workspace state
frontend/src/contexts/WorkspaceContext.tsx - Auth endpoints
backend/app/api/auth_routes.py - Workspace endpoints
backend/app/api/workspace_routes.py - Workspace permissions
backend/app/security/workspace_authorization.py
Operations and insights
- Scheduled scans
backend/app/services/schedule_service.py - API discovery
backend/app/services/alternative_discovery_service.py - OpenAPI analysis
backend/app/services/openapi_service.py - Audit reports
backend/app/services/report_service.py
Persistence
- Database access
backend/app/database.py - Scan and findings
backend/app/models/scan.py - Schedule records
backend/app/models/scheduled_scan.py
Other components
- API user
- PostgreSQL service
- Threat intelligence
Connections 28
- API user → Web router: uses
frontend/src/App.tsx - Web router → Scan interface: routes to
frontend/src/App.tsx - Scan interface → Scan client hook: requests scans
- Scan client hook → HTTP API client: calls
frontend/src/hooks/useScan.ts - HTTP API client → API routes: HTTP requests
- Web router → Auth state: provides auth
frontend/src/App.tsx - Web router → Workspace state: provides workspace
frontend/src/App.tsx - Workspace state → HTTP API client: workspace requests
frontend/src/contexts/WorkspaceContext.tsx - API routes → SSRF validation: validates target
backend/app/api/routes.py - API routes → Scan orchestration: starts scan
backend/app/api/routes.py - Scan orchestration → Security probes: runs probes
backend/app/services/scan_service.py - Scan orchestration → Evidence scoring: scores findings
backend/app/services/scan_service.py - Scan orchestration → Telemetry generation: builds telemetry
backend/app/services/scan_service.py - Scan orchestration → Secret redaction: sanitizes results
backend/app/services/scan_service.py - Security probes → Threat intelligence: checks reputation
- API routes → Audit reports: generates report
backend/app/api/routes.py - API routes → API discovery: discovers alternatives
backend/app/api/routes.py - API routes → OpenAPI analysis: analyzes specs
backend/app/api/routes.py - Auth state → Auth endpoints: authenticates
- Workspace state → Workspace endpoints: manages teams
frontend/src/contexts/WorkspaceContext.tsx - Workspace endpoints → Workspace permissions: checks permissions
backend/app/api/workspace_routes.py - API routes → Workspace permissions: checks access
backend/app/api/routes.py - Scheduled scans → Scan orchestration: runs scheduled scans
backend/app/services/schedule_service.py - Database access → Scan and findings: maps records
backend/app/models/scan.py - Database access → Schedule records: maps records
backend/app/models/scheduled_scan.py - Scan orchestration → Database access: persists results
backend/app/services/scan_service.py - Scheduled scans → Schedule records: stores schedules
backend/app/services/schedule_service.py - Database access → PostgreSQL service: connects to