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.
| Measure | How it is counted | Why it matters |
|---|---|---|
| Missed escalation | Cases that needed a person but the agent did not escalate, out of all cases that needed a person | The costly error. A read-only agent can still bury a real attack. |
| False escalation | Cases that did not need a person but the agent escalated, out of all cases that did not | The noise. With too much of it, analysts stop reading. |
| Accepted unchanged | Proposals approved exactly as written, out of all proposals | Shows whether proposals are usable as they stand. |
| Wrong proposal | Proposals with a wrong action or target, out of all proposals | The error that earned autonomy cannot tolerate. |
| Invalid citation | Findings that cite a missing event, or one that does not say what is claimed | Shows whether the reasoning can be checked. |
| Time to first finding | Median minutes from the alert to the agent's first finding | The benefit you are paying for. |
| Cost per case | Model and tool cost, divided by the number of cases | Sets 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.
- Run your analysts through the same evaluation set, blind to the labels. Their results are your baseline.
- 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.
- Set the false-escalation target from capacity. Count how many escalations a shift can review properly, then work back.
- For any class you might promote, set the wrong-proposal target to zero for the review period.
- Write the targets in
evaluation/, with the date, before you run the agent.targets. csv
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- 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. 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.
Risk The potential for harm, assessed using what could happen, how likely it is, its impact, and what remains uncertain.
DNS The lookup system that maps a name people type to an address a computer can contact.
SOC The people and process that detect, investigate, and respond to security events. Distinct from System and Organization Controls reporting.
Precision True positives divided by all positive alerts in a defined, labeled evaluation set: TP / (TP + FP).
Prompt injection An attack that inserts instructions into model input so the model follows attacker text instead of the developer’s policy.