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
fix(connectors): preserve Tines critical severity
Shreya Jhaa89381399876
diff --git a/apps/docs/docs/connectors/tines.md b/apps/docs/docs/connectors/tines.mdindex d29aa5933..c2a5d92cd 100644--- a/apps/docs/docs/connectors/tines.md+++ b/apps/docs/docs/connectors/tines.md@@ -48,7 +48,7 @@ Events are normalised with `source: tines`, `category: saas`.## Severity mapping-The Tines case `record_severity` and audit `operation_name` collapse into the AiSOC 4-tier ladder:+The Tines case `record_severity` and audit `operation_name` map into AiSOC's five-tier severity ladder:| Source | Vendor value | AiSOC severity ||---|---|---|@@ -58,7 +58,8 @@ The Tines case `record_severity` and audit `operation_name` collapse into the Ai| audit | other `*.deleted` / `*.destroyed` | `medium` || audit | `*.failed` | `low` || audit | all other operations | `info` |-| case | `record_severity = critical / error / high` | `high` |+| case | `record_severity = critical` | `critical` |+| case | `record_severity = error / high` | `high` || case | `record_severity = warn / warning` | `low` || case | `record_severity = medium` | `medium` || case | `record_severity = info / success / ok` | `info` |diff --git a/services/connectors/app/connectors/tines.py b/services/connectors/app/connectors/tines.pyindex f8b637b80..ad2495e2c 100644--- a/services/connectors/app/connectors/tines.py+++ b/services/connectors/app/connectors/tines.py@@ -272,10 +272,10 @@ class TinesConnector(BaseConnector):)# Tines case "record severity" — the worst severity of any record- # attached to the case — uses the vendor-native string ladder. We- # collapse to the AiSOC 4-tier ladder per the wave-1 mapping rule.+ # attached to the case — maps onto AiSOC's five-tier ladder. Preserve+ # the vendor's critical tier so active P1 cases are not downgraded._CASE_SEVERITY_MAP = {- "critical": "high",+ "critical": "critical","error": "high","high": "high","warn": "low",diff --git a/services/connectors/tests/connectors/test_tines.py b/services/connectors/tests/connectors/test_tines.pyindex b1a5e49e4..0749ebe94 100644--- a/services/connectors/tests/connectors/test_tines.py+++ b/services/connectors/tests/connectors/test_tines.py@@ -81,17 +81,30 @@ def test_normalize_roundtrip_audit_delete_medium(fixture):def test_normalize_roundtrip_case_open_critical(fixture):- case = fixture["cases"][0] # critical, open → high (per wave-1 mapping)+ case = fixture["cases"][0]case["_aisoc_stream"] = "case"connector = TinesConnector(_BASE, _TOKEN)out = connector.normalize(case)- assert out["severity"] == "high"+ assert out["severity"] == "critical"+ assert out["raw_event"]["record_severity"] == "critical"assert out["source"] == "tines"assert out["external_id"] == "tines-case-5001"assert out["actor_email"] == "[email protected]"assert out["event_type"] == "tines.case.open"+def test_normalize_case_closed_resolved_critical_is_info():+ connector = TinesConnector(_BASE, _TOKEN)+ case = {+ "_aisoc_stream": "case",+ "id": 1,+ "status": "closed",+ "resolution": "resolved",+ "record_severity": "critical",+ }+ assert connector.normalize(case)["severity"] == "info"++def test_normalize_roundtrip_case_closed_resolved_is_info(fixture):case = fixture["cases"][1] # high, closed+resolved → collapses to infocase["_aisoc_stream"] = "case"