Agentic alert investigation
An LLM agent investigates the alert the way a junior analyst would: it queries the SIEM and the EDR, builds a timeline and proposes a verdict with its evidence. An analyst approves anything that changes state.
- 70%of L1 alerts arrive with a proposed verdict
- −60%time to verdict
- 100%of agent actions logged and replayable
01Framing the project
Level 1 analysts spent most of their shift on investigations that followed a few repeating patterns: a suspicious sign-in, a flagged process, a risky download. Each one needed queries across several tools and a judgment on what the results meant. Scripted playbooks covered the known cases and stopped where judgment started.
Objectives and success criteria
- Give the analyst a proposed verdict, with evidence, on most level 1 alerts.
- Keep a human decision on anything that changes a system.
- Measure the agent against analyst verdicts before it is trusted.
Scope
- Read-only investigation tools exposed to the agent through MCP
- Retrieval of runbooks and past cases
- A verdict, a timeline and the evidence behind them, written into the case
- An evaluation set built from historical alerts
- Any write action by the agent
- Autonomous closure of an incident
- Alert types without a stable pattern
02Starting point
- Median time for a level 1 investigation
- 25 min
- Alerts that follow a few repeating patterns
- about 70%
- Runbooks
- scattered across wiki pages
- Proposed verdicts available to analysts
- none
The patterns were stable enough to describe in a runbook. That made them a good fit for an agent that follows a plan, and kept the first version small.
03Design and integration
- Phase 1
Choose the alert types
We kept the alert types with a clear pattern and bounded data, and left out the ones where the right answer depends on tacit knowledge.
- Phase 2
Expose read-only tools
SIEM search, EDR host and process lookups and directory queries are exposed through MCP with narrow credentials. The agent cannot write anywhere.
- Phase 3
Build the agent
It retrieves the runbook and similar past cases, plans its questions, runs the queries and writes a timeline, a verdict and what it could not verify. Each alert has a step and cost limit.
- Phase 4
Measure before trusting
We built an evaluation set from 300 historical alerts with the analysts' verdicts, and iterated on prompts and tools until agreement was high enough to pilot.
- Phase 5
Pilot in the case manager
The verdict appears in TheHive as a proposal. The analyst accepts, edits or rejects it, and each answer feeds the evaluation set.
04Difficulties we solved
Attacker-controlled text, such as an email subject or a user agent, can carry instructions aimed at the model.
Alert fields reach the model as delimited data, never as instructions. Tools are read-only and narrowly scoped, so a successful injection has little to reach.
The agent could state facts it had not verified.
Every claim must cite the identifier of a query result. A verdict without evidence is rejected and the alert returns to the normal queue.
Latency and cost varied from one alert to the next.
A step and token budget per alert, a timeout, and a fallback to the normal queue when the budget runs out.
05Results
| Measure | Before | After |
|---|---|---|
| Level 1 alerts with a proposed verdict | 0% | 70% |
| Median time to verdict | 25 min | 10 min |
| Agreement with analyst verdicts (evaluation set) | not measured | about 90% |
| Agent actions logged and replayable | not applicable | 100% |
Analysts review a prepared investigation instead of starting one. The evaluation set stays in place, so any change of model or prompt is scored before it reaches the SOC.
06Guardrails in production
- Investigation tools are read-only. Any action that changes a system needs a human approval recorded in the case.
- The agent sees only the data the analyst could see, and secrets never enter a prompt.
- Alert fields are passed to the model as data, never as instructions, and tool scopes are narrow, which limits what a prompt injection hidden in an alert can reach.
- Every prompt, tool call and answer is logged for audit and replay.
- A fixed evaluation set compares agent verdicts with analyst verdicts. A model or prompt change ships only if it holds up on that set.
- Each alert has a step and cost limit, and a failure leaves the alert in the normal queue.
07Stack
OpenAI
Claude
- Open-source LLMs
- Model Context Protocol
Python
Splunk


Microsoft Defender


Jira