Evaluating Cybersecurity Agents: Dynamic Adversarial Testing Is the Real Differentiator

    Static quiz-style benchmarks can't reveal how security agents actually perform. This article explains why multi-round, bidirectional adversarial evaluation—where attack and defense agents compete in a reproducible environment—exposes real capability gaps. Drawing on 466 matches across 22 batches, it shows how top models separate from the pack in dynamic settings despite similar static scores, why static high scores fail under active defense, and how to build a reproducible agent-vs-agent evaluation framework that feeds results back into a remediation loop.

    1. Why Static Question-Answering Fails to Reflect Real Offensive and Defensive Capability

    Using agents for vulnerability discovery, attack-path reasoning, alert triage, and fix verification has become a common engineering practice in cybersecurity. But there is a persistent misconception in how we evaluate an agent’s “security capability”: breaking security tasks into single-shot questions and scoring them against a fixed question bank, a fixed environment, and fixed answers.

    Static evaluation is not without value. It works well for verifying foundational knowledge, tool-call formatting, and recognition of common vulnerability patterns, and it is convenient for fast regression testing. But it ignores at least three things:

    1. Offense and defense are bidirectional. Once the attacker proposes an exploitation path, the defender detects, blocks, and patches. In the next round, the attacker must re-plan based on the new state.
    2. Vulnerability states change. Targets in a static question bank are usually undefended and may even allow unlimited retries. In real environments, patches, rules, permissions, and isolation policies are constantly updated.
    3. Cost matters as much as success rate. Real engagements are not just about “can you break in”—they are about the number of attempts, time spent, false positives, probability of detection, and remediation cost.

    A more reasonable evaluation approach, therefore, is to place multiple agents into the same reproducible environment for multi-round, bidirectional adversarial matches: the attacker tries to complete objectives, the defender detects and remediates, and the system records state changes and final scores each round. Only in this kind of dynamic game do capability gaps fully surface.

    2. How 466 Matches Were Organized: From Single Questions to Multi-Round Games

    One public evaluation was organized into 22 batches with 466 valid matches. Participants were anonymized as Model A, Model B, Model C, and so on. The results are used here only to illustrate the methodology and do not constitute an evaluation of any specific product.

    A typical match can be abstracted as follows:

    • Task initialization: Given a target environment, a set of vulnerabilities, attack objectives, and defensive constraints.
    • Attacker action: The attack agent proposes exploitation paths, tool calls, or probing strategies based on currently visible information.
    • Defender response: The defense agent performs detection, blocking, rule updates, or vulnerability remediation.
    • State update: The system updates the environment state based on both sides’ actions—for example, whether a vulnerability is still exploitable, whether an alert was triggered, or whether the attacker was isolated.
    • Round progression: Move to the next round until the maximum number of rounds is reached or the objective is completed.
    • Scoring: Points are computed from capture rate, win rate, remediation effectiveness, false positives, elapsed time, and resource consumption.

    In pseudocode:

    1. type RoundResult = {
    2. round: int,
    3. attackCaptured: bool,
    4. defenseFixed: bool,
    5. detected: bool,
    6. costMs: int
    7. }
    8. function runMatch(attacker, defender, tasks, maxRounds):
    9. state = initEnvironment(tasks)
    10. records = []
    11. for r in 1..maxRounds:
    12. attackPlan = attacker.propose(state)
    13. defenseAction = defender.respond(state, attackPlan)
    14. state = updateState(state, attackPlan, defenseAction)
    15. records.append(record(r, attackPlan, defenseAction, state))
    16. return score(records, tasks.policy)

    The core of this design is not “who answers questions better,” but “who can sustain effective action while the opponent keeps adjusting.” The evaluation system must retain complete match logs—including inputs, actions, environment changes, detection results, and scoring rationale—for reproduction and auditing.

    3. Interpreting the Results: Score Stratification and the Win-Rate Gap

    After 22 batches and 466 valid matches, the leaderboard showed clear stratification:

    Anonymized Entry Score Match Win Rate Note
    Model A 78.6 0.83 Ranked first
    Model B 73.8 0.86 Ranked second
    Model C 68.5 Not listed Open-source model
    Remaining models 56.3–67.1 Max 0.59 Clearly stratified

    On the surface, the score gap between first and second place is only 4.8 points, but the win-rate structure is more telling: the top two achieved win rates of 0.83 and 0.86, while the best win rate among all remaining entries was only 0.59. This means the leaders have a more stable strategy-adjustment capability in dynamic adversarial settings—not that they occasionally get a few questions right.

    Even more noteworthy is the static-versus-dynamic comparison. The research team set up a control group: in a solo mode with undefended targets and two attempts per question, 30 out of 40 questions could be fully solved by all three of Model A, Model B, and Model C. In other words, judged by static question-answering, the foundational capability gap among the three was not dramatic.

    But when the same 30 questions were moved into bidirectional adversarial matches, the defender began patching vulnerabilities. By round 3, the three models’ attack capture rates had dropped to 52%, 37%, and 35% respectively. This shows that attacks that look nearly certain in a single-player environment fail or get defended against nearly half the time—or more than 60% of the time—once placed in a dynamic game.

    4. Why High Static Scores Fail in Adversarial Settings

    High static scores failing in dynamic adversarial settings is usually not caused by a single factor, but by several compounding mechanisms.

    First, static question banks encourage path overfitting. A model may memorize solution templates for common problem types, but in real engagements the initial information is incomplete and attack paths must be continuously revised based on defensive feedback. The more rigid the template, the more likely it fails when the state changes.

    Second, defensive feedback changes the information structure. In a static environment, the attacker cannot see the defender’s rule updates. In a dynamic environment, every detection, block, and patch alters the subsequent strategy space. The attacker must learn to infer the defense logic from failures instead of repeating the same path.

    Third, multi-round costs amplify strategic differences. A single successful exploit may take only a few steps, but the cost of rebuilding a path, evading rules, and finding new entry points after being detected rises quickly. Top models win not because they “know more vulnerability types,” but because they choose more reliable paths within limited rounds and reduce wasted attempts.

    Fourth, the scoring mechanism is closer to engineering goals. Dynamic evaluation typically looks beyond capture alone—it also considers detection evasion, fix verification, false-positive control, and resource consumption. A strategy with a slightly higher attack success rate but high noise and easy detectability does not necessarily score better overall.

    5. A Reproducible Agent Attack-and-Defense Evaluation Framework

    For dynamic adversarial evaluation to have engineering value, “matches” must be built into a reproducible, auditable, and extensible evaluation system. It should include at least the following modules:

    1. Environment isolation and snapshots. Each batch uses an independent environment with state snapshots and rollback. Container platforms, network isolation, and permission boundaries should be foundational capabilities, preventing cross-match contamination.
    2. Task version management. Task sets, vulnerability injection methods, defense rules, and scoring policies must all be versioned. Otherwise, the same score is not comparable across batches.
    3. A multi-round state machine. Clearly define the actions allowed per round, state transition conditions, and termination conditions. Both attacker and defender actions must be recorded as concrete events.
    4. Logging and auditing. Match logs, tool-call records, detection results, and scoring details should be written to object storage or a logging service, supporting retrieval and replay by batch.
    5. Scoring and statistics. Beyond points and win rate, record capture rate, detection rate, remediation rate, average rounds, false-positive rate, elapsed time, and resource consumption—with confidence intervals.
    6. Anti-cheating and resource limits. Restrict privilege escalation, external information leakage, duplicate submissions, and unlimited retries, ensuring the evaluation measures strategic capability rather than resource stacking.
    7. Monitoring and alerting. Set up alerts for abnormal latency, abnormal call volumes, environment drift, and scoring anomalies to guarantee batch quality.

    6. The Defender’s Perspective: Turning Evaluation Results into a Remediation Loop

    The value of dynamic adversarial evaluation should not stop at a leaderboard. For defenders, the more meaningful output is a remediation loop:

    • Vulnerability remediation prioritization: Rank by captured paths, exploitation cost, and impact scope—not just vulnerability counts.
    • Detection rule iteration: Convert probing behaviors, tool-call patterns, and lateral movement paths observed in matches into detection rules.
    • Least-privilege and isolation verification: Check whether the attacker gained extra advantages from excessive permissions, network connectivity, or exposed credentials.
    • Retrospective and regression: After each fix, re-run the same batch of tasks to confirm the capture rate drops without introducing new false positives.
    • Continuous evaluation baseline: Build your team’s own dynamic adversarial baseline and track capability changes by version, rather than fixating on a single static score.

    7. Practical Recommendations

    For teams preparing to build an agent security evaluation system, we recommend starting from three directions:

    First, do not treat static scores as conclusions about security capability. Static evaluation suits basic regression; dynamic adversarial testing is closer to real offense and defense. The two should be used in combination, but decision weight should favor dynamic results.

    Second, start with small-scale reproducible matches. There is no need to chase a massive question bank at the outset. Pick a few representative tasks, fix the environment, scoring, and log formats, get multi-round adversarial matches running end to end, and then scale up batches gradually.

    Third, embed evaluation into the development workflow. After every change to agent strategies, tool permissions, or defense rules, automatically trigger regression matches that output changes in points, win rate, capture rate, and remediation rate—forming a sustainable capability observability loop.

    8. Conclusion

    The lesson from 466 agent matches is not complicated: the capability gap among cybersecurity agents often lies not in “whether they know a particular vulnerability,” but in “whether they can maintain effective strategies in a dynamic environment where the opponent keeps patching and detecting.” Static question-answering can demonstrate knowledge coverage; only dynamic adversarial testing exposes the real dividing line. For enterprises and developers, building a reproducible bidirectional adversarial evaluation framework early—and turning evaluation results into a remediation loop—delivers far more engineering value than chasing a one-time leaderboard score.