# connect2raghav/industry-project-ai-driven-cloud-monitoring-platform- architecture

> Architecture diagram of the GitHub repository connect2raghav/industry-project-ai-driven-cloud-monitoring-platform-, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-17). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/connect2raghav/industry-project-ai-driven-cloud-monitoring-platform-
- Repository: https://github.com/connect2raghav/industry-project-ai-driven-cloud-monitoring-platform-

## Overview

Ram Antivirus is a cloud-security monitoring and response platform. Security analysts log in to a dashboard, where the API loads Wazuh logs or simulated events, runs anomaly detection and CSPM/CIEM analysis, and serves risk, compliance, and remediation capabilities to the UI. The README documents live updates, email alerts, optional LocalStack scans, and user management. Edges follow shown API calls and documented flows; unsampled modules are represented only where the README establishes their role.

Main entry points: [`backend/main.py`](https://github.com/connect2raghav/industry-project-ai-driven-cloud-monitoring-platform-/blob/main/backend/main.py) (FastAPI endpoints), [`frontend/src/App.jsx`](https://github.com/connect2raghav/industry-project-ai-driven-cloud-monitoring-platform-/blob/main/frontend/src/App.jsx) (Dashboard and tabs), [`backend/engines/compliance_engine.py`](https://github.com/connect2raghav/industry-project-ai-driven-cloud-monitoring-platform-/blob/main/backend/engines/compliance_engine.py) (Compliance mapping), [`backend/engines/db.py`](https://github.com/connect2raghav/industry-project-ai-driven-cloud-monitoring-platform-/blob/main/backend/engines/db.py) (SQLite persistence)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_frontend["Analyst dashboard"]
  node_dashboard["Dashboard and tabs<br/>[App.jsx]"]
  node_login["Login screen<br/>[LoginPage.jsx]"]
  node_risk_tab["Risk score view<br/>[RiskScoreTab.jsx]"]
  node_ml_tab["Model comparison"]
  node_attack_tab["Attack simulation"]
  node_users_tab["User management"]
  node_shared["Shared UI components"]
end

subgraph group_api["API orchestration"]
  node_api["FastAPI endpoints<br/>[main.py]"]
  node_events["Wazuh log reader<br/>[wazuh_reader.py]"]
  node_sim_events["Fallback event simulator<br/>[wazuh_simulator.py]"]
  node_log_generator["Live log generator<br/>[log_generator.py]"]
  node_attack_sim["Attack scenarios"]
end

subgraph group_analysis["Security analysis"]
  node_ml["Anomaly models<br/>[ml_engine.py]"]
  node_cspm["Cloud posture findings<br/>[cspm_engine.py]"]
  node_ciem["Identity risk findings<br/>[ciem_engine.py]"]
  node_localstack["LocalStack scan"]
  node_risk["Unified risk scoring<br/>[risk_engine.py]"]
end

subgraph group_response["Response and governance"]
  node_compliance["Compliance mapping"]
  node_remediation["Remediation playbooks"]
  node_alerts["Email alerts<br/>[alert_engine.py]"]
end

subgraph group_platform["Identity and persistence"]
  node_auth["JWT and RBAC<br/>[auth_engine.py]"]
  node_db[("SQLite persistence<br/>[db.py]")]
end

node_analyst(("Analyst"))
node_smtp["SMTP service"]
node_browser(("Browser user"))

node_analyst -->|"uses"| node_browser
node_browser -->|"opens"| node_dashboard
node_dashboard -->|"renders"| node_login
node_dashboard -->|"renders"| node_risk_tab
node_dashboard -->|"renders"| node_ml_tab
node_dashboard -->|"renders"| node_attack_tab
node_dashboard -->|"renders"| node_users_tab
node_dashboard -->|"uses"| node_shared
node_dashboard -->|"requests data"| node_api
node_dashboard -->|"opens WebSocket"| node_api
node_api -->|"reads logs"| node_events
node_api -->|"simulates fallback"| node_sim_events
node_log_generator -->|"writes alerts"| node_events
node_api -->|"analyzes events"| node_ml
node_api -->|"scans events"| node_cspm
node_api -->|"scans events"| node_ciem
node_api -->|"checks optional scan"| node_localstack
node_api -->|"calculates risk"| node_risk
node_api -->|"requests reporting"| node_compliance
node_api -->|"executes playbooks"| node_remediation
node_api -.->|"runs scenarios"| node_attack_sim
node_api -->|"authenticates users"| node_auth
node_auth -->|"reads and writes"| node_db
node_risk -->|"stores history"| node_db
node_api -->|"persists findings"| node_db
node_remediation -->|"sends notifications"| node_alerts
node_alerts -.->|"sends email"| node_smtp
node_compliance -->|"maps findings"| node_cspm
node_compliance -->|"maps findings"| node_ciem
node_api -.->|"serves risk data"| node_risk_tab
node_api -.->|"serves model data"| node_ml_tab

click node_dashboard "https://github.com/connect2raghav/industry-project-ai-driven-cloud-monitoring-platform-/blob/main/frontend/src/App.jsx"
click node_login "https://github.com/connect2raghav/industry-project-ai-driven-cloud-monitoring-platform-/blob/main/frontend/src/components/LoginPage.jsx"
click node_risk_tab "https://github.com/connect2raghav/industry-project-ai-driven-cloud-monitoring-platform-/blob/main/frontend/src/components/RiskScoreTab.jsx"
click node_ml_tab "https://github.com/connect2raghav/industry-project-ai-driven-cloud-monitoring-platform-/blob/main/frontend/src/components/MLComparisonTab.jsx"
click node_attack_tab "https://github.com/connect2raghav/industry-project-ai-driven-cloud-monitoring-platform-/blob/main/frontend/src/components/AttackSimulationTab.jsx"
click node_users_tab "https://github.com/connect2raghav/industry-project-ai-driven-cloud-monitoring-platform-/blob/main/frontend/src/components/UserManagementTab.jsx"
click node_shared "https://github.com/connect2raghav/industry-project-ai-driven-cloud-monitoring-platform-/blob/main/frontend/src/components/SharedComponents.jsx"
click node_api "https://github.com/connect2raghav/industry-project-ai-driven-cloud-monitoring-platform-/blob/main/backend/main.py"
click node_events "https://github.com/connect2raghav/industry-project-ai-driven-cloud-monitoring-platform-/blob/main/backend/simulator/wazuh_reader.py"
click node_sim_events "https://github.com/connect2raghav/industry-project-ai-driven-cloud-monitoring-platform-/blob/main/backend/simulator/wazuh_simulator.py"
click node_log_generator "https://github.com/connect2raghav/industry-project-ai-driven-cloud-monitoring-platform-/blob/main/backend/simulator/log_generator.py"
click node_attack_sim "https://github.com/connect2raghav/industry-project-ai-driven-cloud-monitoring-platform-/blob/main/backend/simulator/attack_simulator.py"
click node_ml "https://github.com/connect2raghav/industry-project-ai-driven-cloud-monitoring-platform-/blob/main/backend/engines/ml_engine.py"
click node_cspm "https://github.com/connect2raghav/industry-project-ai-driven-cloud-monitoring-platform-/blob/main/backend/engines/cspm_engine.py"
click node_ciem "https://github.com/connect2raghav/industry-project-ai-driven-cloud-monitoring-platform-/blob/main/backend/engines/ciem_engine.py"
click node_localstack "https://github.com/connect2raghav/industry-project-ai-driven-cloud-monitoring-platform-/blob/main/backend/engines/localstack_engine.py"
click node_risk "https://github.com/connect2raghav/industry-project-ai-driven-cloud-monitoring-platform-/blob/main/backend/engines/risk_engine.py"
click node_compliance "https://github.com/connect2raghav/industry-project-ai-driven-cloud-monitoring-platform-/blob/main/backend/engines/compliance_engine.py"
click node_remediation "https://github.com/connect2raghav/industry-project-ai-driven-cloud-monitoring-platform-/blob/main/backend/engines/remediation_engine.py"
click node_alerts "https://github.com/connect2raghav/industry-project-ai-driven-cloud-monitoring-platform-/blob/main/backend/engines/alert_engine.py"
click node_auth "https://github.com/connect2raghav/industry-project-ai-driven-cloud-monitoring-platform-/blob/main/backend/engines/auth_engine.py"
click node_db "https://github.com/connect2raghav/industry-project-ai-driven-cloud-monitoring-platform-/blob/main/backend/engines/db.py"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_dashboard,node_login,node_risk_tab,node_ml_tab,node_attack_tab,node_users_tab,node_shared,node_browser toneBlue
class node_api,node_events,node_sim_events,node_log_generator,node_attack_sim toneAmber
class node_ml,node_cspm,node_ciem,node_localstack,node_risk toneMint
class node_compliance,node_remediation,node_alerts toneRose
class node_auth,node_db,node_analyst,node_smtp toneIndigo
```

## Components

### Analyst dashboard

- [Dashboard and tabs](https://github.com/connect2raghav/industry-project-ai-driven-cloud-monitoring-platform-/blob/main/frontend/src/App.jsx): `frontend/src/App.jsx`
- [Login screen](https://github.com/connect2raghav/industry-project-ai-driven-cloud-monitoring-platform-/blob/main/frontend/src/components/LoginPage.jsx): `frontend/src/components/LoginPage.jsx`
- [Risk score view](https://github.com/connect2raghav/industry-project-ai-driven-cloud-monitoring-platform-/blob/main/frontend/src/components/RiskScoreTab.jsx): `frontend/src/components/RiskScoreTab.jsx`
- [Model comparison](https://github.com/connect2raghav/industry-project-ai-driven-cloud-monitoring-platform-/blob/main/frontend/src/components/MLComparisonTab.jsx): `frontend/src/components/MLComparisonTab.jsx`
- [Attack simulation](https://github.com/connect2raghav/industry-project-ai-driven-cloud-monitoring-platform-/blob/main/frontend/src/components/AttackSimulationTab.jsx): `frontend/src/components/AttackSimulationTab.jsx`
- [User management](https://github.com/connect2raghav/industry-project-ai-driven-cloud-monitoring-platform-/blob/main/frontend/src/components/UserManagementTab.jsx): `frontend/src/components/UserManagementTab.jsx`
- [Shared UI components](https://github.com/connect2raghav/industry-project-ai-driven-cloud-monitoring-platform-/blob/main/frontend/src/components/SharedComponents.jsx): `frontend/src/components/SharedComponents.jsx`

### API orchestration

- [FastAPI endpoints](https://github.com/connect2raghav/industry-project-ai-driven-cloud-monitoring-platform-/blob/main/backend/main.py): `backend/main.py`
- [Wazuh log reader](https://github.com/connect2raghav/industry-project-ai-driven-cloud-monitoring-platform-/blob/main/backend/simulator/wazuh_reader.py): `backend/simulator/wazuh_reader.py`
- [Fallback event simulator](https://github.com/connect2raghav/industry-project-ai-driven-cloud-monitoring-platform-/blob/main/backend/simulator/wazuh_simulator.py): `backend/simulator/wazuh_simulator.py`
- [Live log generator](https://github.com/connect2raghav/industry-project-ai-driven-cloud-monitoring-platform-/blob/main/backend/simulator/log_generator.py): `backend/simulator/log_generator.py`
- [Attack scenarios](https://github.com/connect2raghav/industry-project-ai-driven-cloud-monitoring-platform-/blob/main/backend/simulator/attack_simulator.py): `backend/simulator/attack_simulator.py`

### Security analysis

- [Anomaly models](https://github.com/connect2raghav/industry-project-ai-driven-cloud-monitoring-platform-/blob/main/backend/engines/ml_engine.py): `backend/engines/ml_engine.py`
- [Cloud posture findings](https://github.com/connect2raghav/industry-project-ai-driven-cloud-monitoring-platform-/blob/main/backend/engines/cspm_engine.py): `backend/engines/cspm_engine.py`
- [Identity risk findings](https://github.com/connect2raghav/industry-project-ai-driven-cloud-monitoring-platform-/blob/main/backend/engines/ciem_engine.py): `backend/engines/ciem_engine.py`
- [LocalStack scan](https://github.com/connect2raghav/industry-project-ai-driven-cloud-monitoring-platform-/blob/main/backend/engines/localstack_engine.py): `backend/engines/localstack_engine.py`
- [Unified risk scoring](https://github.com/connect2raghav/industry-project-ai-driven-cloud-monitoring-platform-/blob/main/backend/engines/risk_engine.py): `backend/engines/risk_engine.py`

### Response and governance

- [Compliance mapping](https://github.com/connect2raghav/industry-project-ai-driven-cloud-monitoring-platform-/blob/main/backend/engines/compliance_engine.py): `backend/engines/compliance_engine.py`
- [Remediation playbooks](https://github.com/connect2raghav/industry-project-ai-driven-cloud-monitoring-platform-/blob/main/backend/engines/remediation_engine.py): `backend/engines/remediation_engine.py`
- [Email alerts](https://github.com/connect2raghav/industry-project-ai-driven-cloud-monitoring-platform-/blob/main/backend/engines/alert_engine.py): `backend/engines/alert_engine.py`

### Identity and persistence

- [JWT and RBAC](https://github.com/connect2raghav/industry-project-ai-driven-cloud-monitoring-platform-/blob/main/backend/engines/auth_engine.py): `backend/engines/auth_engine.py`
- [SQLite persistence](https://github.com/connect2raghav/industry-project-ai-driven-cloud-monitoring-platform-/blob/main/backend/engines/db.py): `backend/engines/db.py`

### Other components

- **Analyst**
- **SMTP service**
- **Browser user**

## Connections

- Analyst → Browser user: uses (evidence: `README.md`)
- Browser user → Dashboard and tabs: opens (evidence: `README.md`)
- Dashboard and tabs → Login screen: renders (evidence: `frontend/src/App.jsx`)
- Dashboard and tabs → Risk score view: renders (evidence: `frontend/src/App.jsx`)
- Dashboard and tabs → Model comparison: renders (evidence: `frontend/src/App.jsx`)
- Dashboard and tabs → Attack simulation: renders (evidence: `README.md`)
- Dashboard and tabs → User management: renders (evidence: `README.md`)
- Dashboard and tabs → Shared UI components: uses (evidence: `frontend/src/App.jsx`)
- Dashboard and tabs → FastAPI endpoints: requests data (evidence: `README.md`)
- Dashboard and tabs → FastAPI endpoints: opens WebSocket (evidence: `README.md`)
- FastAPI endpoints → Wazuh log reader: reads logs (evidence: `backend/main.py`)
- FastAPI endpoints → Fallback event simulator: simulates fallback (evidence: `backend/main.py`)
- Live log generator → Wazuh log reader: writes alerts (evidence: `README.md`)
- FastAPI endpoints → Anomaly models: analyzes events (evidence: `backend/main.py`)
- FastAPI endpoints → Cloud posture findings: scans events (evidence: `backend/main.py`)
- FastAPI endpoints → Identity risk findings: scans events (evidence: `backend/main.py`)
- FastAPI endpoints → LocalStack scan: checks optional scan (evidence: `backend/main.py`)
- FastAPI endpoints → Unified risk scoring: calculates risk (evidence: `README.md`)
- FastAPI endpoints → Compliance mapping: requests reporting (evidence: `README.md`)
- FastAPI endpoints → Remediation playbooks: executes playbooks (evidence: `backend/main.py`)
- FastAPI endpoints → Attack scenarios: runs scenarios (evidence: `backend/main.py`)
- FastAPI endpoints → JWT and RBAC: authenticates users (evidence: `backend/main.py`)
- JWT and RBAC → SQLite persistence: reads and writes (evidence: `backend/engines/auth_engine.py`)
- Unified risk scoring → SQLite persistence: stores history (evidence: `backend/engines/risk_engine.py`)
- FastAPI endpoints → SQLite persistence: persists findings (evidence: `README.md`)
- Remediation playbooks → Email alerts: sends notifications (evidence: `backend/engines/remediation_engine.py`)
- Email alerts → SMTP service: sends email (evidence: `README.md`)
- Compliance mapping → Cloud posture findings: maps findings (evidence: `backend/engines/compliance_engine.py`)
- Compliance mapping → Identity risk findings: maps findings (evidence: `backend/engines/compliance_engine.py`)
- FastAPI endpoints → Risk score view: serves risk data
- FastAPI endpoints → Model comparison: serves model data
