Open-source AI Security Operations Center: alert fusion, LLM-agent triage, MITRE ATT&CK investigation, and a replayable decision ledger for every agent step. Self-hostable, runs with no API keys, MIT licensed. Ships an MCP server for Claude, Cursor and Continue.
Python agentic-aiai-securityalert-triageblue-teamcybersecuritydetection-engineeringincident-responselanggraphllm-agentsmcpmitre-attackmodel-context-protocolpurple-teamsecurity-operationsself-hostedsiemsoarsocthreat-detectionthreat-intelligence
Merge pull request #101 from beenuar/v1.5/pr-2-critical-severity-confidence
Beenu Arora963d95376a32
diff --cc services/api/app/services/sla.pyindex 1d923576f,b779d7c7f..337301272--- a/services/api/app/services/sla.py+++ b/services/api/app/services/sla.py@@@ -28,19 -28,25 +28,37 @@@ DEFAULT_KPI_BAR_TARGETS: dict[str, floa"mitre_subtechnique_tagging_min_pct": 60.0,}+# Default per-severity SLA targets (minutes) used as the fallback when a tenant+# has not provided overrides via ``tenant_sla_config``. The queue's `sla_due_at`+# expression also reads ``DEFAULT_SLA_TARGETS["info"]["mttd_target"]`` as a+# catch-all for severities that fall outside the standard four-tier ladder.+DEFAULT_SLA_TARGETS: dict[str, dict[str, int]] = {+ "critical": {"mttd_target": 15, "mttr_target": 60, "mttc_target": 120},+ "high": {"mttd_target": 30, "mttr_target": 120, "mttc_target": 240},+ "medium": {"mttd_target": 60, "mttr_target": 240, "mttc_target": 480},+ "low": {"mttd_target": 120, "mttr_target": 480, "mttc_target": 1440},+ "info": {"mttd_target": 240, "mttr_target": 960, "mttc_target": 2880},+}++ # Default per-severity SLA targets (minutes). These mirror the seed values+ # in migrations 007 (critical/high/medium/low) and 040 (info) — `critical`+ # carries the v1.5 P1 ≤15 min MTTD promise (W2 in the v1.5 SOC Console+ # Parity plan), and `info` is the widest band because info-tier alerts+ # are background context, not work items the analyst is on the clock for.+ #+ # Lifted to a module-level constant so it can be asserted against in+ # tests; the row is also the source of truth used by ``compute_sla_metrics``+ # when a tenant hasn't overridden it via ``tenant_sla_config``.+ DEFAULT_SLA_TARGETS: dict[str, dict[str, int]] = {+ "critical": {"mttd_target": 15, "mttr_target": 60, "mttc_target": 120},+ "high": {"mttd_target": 30, "mttr_target": 120, "mttc_target": 240},+ "medium": {"mttd_target": 60, "mttr_target": 240, "mttc_target": 480},+ "low": {"mttd_target": 120, "mttr_target": 480, "mttc_target": 1440},+ "info": {"mttd_target": 480, "mttr_target": 1440, "mttc_target": 2880},+ }++def merge_kpi_bar_dict(existing: dict | None, patch: dict[str, float]) -> dict[str, float]:"""Merge ``patch`` into stored ``kpi_bar`` and coerce to the four known keys + defaults."""kb = {**(existing or {}), **patch}