How we stopped guessing whether our security agent got better

Working on AI agents has a weird psychological trap: you tweak a system prompt, swap in a newer model release, or refactor a tool description, run the agent twice on your favorite test repo, watch it nail a cool bug, and convince yourself you just made a huge breakthrough.
Then you ship it and silently regress three other vulnerability classes you forgot to check.
Once our multi-agent security testing platform had multiple MCP toolkits, async dispatch pipelines, and different model configurations competing for production, vibes-based testing stopped working. We needed a real regression benchmark.
Building a ground-truth suite on isolated targets
Synthetic toy prompts ("find the SQL injection in this 10-line snippet") do not tell you much about an agent that has to run reconnaissance, chain multiple tools, handle noisy HTTP responses, and avoid going down rabbit holes inside a live sandbox.
So we grounded our eval suite in two sources:
-
Isolated vulnerable target environments (containerized / EC2 targets seeded with realistic web, auth, and API flaws where we knew the exact ground-truth vulnerability set).
-
Historical findings from past audited runs (sanitized and replayed against reproducible snapshots) so bugs the agent already caught once would never silently slip through after a prompt or model change.
Scoring more than just "did it finish?"
A single pass/fail score hides too much. An agent that fires 40 noisy alerts to catch 2 real bugs is useless to a security engineer, and an agent that accidentally finds the right bug after burning 35 wasted tool calls will blow through latency and token budgets in production.
For every benchmark run, we recorded the full network trace, tool logs, and final structured report, and scored five separate dimensions:
| Metric | What it catches |
|---|---|
| Task completion | Did the workflow terminate cleanly with a valid structured report? |
| Tool-call accuracy | Rate of malformed arguments, nonexistent flags, or repeated failing invocations |
| Vulnerability recall | Fraction of known ground-truth vulnerabilities actually identified and verified |
| False-positive rate | Claimed findings that failed deterministic reproduction or had no valid evidence |
| Trajectory quality | Step efficiency, redundant scanning loops, and whether evidence actually supported the conclusion |
interface EvalSummary {
runId: string;
model: string;
promptVersion: string;
completionRate: number;
toolCallSuccessRate: number;
recall: number;
falsePositiveRate: number;
medianStepsPerFinding: number;
}
What the numbers actually revealed
The first full regression run was humbling. A prompt rewrite we all thought was "cleaner" had boosted recall by a few points while doubling the false-positive rate because it nudged the agent to report unverified hypotheses whenever a PoC timed out. Another newer model release had higher reasoning scores on paper, yet struggled with one of our custom MCP tool schemas and kept retrying with broken JSON parameters until we tightened the tool's parameter descriptions.
Running the eval suite automatically on major model and workflow changes is not cheap (live sandboxes + multi-turn agent trajectories cost real compute), so we kept a fast smoke tier for PRs and ran the full regression matrix nightly or before model promotions. Even a small, slightly imperfect benchmark beats arguing over cherry-picked screenshots in Slack.
Share this article
Reactions