Incident response SOP template for analysts and AI agents

An incident response standard operating procedure (SOP) works for analysts and AI agents alike when it names its evidence, writes each decision as a testable condition with else and missing-evidence branches, and marks where a human approves. Copy the template, then test it on real incidents.

Managed security operations · Checklist · 9 min read ·

Who this is for

SOC leads and senior analysts who write the procedures your analysts and Security Delivery Agents follow, whether you secure one organization or many customers.

You'll learn

It's 02:10, and a sign-in alert fires for a finance user. The sign-in came from a country that user has never signed in from. Your night analyst opens the SOP, and it says: investigate, and escalate if suspicious.

What counts as suspicious? Escalate to whom? A senior analyst fills those gaps from experience. A new analyst guesses, and an AI agent reading the same document can't stop to ask.

Write one SOP that both can follow, precise enough that a new analyst and an agent reach the same classification from the same evidence. When they disagree, the disagreement points at the sentence that needs work.

For the wider model, how Gamebook workflows turn an SOP into approval gates, evidence records and change control across every tenant, read Gamebook Workflows: Enforce SOPs Across Every Tenant.

What goes in an incident response SOP template?

Copy this structure once per incident type, and number every step under plain headings. A focused, structured SOP is easier to follow at 02:10, and easier for an agent to match to the right incident and the right section.

SectionWhat to write
HeaderID, version, owner and next review date
ScopeThe incident types covered, and where similar incidents go instead
Entry criteriaWhat must be true before anyone uses this SOP
EvidenceNumbered items, each with a data source and a time window
Missing evidenceWhat to record, and who takes over, when an evidence item can't be retrieved
DecisionsNumbered conditions, checked in order, each ending in a classification or an escalation
Response actionsEach action, named the way your response tool names it, and whether it needs approval
Approvals and escalationWho approves, how long you wait, and what happens if nobody answers
CommunicationWho you tell, when, and through which channel
Reference sectionWhere customer-specific values live: approved travel, egress IPs, VIPs, approvers, contacts

How do you turn a judgment call into a condition?

Swap adjectives for tests. "If the sign-in is suspicious" becomes "If the sign-in country isn't in the user's sign-in history for the previous 30 days, and the reference section lists no approved travel there." Anyone can check that against the evidence, and so can an agent.

Then give every condition an else branch, so the reader always knows the next step, and a missing-evidence branch, so nobody fills a gap with a guess.

Order matters. Put the missing-evidence branch before any condition that an empty or failed result could satisfy. Otherwise a failed query looks like an empty result, and "the sign-in isn't in the log" quietly becomes a False Positive. A condition that fires only on evidence that's present, like a new forwarding rule, can come first.

Check that the evidence exists for the window you name. Microsoft Entra ID keeps sign-in and audit logs for 7 days on the Free edition and 30 days on P1 or P2, unless you route them elsewhere with Azure Monitor. A 30-day lookback on a Free tenant lands in the missing-evidence branch every time.

Treat location as a hint. Mobile carriers and VPNs assign IP addresses from pools that can sit far from the user, which is why the example below also checks known egress IPs.

How do you map SOP outcomes to classifications?

Keep status and classification apart: status is where the work is, and classification is what you found. Then map each outcome to exactly one value in the console where the incident gets closed, because ContraForce, Microsoft Sentinel and Microsoft Defender XDR don't share one list.

SOP outcomeContraForceMicrosoft Sentinel (Azure portal)Microsoft Defender portal (legacy incidents)
Confirmed threatTrue PositiveTrue Positive – suspicious activityTrue positive, with a threat type
Real activity, expected or authorizedBenign PositiveBenign Positive – suspicious but expectedInformational, expected activity
Detection logic is wrongFalse Positive, reason: incorrect alert logicFalse Positive – incorrect alert logicFalse positive
Data behind the alert is wrongFalse Positive, reason: inaccurate dataFalse Positive – incorrect dataFalse positive
No firm verdictUndeterminedUndeterminedNo matching value (Not set is the default)

In the Azure portal, Microsoft Sentinel won't close an incident without a classification. In the Defender portal, incident cases are now the recommended experience and their fields can vary by tenant configuration, so check what your tenants show before you settle the mapping.

Give Undetermined its own trigger and require a comment that lists the missing evidence. If it becomes the default, your classification data stops telling you anything.

Illustrative example: a suspicious sign-in SOP

This SOP is made up to show the pattern; the IDs, time windows and roles are placeholders. SOP-ID-004, Suspicious sign-in (single user). Version 2.3. Owner: SOC lead. Next review: <date>.

Check the conditions in order. The first one that matches decides.

  1. If E4 shows a new rule that forwards mail to an external address that isn't another mailbox the user owns, or E2 shows an authentication method registered from the alert sign-in's IP address, classify True Positive and go to R1.
  2. Else, if any of E1 to E4 can't be retrieved, list what's missing in a comment and escalate to tier 2. If tier 2 can't recover it, close as Undetermined.
  3. Else, if E3 lists approved travel to the sign-in country with dates that cover the sign-in date, or the sign-in IP address is a known egress IP, classify Benign Positive and close with a comment that cites the E3 entry.
  4. Else, if the user in the alert doesn't exist or the sign-in isn't in E1, classify False Positive with the reason inaccurate data and tell detection engineering.
  5. Otherwise, escalate to tier 2. Don't close the incident.

Where do customer-specific details belong?

In a reference section at the end of each customer's copy of the SOP, or each business unit's copy if you secure one organization. The example never names a customer: every step that depends on one reads from the reference section, so the procedure above it stays identical everywhere.

Write exceptions as conditions too, and check them before the general rule, as R1 does: "For this customer, don't isolate plant-floor devices without a phone call to the plant manager." Where a platform can enforce an exception, enforce it there as well. A sentence in a document only works if the reader follows it.

When should you revise an SOP?

How do you load the SOP into ContraForce?

ContraForce has two SOP types, and the template maps onto them. Put scope, entry criteria, evidence and decisions in a Classification SOP, and response actions, approvals and communication in a Response SOP.

Details that change every week, like approved travel, are hard to keep current in an uploaded file. That's why each travel entry carries start and end dates, so an old trip can't match a new sign-in, and why the example ends with an Otherwise branch: if the agent can't confirm travel, an analyst gets the incident instead of a guess.

How do you test an SOP before an agent acts on it?

Run the agent alongside your analysts first. Linking an SOP to an agent takes effect immediately, and new agents default to On Queue, which is fully autonomous. So while you test, set every severity to Manual on the agent the SOP is linked to, and use Run agent investigation, which analyzes an incident without taking any remediation action.

Each run adds an AI Generated comment with the agent's classification, its malicious confidence, the SOPs it matched (under Knowledge) and its reasoning. Compare that with your analyst's verdict. If the agent matched the wrong SOP or reached a different outcome, fix the text, upload the new version and run it again.

How do you enforce approvals instead of describing them?

An approval written in an SOP depends on the reader honoring it. In ContraForce, response actions run as Gamebooks, and each workspace's run policies decide at run time whether an action is allowed, blocked or sent to an approver first.

Approval enforced, not just described

R3 needs approval for Reset MFA and Reset User Password. A run policy that sends Reset MFA to an approver for Security Delivery Agents enforces that, whatever the agent concluded from the text. Reset User Password already waits when an agent or a service provider runs it in a customer workspace, and only an admin in the customer's organization on the Approvers list can approve it, unless the customer turns on Allow service provider to reset passwords.

Before you rely on a policy, preview a Gamebook. Gamebook Preview shows each action's target, its policy verdict and who has to approve it, without running or storing anything.

Checklist

Recap

In the ContraForce docs

Go deeper on contraforce.com

Sources

  1. Microsoft Learn, Basic incident tasks for Microsoft Sentinel incidents in the Azure portal
  2. Microsoft Learn, Manage incidents in the Microsoft Defender portal (legacy)
  3. Microsoft Learn, Manage incident cases in the Microsoft Defender portal
  4. Microsoft Learn, Microsoft Entra data retention
  5. Microsoft Learn, Learn about the sign-in log activity details
  6. Microsoft Learn, Microsoft Entra audit log activity reference
  7. Microsoft Learn, Learn about the audit logs in Microsoft Entra ID
  8. Microsoft Learn, Alert classification for suspicious inbox forwarding rules
  9. ContraForce Docs, SOPs for Security Delivery Agents
  10. ContraForce Docs, How to Classify Incidents: True vs False Positive
  11. ContraForce Docs, Configuring Security Delivery Agents
  12. ContraForce Docs, Security Incident Management: Triage to Closure
  13. ContraForce Docs, What Are Gamebooks? No-Code Incident Response
  14. ContraForce Docs, Workspace Policies for Gamebooks and Agents
  15. ContraForce Docs, Gamebook Preview: Test Before You Run

Reviewed by the ContraForce team · Published · Updated

Next up

All lessons

Step 4 of 4 · Run Microsoft security across customer tenants

Microsoft Sentinel cost review checklist for each customer workspace

Run a monthly Microsoft Sentinel cost review per customer workspace: find the biggest tables, right-size the pricing tier, and split or move noisy data.

Microsoft Sentinel · Checklist

Read · 10 min

See it run on your own incidents.

Connect one supported workspace, validate access and your Gamebook workflow, then measure an eligible investigation in your own environment.

Start for free Read the docs

Connect one workspace: scoped Entra ID application consent, no endpoint agents, no log forwarding.