The SOC analyst perspective
Before designing the integration, understand the constraints:- Analysts are context-switched constantly. A Cognisafe alert arriving with only a score and a category will be triaged as low priority. An alert arriving with the affected agent name, a prompt snippet, the OWASP description, a direct link to the full request, and a pre-filled ticket body will be acted on.
- Alert fatigue is real. A medium-severity finding on a known agent running a known pattern should not page anyone at 3am. Severity routing must be calibrated, not uniform.
- Analysts are not AI experts. The ticket must explain what the detection means in plain language, not just say “LLM01 score=0.94”.
Architecture overview
Step 1: Webhook receiver
The receiver is the single entry point for all Cognisafe events. It must be:- Fast — respond 200 within 3 seconds or Cognisafe will retry
- Idempotent — Cognisafe delivers at-least-once; check
event.idbefore creating a ticket - Signature-validated — reject all payloads without a valid
X-Cognisafe-Signatureheader
Step 2: Severity routing
ServiceNow integration
Create a P2 incident with enough context for the assigned engineer to start investigating without opening the Cognisafe dashboard.The
correlation_id field maps to ServiceNow’s built-in correlation field. Configure a business rule in ServiceNow to check correlation_id before creating a new incident — this prevents duplicate tickets when the webhook is retried.Jira integration
Medium-severity findings go into the AI Security backlog for review at the next sprint triage.PagerDuty integration
Critical findings page the on-call engineer immediately. Thededup_key is set to request_id so that if Cognisafe retries the webhook or the same request triggers multiple scorers, only one page is sent.
Investigation runbook
This is the step-by-step procedure for a SOC analyst receiving a Cognisafe critical alert in PagerDuty or a high-severity incident in ServiceNow.1
Open the Cognisafe report
Click the report URL in the ticket. This opens the full request detail view in the Cognisafe dashboard, showing the complete prompt, response, all scorer results, and the request metadata (agent, model, timestamp, latency).
2
Review the full prompt and response
Read the full prompt, not just the snippet. Confirm the score makes sense. A
jailbreak_detection score of 0.94 on a prompt that says “Ignore all previous instructions” is a true positive. A score of 0.61 on a prompt that contains the word “ignore” in an unrelated context is likely a false positive. Document your assessment.3
Check the agent name and tag
Is
agent_name a known agent in your agent inventory? Is agent_tag the version currently expected in production? An unknown agent name or unexpected tag is a significant escalation signal — this may be an unauthorised deployment or a misconfigured CI rollout. Check your agent registry and deployment pipeline logs.4
Check request frequency
In the Cognisafe dashboard, filter by
agent_name and owasp_category over the last 24 hours. Is this a one-off event or part of a pattern? A pattern of 50 similar events in the last hour indicates an active attack or a broken agent in a loop. A single event may be an anomaly or a legitimate edge case.5
Check red team history
If
run_id is present in the ticket, this detection was triggered during a scheduled red team run, not by a real user request. Open the Red Team section of the Cognisafe dashboard and find the run. If the detection is from a red team run, it is expected — but still review the score to confirm the control is working as designed. Close the ticket with evidence: “Red team run , expected detection confirmed.”6
Escalate or close
Escalate to critical: if the agent is in production, the event is from a real user (no run_id), and the pattern repeats. Update the ServiceNow ticket to P1, page the AI system owner, and consider disabling the affected agent via the Cognisafe project settings.Close as false positive: document the reasoning, add the prompt pattern to a suppression list in the custom scorer configuration, and update the ticket status to “Closed — False Positive”. Feed back to scorer tuning (see Feedback loop below).Close as expected: for red team events or known test agents. Document and close.
SOAR playbook: automated first response
For Sentinel users, deploy this Logic App playbook to fire automatically when a new Sentinel incident is created from a Cognisafe analytics rule. It adds the report URL as a comment on the incident and optionally sends a Slack notification to the AI Security channel.cognisafe:threat sourcetype with severity=critical.
KPI targets for AI threat operations
Define and measure these KPIs from the first week of go-live. They are the leading indicators that the integration is working.
Track these monthly and review in the quarterly security review. A rising false positive rate is the signal that scorer tuning is needed (see below).
Feedback loop: closed tickets improve detection quality
Every resolved ticket is an opportunity to improve the scorer. When an analyst closes a ticket as “false positive”, that prompt pattern should be added to the scorer’s exclusion list. When an analyst confirms a true positive, that pattern should be added to the keyword or Likert scorer’s positive examples.Shift-left: pre-briefing the SOC before agent deployment
The SOC should not encounter a new AI agent for the first time in a 3am alert. Before any agent goes to production, the deployment team should provide the SOC with:- Agent brief: name, purpose, LLM model, data access, OWASP risk profile from the most recent Cognisafe red team run
- Expected alert patterns: what Cognisafe detections are expected during normal operation and should be auto-closed
- Escalation contacts: the AI engineer on call for this specific agent
- Rollback procedure: how to disable the agent if a critical threat is confirmed

