How ayush75-arch/ai-cloud-security-monitor works
CloudGuard-AI is an AWS cloud-security posture management product. Engineers authenticate in the React dashboard, trigger scans or submit Terraform, and review findings, compliance results, attack paths, AI guidance, reports, and trends. The documented scan path collects assets, evaluates security rules, and persists findings for the API and dashboard. The graph preserves additional documented product capabilities; some service-to-service links are supported by the SOURCE INDEX rather than inspected implementation excerpts, so uncertain relationships are omitted.
Main entry points: router.py REST and SSE API · scan_service.py Scan orchestration · App.tsx Dashboard views · ai_service.py Finding AI analysis
Components 22
User experience
- Dashboard views
frontend/src/App.tsx - API client
frontend/src/api/client.ts
API and identity
- REST and SSE API
backend/app/api/v1/router.py - JWT authentication
backend/app/auth/router.py
Security assessment
- Scan orchestration
backend/app/services/scan_service.py - Cloud and mock scanners
backend/app/scanners - Terraform analysis
backend/app/scanners/iac/terraform_scanner.py - Security rule engine
backend/app/rules/engine.py
Analysis and response
- Compliance mapping
backend/app/services/compliance_service.py - Finding lifecycle
backend/app/services/finding_service.py - Finding AI analysis
backend/app/services/ai_service.py - Security copilot
backend/app/services/chat_service.py - Attack path analysis
backend/app/services/attack_path_service.py - Security graph
backend/app/services/graph_service.py - Reports and trends
backend/app/services/report_service.py - Alert notifications
backend/app/services/notification_service.py
Persistence and integrations
- Background scan tasks
backend/app/workers/scan_tasks.py - Scan and finding models
backend/app/models/__init__.py - SQL database
backend/app/database.py - Groq AI service
backend/app/ai/groq_client.py
Other components
- Security engineer
- Alert destinations
Connections 24
- Security engineer → Dashboard views: uses
- Dashboard views → API client: requests data
- Dashboard views → REST and SSE API: uses REST and SSE
- API client → REST and SSE API: calls API
- REST and SSE API → JWT authentication: authenticates
backend/app/api/v1/router.py - REST and SSE API → Scan orchestration: routes scan requests
backend/app/api/v1/router.py - REST and SSE API → Terraform analysis: scans Terraform
backend/app/api/v1/router.py - Scan orchestration → Cloud and mock scanners: collects assets
backend/app/services/scan_service.py - Scan orchestration → Security rule engine: evaluates assets
backend/app/services/scan_service.py - Security rule engine → Finding lifecycle: produces findings
- Scan orchestration → Compliance mapping: computes compliance
backend/app/services/scan_service.py - Scan orchestration → Scan and finding models: persists scan results
backend/app/services/scan_service.py - SQL database → Scan and finding models: stores entities
backend/app/models/__init__.py - Scan orchestration → Finding AI analysis: requests AI analysis
backend/app/services/scan_service.py - Finding AI analysis → Groq AI service: requests completions
- REST and SSE API → Security copilot: routes chat
backend/app/api/v1/router.py - Security copilot → Groq AI service: requests completions
backend/app/services/chat_service.py - REST and SSE API → Attack path analysis: routes analysis
backend/app/api/v1/router.py - REST and SSE API → Reports and trends: exports reports
backend/app/api/v1/router.py - REST and SSE API → Alert notifications: sends alerts
backend/app/api/v1/router.py - Alert notifications → Alert destinations: delivers alerts
- Background scan tasks → Scan orchestration: runs scans
backend/app/workers/scan_tasks.py - Background scan tasks → Finding AI analysis: runs analysis
backend/app/workers/scan_tasks.py - REST and SSE API → Security graph: serves graph data
backend/app/api/v1/router.py