Ask a SOC lead which AI agent attacks they would detect today. You will usually get a list of rules. That is not the same thing as an answer.
A rule is a hypothesis: “if this attack happens, this logic will fire.” For endpoints we stopped trusting that hypothesis years ago. We run Atomic Red Team, we replay known-bad behaviour, and we find out which detections are real. For agents, I could not find anyone doing this in public. The rules are being written faster than anyone is checking them.
I wanted to know how bad the gap is, so I built a tool to measure it. This article covers what I learned about the architecture first, then the tool.
Why agent threats break the usual detection model
Three things are different when the thing being attacked is an agent.
The attack is made of permitted actions. An agent that reads a web page, opens a file and makes an HTTP request has done nothing your EDR considers unusual. Each step is inside its permissions. The attack is in the sequence and in where the instruction came from, and neither shows up in a process tree.
The signal lives in a new kind of telemetry. What you need to see is the model call, the tool call, its arguments, its result, and which conversation they belong to. That is application telemetry, and the emerging standard for it is the OpenTelemetry GenAI semantic conventions: spans with attributes like gen_ai.operation.name, gen_ai.tool.name and gen_ai.tool.call.arguments. Many SOCs are not ingesting it yet, and the content fields (prompts, tool results, tool definitions) are opt-in because they carry sensitive data.
Benign and malicious look almost identical. “Read an email, then send an email to an external address” is an injection-driven exfiltration. It is also an inbox assistant doing its job. Any detection strategy that ignores this ends up with rules that fire constantly and get muted.
A four-layer architecture
After reading through the current frameworks (the OWASP Top 10 for Agentic Applications, MITRE ATLAS, the CSA agentic control plane work) and the open-source detection projects that appeared this year, this is the shape I would build toward.
1. Telemetry. Instrument agents to emit OpenTelemetry GenAI spans: one per model call, tool execution and agent invocation, tied together by a conversation id. Decide deliberately which content fields you capture. You cannot detect a poisoned tool description if tool definitions never leave the process.
2. Detection. Three tiers, cheapest first:
- Single-event rules for things that are bad on their face: a reverse shell, a role assignment, a write to the agent’s own MCP configuration.
- Sequence correlations for attacks made of permitted steps. The canonical one is the lethal trifecta: untrusted content in, then a secret read, then external egress, within one conversation. This is the tier that matters most and the one most rule packs skip.
- Model-assisted triage for what remains ambiguous. Useful, but keep it out of the first two tiers. A deterministic rule can be tested, diffed and explained to an auditor.
3. Validation. A library of known attack traces that you replay against layer 2 on every change, with a coverage score and a gate. This is the layer that is missing nearly everywhere, and it is the one I built.
4. Response. Detection that ends in a ticket is too slow for something acting at machine speed. The response actions worth pre-wiring are agent-specific: end the session, revoke the agent’s credentials, quarantine the tool or MCP server, and roll back memory writes.
Layers 1, 2 and 4 are getting vendor and open-source attention. Uber open-sourced its agent detection and response stack this year. Netzilo published a Sigma rule set for agent events. The content is arriving. What I could not find was a way to answer “does my content work?”
firedrill
firedrill is the Atomic Red Team idea applied to agent telemetry. It has three parts.
Atomics. Seventeen small attack traces, at least one for every category of the OWASP Agentic Top 10, each mapped to MITRE ATLAS techniques. They are written as OpenTelemetry GenAI spans, so they look like what your collector would receive.
Benign twins. This is the part I care most about. Every atomic ships with a second trace: ordinary agent work chosen to look as much like the attack as possible. The injected web page is paired with a security blog that quotes “ignore previous instructions”. The destructive rm -rf /var/lib/postgresql/data is paired with rm -rf ./build/tmp. The stolen .env is paired with .env.example.
A scoring rule that punishes noise. Your rules, in standard Sigma format, are run over both traces. An atomic is only covered if the rules fire on the attack and stay quiet on the twin. If they fire on both, it is noisy. If they miss the attack, it is missed.
It is deterministic and offline. No model, no API key, runs in under a second, and it exits non-zero when coverage drops below a threshold you set, so it can gate a pull request to your detection repo.
Trying it takes two commands:
pip install agent-firedrill
firedrill run
Point it at your own rules with firedrill run --rules path/to/your/sigma-rules.
What the first run showed
I wrote seven keyword rules of the kind every team writes first: the phrase “ignore previous instructions” in a tool result, rm -rf in a command, “credentials” in a file path, and so on. Then I ran the drill.
Coverage 0.0% (0/17 covered) detection rate 41.2% noisy 7 missed 10
Seven of seventeen attacks detected. Reported the usual way, that is 41% detection, which sounds like a start. But every one of those seven rules also fired on its benign twin. In production each would be muted within a week, and the real coverage would be what the tool says it is: zero.
That gap between detection rate and coverage is the finding. A detection that cannot tell the attack from a normal Tuesday is not a detection you will still have running in a month.
The starter pack that ships with firedrill does better, 15 of 17 with no noise, and the reason is instructive. The rule that catches the injected web page does not look for injection phrases at all. It looks for the order of events: untrusted content, then a credential file, then an outbound request to a domain that is not yours. The security blog trace contains the scary phrase and never trips it.
What it does not catch, and why that is useful
Two atomics are missed by the starter pack on purpose.
One is a forged message from a “peer agent” telling a payments agent that compliance already approved a transfer. The other is an agent telling its user, in its own trusted voice, that their session expired and they should sign in at a look-alike domain.
In both cases the attack trace and the benign twin differ in something the telemetry does not carry: who really sent the message, and whether the link is hostile. No rule can separate them, and firedrill says so in the report. That turns a vague worry into a specific requirement. You need authenticated identity on inter-agent messages, and you need URL reputation applied to model output. Those are architecture decisions, not rule-writing tasks, and it is better to learn that from a drill than from an incident.
What the numbers do not mean
I want to be straightforward about the limits.
The 88% for the bundled rules is a self-test. I wrote those rules and those atomics against each other. The number that matters is the one you get from your own rules.
The traces are synthetic. Your instrumentation may name tools differently or truncate arguments. A rule that covers an atomic here can still be blind in production, which is why the tool can export any atomic as OTLP so you can push it through your real collector and SIEM.
One benign twin is a floor, not a false-positive rate. And pattern rules can be evaded by an attacker who knows them. Detection is the layer that tells you prevention failed. It does not replace prevention.
Where this fits
I have been building toward a loop. gauntlet attacks your agent on every commit and asks whether it holds. firedrill asks the other question: when it does not hold, would you know? One measures resilience, the other measures visibility, and a security program for agents needs both numbers.
If you run detections for agents, try the drill against your own rules and tell me what it finds. I am most interested in the atomics you think are missing, and in benign twins that are harder than mine.
¶ Discussion
Comments are powered by Giscus / GitHub Discussions. They appear here once configured — see
Configure Giscusin the project README and updateGISCUSinsrc/consts.ts.