How naflashdev/cybermind works
CyberMind is a cybersecurity intelligence and monitoring platform with a browser dashboard backed by a FastAPI application. Users configure and monitor services, collect and analyze threat information, and query CyberSentinel; the LLM workflow can retrieve indexed context before answering. The graph preserves documented scraping, NLP, code/network analysis, hashing, and worker capabilities. Edges use the excerpts, SOURCE INDEX references, or README; several implementations were not sampled, so uncertain internal calls are omitted.
Main entry points: main.py FastAPI App · App.tsx Dashboard App · api.ts HTTP Client · llm_controller.py LLM API
Components 26
Dashboard
- Dashboard App
frontend/src/App.tsx - HTTP Client
frontend/src/services/api.ts - Services View
frontend/src/views/ServicesView.tsx - LLM View
frontend/src/views/LLMView.tsx - Config View
frontend/src/views/ConfigView.tsx - Docs View
frontend/src/views/DocsView.tsx
API and Workers
- FastAPI App
src/main.py - Scraping API
src/app/controllers/routes/scrapy_news_controller.py - LLM API
src/app/controllers/routes/llm_controller.py - Worker API
src/app/controllers/routes/worker_controller.py - Code Analysis API
src/app/controllers/routes/code_analysis_controller.py - Network Analysis API
src/app/controllers/routes/network_analysis_controller.py - Hashing API
src/app/controllers/routes/hashed_controller.py - Infrastructure Setup
src/app/utils/run_services.py
Intelligence Processing
- Scrapers
src/app/services/scraping - Text Processing
src/app/services/spacy/text_processor.py - Code Scanner
src/app/services/code_analysis/scanner.py - Network Analysis
src/app/services/network_analysis/network_analysis.py - Hash Service
src/app/services/hashed/hash_service.py
AI and Storage
- Document Ingestion
src/app/services/documents/ingest.py - LLM Client
src/app/services/llm/llm_client.py - Chroma Vectorstore
src/app/services/vectorstore/chroma_client.py - Ollama Adapter
src/app/services/vectorstore/ollama_adapter.py - Conversation Store
src/app/models/conversation_db.py - Hash Store
src/app/models/db.py
Other components
- Operator
Connections 31
- Operator → Dashboard App: uses
README.md - Dashboard App → Services View: renders
frontend/src/App.tsx - Dashboard App → LLM View: renders
frontend/src/App.tsx - Dashboard App → Config View: renders
frontend/src/App.tsx - Dashboard App → Docs View: renders
frontend/src/App.tsx - Services View → HTTP Client: requests
frontend/src/views/ServicesView.tsx - LLM View → HTTP Client: requests
frontend/src/views/LLMView.tsx - Config View → HTTP Client: requests
frontend/src/views/ConfigView.tsx - Docs View → HTTP Client: requests
frontend/src/views/DocsView.tsx - HTTP Client → FastAPI App: calls API
- FastAPI App → Scraping API: registers routes
src/main.py - FastAPI App → LLM API: registers routes
src/main.py - FastAPI App → Worker API: registers routes
src/main.py - FastAPI App → Code Analysis API: registers routes
src/main.py - FastAPI App → Network Analysis API: registers routes
src/main.py - FastAPI App → Hashing API: registers routes
src/main.py - FastAPI App → Infrastructure Setup: ensures services
src/main.py - Scraping API → Scrapers: dispatches scraping
src/app/controllers/routes/scrapy_news_controller.py - Worker API → Scraping API: starts workers
src/app/controllers/routes/worker_controller.py - Worker API → Document Ingestion: dispatches ingestion
src/app/controllers/routes/worker_controller.py - LLM API → Chroma Vectorstore: retrieves context
src/app/controllers/routes/llm_controller.py - LLM API → LLM Client: calls model
src/app/controllers/routes/llm_controller.py - LLM API → Conversation Store: persists turns
src/app/controllers/routes/llm_controller.py - Document Ingestion → Chroma Vectorstore: indexes documents
src/app/services/documents/ingest.py - Document Ingestion → Ollama Adapter: generates embeddings
src/app/services/documents/ingest.py - Chroma Vectorstore → Ollama Adapter: uses adapter
src/app/services/vectorstore/chroma_client.py - Hashing API → Hash Service: dispatches hashing
src/app/controllers/routes/hashed_controller.py - Hash Service → Hash Store: reads and writes
src/app/services/hashed/hash_service.py - Network Analysis API → Network Analysis: dispatches analysis
src/app/controllers/routes/network_analysis_controller.py - Code Analysis API → Code Scanner: dispatches scans
- Scraping API → Text Processing: uses processing