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 PagerDuty critical severity
Shreya Jha594631798f20
diff --git a/apps/docs/docs/connectors/pagerduty.md b/apps/docs/docs/connectors/pagerduty.mdindex 3013e5194..5051d84f4 100644--- a/apps/docs/docs/connectors/pagerduty.md+++ b/apps/docs/docs/connectors/pagerduty.md@@ -47,11 +47,11 @@ Events are normalised with `source: pagerduty`, `category: saas`.## Severity mapping-Vendor signals collapse to the AiSOC 4-tier ladder per the wave-1 PagerDuty rule:+Vendor signals map into AiSOC's five-tier severity ladder:| Source | Vendor value | AiSOC severity ||---|---|---|-| incident | priority name `P1` or `critical` | `high` |+| incident | priority name `P1` or `critical` | `critical` || incident | priority name `P2` or `error` | `medium` || incident | priority name `P3` or `warning` / `warn` | `low` || incident | priority name `P4` / `P5` / `info` | `low` / `info` |diff --git a/services/connectors/app/connectors/pagerduty.py b/services/connectors/app/connectors/pagerduty.pyindex b6c619bce..4fc27b3e4 100644--- a/services/connectors/app/connectors/pagerduty.py+++ b/services/connectors/app/connectors/pagerduty.py@@ -241,15 +241,15 @@ class PagerDutyConnector(BaseConnector):# ``info`` so closed pages aren't re-surfaced as live alerts._URGENCY_SEVERITY = {"high": "high", "low": "low"}- # Vendor priority labels map per the wave-1 PagerDuty rule- # (``info → info, warning → low, error → medium, critical → high``).+ # Vendor priority labels map onto AiSOC's five-tier ladder. Preserve+ # PagerDuty's top priority so active P1 incidents are not downgraded._PRIORITY_SEVERITY = {"info": "info","warning": "low","warn": "low","error": "medium",- "critical": "high",- "p1": "high",+ "critical": "critical",+ "p1": "critical","p2": "medium","p3": "low","p4": "low",diff --git a/services/connectors/tests/connectors/test_pagerduty.py b/services/connectors/tests/connectors/test_pagerduty.pyindex 7986ed8b3..6bb6dfce6 100644--- a/services/connectors/tests/connectors/test_pagerduty.py+++ b/services/connectors/tests/connectors/test_pagerduty.py@@ -39,16 +39,28 @@ def test_registry_contains_pagerduty():assert CONNECTOR_REGISTRY["pagerduty"] is PagerDutyConnector-def test_normalize_incident_p1_triggered_high(fixture):+def test_normalize_incident_p1_triggered_critical(fixture):ev = dict(fixture["incidents"][0], _aisoc_stream="incident")out = PagerDutyConnector(_KEY, subdomain="acme").normalize(ev)- # P1 priority maps to high via the wave-1 priority table.- assert out["severity"] == "high"+ assert out["severity"] == "critical"+ assert out["raw_event"]["priority"]["name"] == "P1"assert out["source"] == "pagerduty"assert out["external_id"] == "pagerduty-incident-PT4KHLK"assert out["event_type"] == "pagerduty.incident.triggered"+def test_normalize_incident_named_critical_priority():+ ev = {+ "_aisoc_stream": "incident",+ "id": "critical-incident",+ "status": "triggered",+ "priority": {"name": "critical"},+ }+ out = PagerDutyConnector(_KEY).normalize(ev)+ assert out["severity"] == "critical"+ assert out["raw_event"]["priority"]["name"] == "critical"++def test_normalize_incident_low_urgency_low(fixture):ev = dict(fixture["incidents"][1], _aisoc_stream="incident")out = PagerDutyConnector(_KEY).normalize(ev)