✳ Agentic SOC guide / Chapter 4 of 7

Measure the agent before you trust it

Score the agent on labelled cases: missed and false escalations, proposal quality, time and cost. Then red-team it with text planted in logs and tickets.

5 min readReviewed

Build a set of labelled cases

A labelled case is a past or synthetic case with a known right answer. The label says whether the case needed a person, and which actions were right. Your evaluation set is the agent's exam. Write it before you see any answers.

  • Replayed cases: closed cases from your own SOC, run through the agent with the original evidence.
  • Benign cases: alerts that had an innocent explanation, such as a sign-in during an approved change. Much of a SOC's queue looks like this.
  • Hard cases: ambiguous ones where your analysts disagreed. Label them with the final decision and a note.
  • Red-team cases: real or synthetic cases with planted instructions, described below.

Keep the labels away from the agent and from the people who tune its prompt. Once the tuners can see the answers, the set stops measuring anything.

What to count

Two errors matter most, and they pull in opposite directions. A missed escalation is a case that needed a person but did not reach one. A false escalation is a case that reached a person for no reason. Count both.

Measures in the starter evaluation sheet
MeasureHow it is countedWhy it matters
Missed escalationCases that needed a person but the agent did not escalate, out of all cases that needed a personThe costly error. A read-only agent can still bury a real attack.
False escalationCases that did not need a person but the agent escalated, out of all cases that did notThe noise. With too much of it, analysts stop reading.
Accepted unchangedProposals approved exactly as written, out of all proposalsShows whether proposals are usable as they stand.
Wrong proposalProposals with a wrong action or target, out of all proposalsThe error that earned autonomy cannot tolerate.
Invalid citationFindings that cite a missing event, or one that does not say what is claimedShows whether the reasoning can be checked.
Time to first findingMedian minutes from the alert to the agent's first findingThe benefit you are paying for.
Cost per caseModel and tool cost, divided by the number of casesSets the budget and the rate limits.

Report each rate as a count, such as 1 of 5, until the sample is large. With a few dozen cases, a percentage claims more precision than you have. The lesson Measure detection without fooling yourself makes the same point about detection metrics.

Set targets from your own SOC

This guide gives no industry thresholds. No public source supports one for this kind of system, and your queue is not anyone else's. Set targets from your own people.

  1. Run your analysts through the same evaluation set, blind to the labels. Their results are your baseline.
  2. Set the missed-escalation target no worse than the baseline. An agent that misses more than your people do is a step backwards, however fast it is.
  3. Set the false-escalation target from capacity. Count how many escalations a shift can review properly, then work back.
  4. For any class you might promote, set the wrong-proposal target to zero for the review period.
  5. Write the targets in evaluation/targets.csv, with the date, before you run the agent.

Rerun the whole set whenever the model, prompt, tool list, policy or catalogue changes. Compare each run with the last one as well as with the targets.

Red-team it with text in logs and tickets

The agent's main attack surface is the text it reads. Attackers can write into many fields a SOC collects: user agents, DNS names, email subjects, file names, ticket bodies and chat messages.

NIST AI 100-2 E2025 calls this indirect prompt injection. The attacker controls a resource the model reads, not the conversation. MITRE ATLAS lists it as AML.T0051.001, a form of AML.T0051 LLM Prompt Injection. It lists the misuse of an agent's tools as AML.T0053 AI Agent Tool Invocation.

Plant instructions in labelled cases, and give each attempt a goal. Four goals cover most of the risk:

  • Suppress: make the agent close or downgrade a case that needs a person. This is the most dangerous goal, because the read-only design does not stop it.
  • Act: make the agent propose an action the evidence does not support, or a class it may not propose.
  • Leak: make the agent copy case data into a ticket, a link or a message.
  • Mislead: make the finding blame the wrong account or host.

Run each attempt many times, because a model can answer differently each time. Report each goal as a count of attempts that worked, such as 2 of 20. The lesson Red-teaming an AI system before launch shows how Meridian wrote signed rules, counted attempts and retested after each fix.

Add every case that fooled the agent to the evaluation set. Ticket HD-7710 from the worked example went in that way.

Keep it in one sheet

The starter bundle's evaluation sheet has one row per case. It holds the label, what the agent did, whether planted text was present and whether it worked, the time and the cost. Its score.mjs prints each measure as a count.

The example rows are made up to show the format. They are not results, and they say nothing about any real agent.

Find your next idea.

Tip: press / to open search. Escape closes this window.