How deveshvonteddu/agent-tara works
TARA is an OT cybersecurity platform for water and electricity infrastructure. Operators sign in, register assets, ingest vulnerability and telemetry data, run assessments, review risk, and manage mitigation; the web client calls a FastAPI backend that persists platform records. Separate capabilities include AI assistance, ML analytics, reporting, access policy, and a standalone simulation lab. The graph preserves these documented branches, but several API and service internals were not excerpted, so those relationships are shown only where the README or source index supports them.
Main entry points: main.py API application · App.tsx Web routes · api.ts API client · models.py Domain records
Components 23
Web application
- Web routes
frontend/src/App.tsx - API client
frontend/src/services/api.ts - Asset inventory
frontend/src/pages/AssetsPage.tsx - Operations overview
frontend/src/pages/OverviewPage.tsx - Water telemetry UI
frontend/src/pages/WaterPage.tsx - Electricity UI
frontend/src/pages/ElectricityPage.tsx - Simulation UI
frontend/src/pages/SimulationsPage.tsx
Platform backend
- API application
backend/app/main.py - Authentication
backend/app/api/auth.py - Platform database
backend/app/database/session.py - Domain records
backend/app/models/models.py
Threat intelligence
- CISA KEV sync
backend/app/integrations/cisa_client.py - NVD intelligence
backend/app/integrations/nvd_client.py
OT monitoring
- Water services
backend/app/services/water_service.py - Electricity analysis
backend/app/services/electricity_service.py - Sandbox simulator
simulation-lab/app/main.py
Assurance and analysis
- Rule assessment
backend/app/assessment/engine.py - Risk scoring
backend/app/services/risk_engine.py - Audit hash chain
backend/app/services/audit_service.py - AI assistant
backend/app/services/ai_assistant.py - ML analytics
backend/app/ml/inference.py
Other components
- Operator
- External feeds
Connections 31
- Operator → Web routes: uses
- Web routes → Asset inventory: routes to
frontend/src/App.tsx - Web routes → Operations overview: routes to
frontend/src/App.tsx - Web routes → Water telemetry UI: routes to
frontend/src/App.tsx - Web routes → Electricity UI: routes to
frontend/src/App.tsx - Web routes → Simulation UI: routes to
frontend/src/App.tsx - Asset inventory → API client: requests data
frontend/src/pages/AssetsPage.tsx - Operations overview → API client: requests data
frontend/src/pages/OverviewPage.tsx - Water telemetry UI → API client: requests data
frontend/src/pages/WaterPage.tsx - Electricity UI → API client: requests data
frontend/src/pages/ElectricityPage.tsx - Simulation UI → API client: requests data
frontend/src/pages/SimulationsPage.tsx - API client → API application: calls API
- API application → Authentication: registers routes
backend/app/main.py - API application → Platform database: initializes
backend/app/main.py - Authentication → Platform database: queries
backend/app/api/auth.py - Authentication → Domain records: reads users
backend/app/api/auth.py - API application → Audit hash chain: records startup event
backend/app/main.py - Audit hash chain → Domain records: stores audit events
backend/app/services/audit_service.py - Rule assessment → Domain records: reads and writes
backend/app/assessment/engine.py - Rule assessment → Risk scoring: uses scoring
backend/app/assessment/engine.py - Rule assessment → ML analytics: uses inference
backend/app/assessment/engine.py - CISA KEV sync → External feeds: fetches catalog
backend/app/integrations/cisa_client.py - NVD intelligence → External feeds: queries CVEs
- Water services → Domain records: stores readings
backend/app/services/water_service.py - Electricity analysis → Domain records: stores analysis
backend/app/services/electricity_service.py - Simulation UI → Sandbox simulator: uses simulator
- API application → AI assistant: exposes assistant
- API application → CISA KEV sync: exposes synchronization
- API application → NVD intelligence: exposes intelligence
- API application → Water services: exposes telemetry
- API application → Electricity analysis: exposes datasets