Dynamic Attack-Defense Evaluations Reveal a Capability Gap in AI Agents
Static benchmarks based on single-player question answering can make AI agents look close to solving common cybersecurity tasks. This article explains why fixed-target scores overstate attack and defense ability. It describes a closed-loop evaluation with changing targets, service-availability constraints, and four separate scoring dimensions, and it covers what the results mean for security engineering teams, teams that use agents for security work, and benchmark designers.
Why Static Scores Create an Illusion
Recent technical reports can easily give the impression that general-purpose large language models have already cleared common cybersecurity question banks. In single-player, question-answering style evaluations, completion rates for vulnerability localization and exploit script writing are often reported as very high. These tasks share one trait: the target is static. Services are never patched, never restarted, never disconnected, and never restrict the attacker based on traffic.
Real environments do not work this way. While an attacker is still confirming a vulnerability, the defender may already have added rate limits, rotated credentials, or applied a hot patch. An exploit path verified locally can fail after deployment because of configuration drift, tighter permissions, or dependency version changes. The gap between shooting at fixed targets and fighting an opponent who can hit back is the gap between static solve rates and dynamic adversarial performance.
An evaluation should therefore ask more than “Can the agent write a working exploit once?” It should ask whether the agent can discover, verify, patch, keep services available, and conduct a post-incident review while the opponent keeps changing the system state. Optimizing only the first part systematically overestimates attack and defense capability.
The Evaluation Object Should Be a Closed Loop, Not a Single Answer
A design closer to real operations places each agent in two roles at once. It tries to break into the services the opponent exposes, and it keeps its own services correct and continuously available. A match should include at least the following constraints.
- Targets change. Defenders can patch, adjust authentication, tighten network policies, or replace keys, so attack assumptions cannot remain valid for long.
- Time is asymmetric. Discovery, verification, and patching windows compete with each other. Being one step slow can turn an offensive advantage into a defensive loss.
- Side effects count in the score. Breaking into an opponent at the cost of your own service outage, blocking legitimate traffic, or leaking credentials should not count as a full victory.
- Information is limited. Participants can only see logs, metrics, and interface behavior within their authorized scope. They cannot assume access to full source code or unlimited replay attempts.
Under these rules, the top teams are often not the ones that solve individual challenges best. They are the ones that switch between attack and defense more steadily and react more sensitively to state changes. Mid-tier and lower-tier models may perform similarly on static challenges, but their capture rates drop noticeably once a match involves multiple rounds of adversarial play. In practice, challenges that many models solve in single-player mode often yield only about half or fewer valid captures in the middle and later rounds after switching to two-sided matches. The exact figure depends on the challenge set and rules, but it points to a consistent pattern: solving everything statically does not mean the result can be reproduced dynamically.
What Tier Separation Actually Measures
When you separate expected score, win rate, and per-dimension capability, the tiers mostly come from four behaviors, not from luck on a single hard challenge.
- Hypothesis update speed. Strong agents abandon outdated paths after a patch, restart, or policy change, instead of replaying the same payload repeatedly.
- Verification discipline. They separate suspicious symptoms from reproducible impact. They avoid treating noise as a vulnerability, and they avoid expanding their actions before impact is confirmed.
- Defense priorities. They protect identity, sessions, and the data plane first, then address root causes. Temporary mitigations and formal patches have clear handoffs.
- Availability awareness. They explain protective actions in terms of error rate, latency, and core transaction success rate, not only whether the alert has disappeared.
Weaker agents show the opposite pattern. They remember common vulnerability patterns from static question banks, but they cannot connect logs, changes, and failed requests into one causal chain during a dynamic match. As a result, win-rate gaps grow. Top teams can have a much higher match win rate than others, even when everyone solves the same challenges in an unprotected, attempt-limited single-player mode.
A Reusable Evaluation Structure
A team does not need to copy any external leaderboard. It can build a small dynamic evaluation environment in its own infrastructure. The recommended approach is to change the task from “find the vulnerability” to “maintain a secure service level,” with a fixed number of rounds per match.
Environment. Use a container platform to provide an equivalent attack-defense sandbox. Each side has its own network policy, keys, and observability surface. Object storage holds only authorized challenge packages and replay data. A message queue passes round events. A log service and monitoring alerts provide a unified timeline. All actions are restricted to the isolated environment, and any action aimed at real production systems or unauthorized targets is prohibited.
Rounds. Each round opens an attack window and a defense window at the same time. Defenders can publish configuration or patches, but changes must pass health checks. Attackers can act only on information visible in the current round, and credentials from earlier rounds are invalid by default. This forces the model to handle the fact that the environment has already changed.
Scoring. Split the total score into four interpretable items instead of using a vague solve rate.
- Valid impact: Within the authorized scope, prove that confidentiality, integrity, or availability was broken, and that the result is reproducible.
- Defense success: The risk is mitigated, and core functions still meet the agreed success rate and latency.
- Collateral penalty: Legitimate traffic is blocked, data is deleted by mistake, or keys are written to logs.
- Timeliness: Measure the time from anomaly appearance to mitigation taking effect, and then to root-cause fix.
An example round record does not need to bind to any vendor interface, as long as the field names stay stable:
round: 3attack_hypothesis: outdated_after_patchdefense_action: credential_rotation + input_validationservice_slo: error_rate < 1%, p95_latency within budgetscore_delta: attack -1, defense +2, collateral 0
Controlled comparison. Run the same challenge in static mode first: the target is not patched, attempts are limited, and the solve rate is recorded. Then run it in adversarial mode, where hot patches and credential rotation are allowed starting from a given round, and record how the capture rate decays. Read the two sets of results together. Publishing only the first would present remembering challenge types as practical capability.
Three Misreadings to Avoid
First, do not treat a single successful exploit as the upper bound of capability. In dynamic environments, many failures come from patches, restarts, and credential lifecycles, not from the model suddenly becoming less capable.
Second, do not reward offense alone. If scoring does not penalize service outages and over-blocking, the optimal strategy becomes aggressive probing combined with heavy-handed blocking, which contradicts enterprise security goals.
Third, do not explain performance gaps with toolchains that cannot be compared. Model choice, task orchestration, context length, whether repeated trial and error is allowed, and whether observability data is complete all change scores. Evaluation reports should disclose these conditions. Otherwise the tiers reflect the scaffolding, not security judgment.
Direct Implications for Security Engineering
For defense teams, the priority is not building more static challenges. It is shortening the loop from discovery to verification, mitigation, and review. Practical steps include standardizing health checks for critical services, identity rotation, least privilege, and change auditing. Make logs traceable by request to identity, version, and policy. Prepare rollbackable temporary mitigations for every high-risk entry point instead of waiting only for a complete patch. Agents can help summarize logs, draft checklists, and compare results against change records. Whether a mitigation works, however, must be confirmed by monitoring data and regression tests, not by the model’s own report.
For teams using agents for security assistance, answer at least four questions before deployment. Will the agent stop using old paths after the target is patched? Can it explain how its actions affect availability? Does it write keys or internal topology into context where they should not be retained? When it fails, is the cause insufficient information or a flawed policy? These questions are closer to production risk than leaderboard rankings.
For benchmark designers, reports should give the static solve rate, multi-round capture rate, availability maintenance rate, and collateral-damage rate together. They should also include confidence intervals or at least state the sample size. A symmetric set of matches numbering in the hundreds is enough to show separation between top and middle teams. Specific scores, however, are only valid for that challenge set, rule set, and toolchain. They cannot be extrapolated into claims that all defenses were broken or that a model class is unusable.
Conclusion
If an “AlphaGo moment” for cybersecurity arrives, high scores on static targets should not be what announces it. The meaningful signal is how capture rates decay when opponents can strike back and services must keep running, whether patches arrive on time, and whether collateral damage stays under control. Changing evaluation from single-player question answering to symmetric, time-limited, observable dynamic confrontation removes the illusion that static scores create. The real differences in attack and defense capability then become explainable, repeatable, and worth prioritizing in security development.
