How vinayakbhat19/amacti works
AMACTI is a URL/domain cyber-threat triage application: users submit a target in the React dashboard, the FastAPI API starts an asynchronous multi-stage investigation, and the result is streamed and presented as an evidence-backed report. The graph includes documented collector, enrichment, scoring, persistence, visual inspection, and STIX capabilities. Some links rely on README architecture statements or the SOURCE INDEX; unsampled implementation details are not inferred.
Main entry points: graph.py Async Orchestrator · router.py REST API · App.jsx Dashboard App · ThreatReportView.jsx Threat Report View
Components 31
Dashboard
- Dashboard App
frontend/src/App.jsx - API Client
frontend/src/api/client.js - Live Stream Panel
frontend/src/components/LiveStreamPanel.jsx - Threat Report View
frontend/src/components/ThreatReportView.jsx - Debate Viewer
frontend/src/components/DebateViewer.jsx - Memory Graph Viewer
frontend/src/components/MemoryGraphViewer.jsx - Visual Preview
frontend/src/components/VisualPreview.jsx - Provenance Badges
frontend/src/utils/provenance.jsx
API and Access
- REST API
backend/app/api/router.py - WebSocket API
backend/app/api/websocket.py - Auth and Limits
backend/app/auth.py
Investigation Pipeline
- Async Orchestrator
backend/app/orchestrator/graph.py - URL Analysis
backend/app/agents/url_agent.py - Domain Intel
backend/app/agents/domain_agent.py - DNS and TLS
backend/app/agents/dns_agent.py - Reputation Checks
backend/app/agents/reputation_agent.py - Threat Intel
backend/app/agents/threat_intel_agent.py - Visual Analysis
backend/app/agents/visual_agent.py - Episodic Memory
backend/app/agents/episodic_memory.py - Debate Verification
backend/app/agents/debate_agent.py - Risk Synthesis
backend/app/agents/risk_agent.py
Evidence Services
- Model Gateway
backend/app/services/model_gateway.py - Browser Inspection
backend/app/services/browser_service.py - Isolated Browser Worker
backend/app/services/browser_worker.py - Stream Events
backend/app/services/stream_events.py
Reports and Storage
- Evidence Schemas
backend/app/models/schemas.py - STIX Export
backend/app/services/stix_service.py - Database
backend/app/database.py - Stored Models
backend/app/models/db_models.py - Retention Service
backend/app/services/retention_service.py
Other components
- Analyst
Connections 33
- Analyst → Dashboard App: submits target
- Dashboard App → API Client: calls
frontend/src/App.jsx - API Client → REST API: POST investigate
frontend/src/api/client.js - API Client → WebSocket API: opens stream
- Dashboard App → Threat Report View: renders report
frontend/src/App.jsx - Dashboard App → Live Stream Panel: renders stream
frontend/src/App.jsx - Threat Report View → Debate Viewer: renders
frontend/src/components/ThreatReportView.jsx - Threat Report View → Memory Graph Viewer: renders
frontend/src/components/ThreatReportView.jsx - Threat Report View → Visual Preview: renders
frontend/src/components/ThreatReportView.jsx - Debate Viewer → Provenance Badges: uses badges
frontend/src/components/DebateViewer.jsx - Memory Graph Viewer → Provenance Badges: uses badges
frontend/src/components/MemoryGraphViewer.jsx - Visual Preview → Provenance Badges: uses badges
frontend/src/components/VisualPreview.jsx - REST API → Auth and Limits: enforces access
backend/app/api/router.py - REST API → Async Orchestrator: runs investigation
backend/app/api/router.py - Async Orchestrator → URL Analysis: collects URL evidence
backend/app/orchestrator/graph.py - Async Orchestrator → Domain Intel: collects domain evidence
backend/app/orchestrator/graph.py - Async Orchestrator → DNS and TLS: collects DNS evidence
backend/app/orchestrator/graph.py - Async Orchestrator → Reputation Checks: collects reputation
backend/app/orchestrator/graph.py - Async Orchestrator → Threat Intel: collects threat intel
backend/app/orchestrator/graph.py - Async Orchestrator → Visual Analysis: runs visual pipeline
backend/app/orchestrator/graph.py - Async Orchestrator → Browser Inspection: uses browser inspection
backend/app/orchestrator/graph.py - Browser Inspection → Isolated Browser Worker: starts isolated worker
backend/app/services/browser_service.py - Async Orchestrator → Episodic Memory: enriches evidence
backend/app/orchestrator/graph.py - Async Orchestrator → Model Gateway: requests synthesis
backend/app/orchestrator/graph.py - Async Orchestrator → Debate Verification: verifies synthesis
backend/app/orchestrator/graph.py - Async Orchestrator → Risk Synthesis: synthesizes risk
backend/app/orchestrator/graph.py - Async Orchestrator → Stream Events: emits events
backend/app/orchestrator/graph.py - WebSocket API → Stream Events: streams events
- Async Orchestrator → Evidence Schemas: builds report
backend/app/orchestrator/graph.py - REST API → Database: persists report
backend/app/api/router.py - Database → Stored Models: uses mappings
backend/app/database.py - REST API → Retention Service: prunes history
backend/app/api/router.py - REST API → STIX Export: validates export
backend/app/api/router.py