How zeroq/amalthea works
Amalthea is a security case-management and orchestration platform. Its documented primary workflow accepts authenticated webhook alerts, maps and stores them, lets analysts triage and escalate them into cases, and correlates observables across incidents. Domain events can trigger Celery playbooks whose results return to the case timeline. The graph also preserves query/compatibility, identity, realtime, and MCP capabilities. Relationships use README statements or source-index evidence; several subsystems are represented at directory level because their implementation was not sampled.
Main entry points: views Web interface · models.py Cases and tasks · views.py Webhook receiver · dispatcher.py Event dispatcher
Components 25
Alert ingestion
- Webhook receiver
ingest/views.py - Feed mapping
ingest/mapping.py - Ingest persistence
ingest/pipeline.py
Incident response
- Alerts
alerts/models.py - Alert triage
alerts/triage.py - Case escalation
alerts/escalation.py - Cases and tasks
cases/models.py - Case timeline
cases/ledger.py - Observables
observables/models.py - Case correlation
cases/correlation.py
Automation
- Event dispatcher
automation/dispatcher.py - Playbook execution
automation/executor.py - Background tasks
automation/tasks.py
Access and interfaces
- Web interface
ui/views - Identity and tenancy
identity/models.py - Tenant scoping
identity/scoping.py - Search and query
query/engine.py - Compatibility API
compat/views.py - Realtime updates
realtime/consumers.py
MCP integration
- MCP tools
mcp_server/tools - MCP services
mcp_server/services - MCP authentication
mcp_server/auth.py
Other components
- Alert provider
- Analyst
- MCP client
Connections 25
- Alert provider → Webhook receiver: sends alert
README.md - Webhook receiver → Feed mapping: maps payload
README.md - Webhook receiver → Ingest persistence: persists alert
README.md - Ingest persistence → Alerts: creates or deduplicates
ingest/pipeline.py - Analyst → Web interface: triages alerts
README.md - Web interface → Alert triage: manages triage
README.md - Alert triage → Case escalation: escalates alert
README.md - Case escalation → Cases and tasks: creates case
README.md - Web interface → Cases and tasks: tracks tasks
README.md - Cases and tasks → Case timeline: records timeline
README.md - Observables → Case correlation: correlates across cases
README.md - Analyst → Web interface: manages feeds
README.md - Web interface → Identity and tenancy: manages access
ui/views/ingestion_tokens.py - Web interface → Tenant scoping: checks tenant access
ui/views/ingestion_sources.py - Web interface → Search and query: searches records
- Web interface → Compatibility API: uses compatibility API
- Cases and tasks → Event dispatcher: emits domain events
automation/dispatcher.py - Alerts → Event dispatcher: emits domain events
automation/dispatcher.py - Event dispatcher → Background tasks: queues playbooks
automation/dispatcher.py - Background tasks → Playbook execution: runs playbook
automation/tasks.py - Playbook execution → Case timeline: writes results
README.md - Web interface → Realtime updates: receives live updates
- MCP client → MCP authentication: authenticates
- MCP client → MCP tools: invokes tools
- MCP tools → MCP services: delegates proposals