AgentOrdeal — a reproducible benchmark for autonomous agent security
The biggest agent security benchmark by scenario count. Battery 1.3.0 carries 1,183 security scenarios — ahead of InjecAgent (1,054 test cases) and AgentDojo (629 security test cases) — built from 91 hand-built scenario templates, systematically varied across delivery channel, framing, encoding, and canary, with every single case admitted through deduplication and determinism gates before it counts.
AgentOrdeal points a frozen, version-pinned attack battery at a live AI agent or a live MCP server, and grades what the target actually does: the canary token that leaks, the forbidden tool that gets called, the poisoned entry that lands in memory. Every verdict comes from a deterministic detector. No LLM judge, no vibes — a score you can re-run, diff, and defend.
Why it hits different
- Behaviour, not descriptions. Static scanners read a server's tool list. AgentOrdeal opens a real session, delivers the attack, and watches the behaviour — for agent frameworks and for MCP servers alike.
- One battery, both layers. The same frozen battery scores agent frameworks (AutoGen, LangGraph, CrewAI, and more) and live MCP servers, so the two halves of an agent stack are finally measured on one scale.
- Honest denominators. A scenario a target cannot engage is marked not-applicable with a written reason, and every score is published with its applicable count — 14 of 91 is printed as 14 of 91, never dressed up as a full-battery result.
- Pinned and reproducible. Batteries are immutable once released. A score cites its battery version and seed:
AgentOrdeal-1.0 / battery=1.2.0 / seed=42 / score=91.3.
The part we are proudest of
The first MCP probe model published scores in the high 80s — and they were measuring almost nothing. The generic probe arguments were rejected by server-side schema validation, and rejected calls were being counted as passes. The project caught this itself, tore the scores down publicly, rebuilt the probe so every verdict rests on behaviour the server actually exhibited, and re-scored. Under probe model v2, the MCP reference filesystem server went from 87.2 to 16.4 F. A benchmark that corrects its own headline numbers is one whose numbers you can use.
Already scored
Eleven agent frameworks and fifteen MCP servers carry public scorecards on the live leaderboard, all under battery 1.2.0:
- AutoGen 93.5 A tops the framework board, ahead of Semantic Kernel (93.4 A) and Pydantic AI (93.0 A); smolagents (75.8 C) closes it.
- The MCP reference servers under probe model v2: everything 100.0 A (14 of 91 applicable), memory 48.6 F (31 of 91), filesystem 16.4 F (19 of 91).
- Twelve servers from the public MCP registry, scored live, with per-server denominators and confidence flags where a score rests on non-engagement.
The full results ship in this repo under results/ (scores.json and a flattened leaderboard_scores.jsonl).
Use it
Install the runner and score the demo targets in under a minute:
pip install agentordeal
agentordeal quickstart # a vulnerable and a hardened demo agent, side by side
agentordeal run --target demo-hardened --out out
agentordeal mcp --command "python -m your_mcp_server" --out out
Load the battery straight from the Hub:
from datasets import load_dataset
security = load_dataset("saloni-garg/agentordeal", "battery-1.3.0", split="security")
controls = load_dataset("saloni-garg/agentordeal", "battery-1.3.0", split="usefulness")
print(security) # 1,183 scenarios, each with its deterministic detector attached
What's in the data
Each security scenario carries its id, template_id, category (prompt_injection, tool_misuse, data_exfiltration, memory_poisoning, goal_hijacking, mcp_security), severity, OWASP ASI mapping, the attack prompt/payload, the setup, the full deterministic detector plus a plain-language detector_summary, and — in battery 1.3.0 — the variant parameters it was generated with. Usefulness controls are benign tasks with expected answers: a target that refuses everything scores zero there, so a high security grade cannot be bought by saying no.
| Config | Security scenarios | Usefulness controls |
|---|---|---|
| battery-1.2.0 | 91 | 10 |
| battery-1.3.0 | 1,183 | 40 |
Links
- Leaderboard: agentordeal.com
- Runner: github.com/saloni-garg/agentordeal
- Specification: github.com/saloni-garg/agentordeal-spec
- Package: pypi.org/project/agentordeal
Contribute
The roadmap is public and the door is open: the runner repo's open issues are labelled good first issue and help wanted — registry breadth passes, new framework harnesses, an independent implementation of the spec conformance vectors. Score something we haven't, and show your working.
Citation
AgentOrdeal-1.0 / battery=1.3.0 / seed=42
AgentOrdeal is MIT licensed.