How filipecastanheira-rgb/hermes-lab works
Hermes-Lab is a manual-operation cybersecurity lab platform: an operator selects a tool and target in the dashboard, the service dispatches the scan or monitoring read, and the results are normalized and reported by a local LLM. The shared tool registry, lab allowlist, and raw/clean event store form the main internal layers; BLUE provides a separate passive-monitoring capability. Autonomous tool selection and chained investigations are archived or unvalidated, not part of the current workflow. Relationships for unsampled dashboard and service details rely on README documentation; source excerpts establish the shown tool, storage, and intelligence links.
Main entry points: agregador_ferramentas.py Tool registry · purple_api.py HTTP API · event_store.py Event store · purple_runner.py Service runner
Components 22
Service and interface
- Dashboard
hermes/purple/purple_dashboard.py - HTTP API
hermes/purple/purple_api.py - Service runner
hermes/purple/purple_runner.py - Token auth
hermes/purple/purple_auth.py - Rate limiting
hermes/purple/purple_ratelimit.py
Tool execution
- Tool dispatcher
hermes/core/tool_dispatcher.py - Tool registry
hermes/tools/agregador_ferramentas.py - Lab allowlist
hermes/core/lab_boundary.py - Nmap scanner
hermes/tools/nmap/nmap_reader.py - OpenVAS scanner
hermes/tools/openvas/openvas_reader.py - TShark capture
hermes/tools/tshark/tshark_reader.py - Suricata IDS
hermes/tools/suricata/suricata_reader.py - Zeek monitor
hermes/tools/zeek/zeek_reader.py
Events and reporting
- Event store
hermes/core/event_store.py - Context builder
hermes/core/context_builder.py - Intelligence service
hermes/core/intelligence_service.py
BLUE monitoring
- BLUE router
hermes/modes/mode_router.py - Alert engine
hermes/blue/alert_engine.py - Log manager
hermes/blue/log_manager.py - Dependency manager
hermes/core/dependency_manager.py
Other components
- Operator
- Ollama LLM
Connections 26
- Operator → Dashboard: selects target
README.md - Dashboard → HTTP API: sends requests
README.md - Service runner → HTTP API: starts service
hermes/purple/purple_runner.py - HTTP API → Tool dispatcher: dispatches tool
README.md - HTTP API → Intelligence service: requests report
README.md - HTTP API → Token auth: authenticates
hermes/purple/purple_api.py - HTTP API → Rate limiting: limits requests
- Tool dispatcher → Lab allowlist: checks scope
hermes/core/tool_dispatcher.py - Tool dispatcher → Tool registry: dispatches tool
hermes/core/tool_dispatcher.py - Tool registry → Nmap scanner: registers tool
hermes/tools/agregador_ferramentas.py - Tool registry → OpenVAS scanner: registers tool
hermes/tools/agregador_ferramentas.py - Tool registry → TShark capture: registers tool
hermes/tools/agregador_ferramentas.py - Tool registry → Suricata IDS: registers tool
hermes/tools/agregador_ferramentas.py - Tool registry → Zeek monitor: registers tool
hermes/tools/agregador_ferramentas.py - Nmap scanner → Event store: writes events
hermes/tools/nmap/nmap_reader.py - OpenVAS scanner → Event store: writes events
hermes/tools/openvas/openvas_reader.py - TShark capture → Event store: writes events
hermes/tools/tshark/tshark_reader.py - Suricata IDS → Event store: writes events
hermes/tools/suricata/suricata_reader.py - Zeek monitor → Event store: writes events
hermes/tools/zeek/zeek_reader.py - Context builder → Event store: reads clean events
hermes/core/context_builder.py - Intelligence service → Context builder: builds context
hermes/core/intelligence_service.py - Intelligence service → Ollama LLM: generates report
hermes/core/intelligence_service.py - Service runner → Dependency manager: ensures services
hermes/purple/purple_runner.py - Service runner → BLUE router: starts monitoring
hermes/purple/purple_runner.py - BLUE router → Alert engine: activates module
hermes/modes/mode_router.py - BLUE router → Log manager: activates module
hermes/modes/mode_router.py