Cybersecurity LLM Evaluation: Beyond Recall, Stability Matters
A recent large-scale evaluation of cybersecurity LLMs used real disclosed vulnerabilities and repeated runs to show that top aggregate recall can hide poor run-to-run stability. This article explains the test design, why aggregate recall differs from single-run and stable hit rates, the sources of result variance, and how enterprises can evaluate and deploy security LLMs with evidence, cost, and human review in mind.
In recent years, more security teams have begun using large models to assist with vulnerability analysis, code review, dependency triage, and attack path reasoning. Unlike general question answering, cybersecurity tasks require models to combine code understanding, vulnerability mechanics analysis, contextual reasoning, and evidence verification. As a result, performance in promotional demonstrations does not necessarily represent effectiveness in real security workflows.
Recently, a security technology organization published a large-scale cybersecurity model evaluation. The test consumed inference tokens on the order of tens of billions, selected recently disclosed real vulnerabilities as samples, and ran multiple frontier models repeatedly. The results showed that one model had the highest vulnerability recall after aggregating the results of three runs, identifying 28 of 32 cases. However, its first run hit only 17, and only 10 vulnerabilities were stably found across all three runs. This result is highly representative: the highest recall rate does not equal the most stable production capability.
1. What the Evaluation Actually Tested
Based on public information, the test focused mainly on real vulnerability discovery capability. Its basic design included the following:
- Selecting 32 recently disclosed real vulnerabilities;
- Drawing samples from real codebases rather than exercises constructed specifically for models;
- Running each model three times on each case;
- Allowing a maximum of 30 exploration rounds per run;
- Prohibiting internet access during model runs;
- Tracking single-run hits, three-run aggregate hits, and consistency across repeated runs.
This test design is closer to real work than simply asking a model whether a piece of code contains a vulnerability. Real vulnerabilities are often hidden in complex call chains, configuration combinations, permission boundaries, or abnormal state transitions. The model must not only point out suspicious code but also explain trigger conditions, impact scope, and verifiable evidence.
Prohibiting internet access also has a specific purpose. It reduces the possibility that the model directly retrieves public vulnerability descriptions or repeats existing articles, making the setting closer to “only source code and runtime context are provided, and the model performs its own analysis.” However, this also biases the results toward pure static reasoning capability and cannot fully represent a model’s overall performance after it is connected to vulnerability databases, code search systems, and dynamic testing environments.
2. Why Aggregate Recall Can Exceed Single-Run Performance
If the same case is analyzed three times and the vulnerability is found in any one of the runs, it counts as an aggregate hit. Therefore, aggregate recall measures a model’s potential discovery capability after multiple attempts, not its ability to reach a correct conclusion in a single call.
A simple example illustrates this:
- The first run finds vulnerability A;
- The second run finds vulnerability B;
- The third run finds vulnerability C;
- After merging the three results, the model appears to have found three issues.
In actual production, however, security teams usually care more about whether the first run can promptly identify high-risk issues. If every vulnerability requires multiple model calls to improve the hit rate, this introduces extra cost and increases the complexity of result merging, deduplication, and human judgment.
Therefore, it is advisable to observe at least three types of metrics together:
1. Single-Run Recall
Single-run recall indicates how many real vulnerabilities a model can find in one run and is suitable for measuring immediate detection capability. It directly affects the efficiency of commit checks, merge request reviews, and continuous integration workflows.
2. Multi-Run Aggregate Recall
Multi-run aggregate recall indicates how many target vulnerabilities can be covered at most through repeated calls or multi-agent collaboration. It is better suited to evaluating the upper-bound capability of a model as a “deep audit assistant.”
3. Stable Hit Rate
Stable hit rate can be defined as the proportion of vulnerabilities that can be found in all independent runs relative to all vulnerabilities. This metric reflects whether model output is reproducible.
For production security, stable hit rate is often more informative than the highest aggregate recall. A model that occasionally finds complex vulnerabilities but usually cannot reproduce its conclusions still requires substantial human review.
3. Why Cybersecurity Model Results Fluctuate
Large model output is probabilistic, and fluctuation in cybersecurity analysis usually comes from the following factors.
Different Contextual Focus
The same piece of code may contain permission checks, input parsing, database access, and exception handling at the same time. The model may focus on different paths in each run, perhaps emphasizing input validation in the first run and permission boundaries in the second, leading to different conclusions.
Randomness in Exploration Paths
Complex vulnerabilities often require tracing multiple functions in sequence, sometimes across multiple modules. If the model does not continue tracing at a certain step, the subsequent vulnerability chain may be interrupted.
Indirect Vulnerability Evidence
Some issues are not single-line code errors but combinations of failed security assumptions. For example, an endpoint may have no obvious flaw by itself, but when identity verification, object permissions, and cache logic simultaneously meet specific conditions, an access control risk arises. The model may identify part of the risk without completing a full proof.
Inconsistent Output Criteria
Some runs record a “potential risk” as a finding, while other runs report it only when trigger conditions can be provided. Without unified adjudication rules, both recall and precision may be overestimated.
4. Recall Alone Is Not Enough
Recall is only one part of security model evaluation. A complete assessment should include at least the following dimensions.
Precision and False Positive Rate
Finding more issues does not necessarily mean better results. If a large amount of normal code is flagged as high risk, development teams will experience alert fatigue and ultimately lose trust in the model.
Severity Judgment Capability
A model must not only find vulnerabilities but also judge their real impact. If a low-risk configuration issue is misjudged as a critical permission bypass, remediation resources will be misallocated. Conversely, underestimating a vulnerability that truly affects sensitive data can also have serious consequences.
Evidence Completeness
A high-quality security conclusion should include at least:
- The code location of the risk;
- The controllable input or attack entry point;
- The preconditions required to trigger the vulnerability;
- The possible impact;
- The recommended remediation direction;
- The test approach used to verify the conclusion.
A conclusion without evidence is difficult to feed into a formal vulnerability management process.
Result Consistency
If the same code is analyzed repeatedly under the same conditions and the conclusions change frequently, the model is not suitable for directly blocking releases. Enterprises can use multiple sampling, result voting, or rule validation to reduce the impact of randomness.
Cost and Latency
Deep reasoning usually means longer response times and higher token consumption. For pre-commit checks, teams may value second-level responses; for overnight full audits, longer times and higher costs may be acceptable.
5. Designing More Reliable Enterprise Evaluation
Enterprises should not directly copy public leaderboards. Instead, they should build test sets that fit their own code and business characteristics.
The first step is to build layered samples. Samples can cover categories such as injection issues, authentication, access control, sensitive data exposure, deserialization, path handling, dependency risk, and cloud resource configuration, while distinguishing simple vulnerabilities from cross-module complex vulnerabilities.
The second step is to establish a human gold standard. Each case should be independently confirmed by at least two experienced security personnel, recording the vulnerability location, trigger conditions, severity level, and acceptable equivalent answers. For disputed cases, the discussion process should be retained to avoid using uncertain samples directly for ranking.
The third step is to adopt repeated runs. It is recommended to run each case at least three to five times and record first-run hits, final aggregate hits, and stable hits separately. Do not save only the final answer; also save the model’s analysis trace, evidence references, and remediation suggestions.
The fourth step is to simulate real workflows. Testing should include constraints from actual engineering, such as code size, module dependencies, permission boundaries, build logs, and historical remediation records. Only under conditions close to production do evaluation results have decision-making value.
The fifth step is to include human cost metrics. Evaluators need to measure the review time per alert, the proportion of duplicate issues, the number of false positives, and the actionability of remediation suggestions. If the compute cost saved by the model ultimately turns into more manual screening work, it cannot be considered a real efficiency gain.
6. Recommended Deployment Architecture
In engineering practice, large models are better suited to a collaborative approach involving rules, static analysis, dynamic validation, and human review, rather than independently taking on all detection tasks.
The workflow can be divided into four layers:
- Rules and Static Analysis Layer: Quickly identify syntax patterns, dangerous functions, and known configuration issues;
- LLM Reasoning Layer: Understand business context and supplement cross-file analysis and vulnerability cause explanations;
- Validation Layer: Verify key conclusions through test cases, sandboxes, or dynamic execution;
- Human Decision Layer: Confirm risk levels, remediation priorities, and whether to block releases.
For automation strategy, model output can be divided into three categories:
- High confidence with complete evidence: enter the priority remediation queue;
- Clear risk but insufficient evidence: arrange human review;
- Speculative description only: use as informational context and do not directly block the pipeline.
This tiering prevents model uncertainty from being passed directly into the development process.
7. How to Correctly Interpret This Test Result
The most important value of this type of evaluation is not to prove that a certain model is “absolutely the best,” but to reveal several realistic characteristics of cybersecurity model capability.
First, the gap between frontier models is narrowing. Some lower-cost models are already approaching the vulnerability recall performance of high-end models, so enterprise selection should not rely only on brand or parameter scale.
Second, model capability is clearly task-dependent. A model that performs well in code vulnerability discovery is not necessarily good at incident response, log tracing, or security policy generation.
Third, repeated runs can improve coverage, but they also amplify cost and result governance issues. Enterprises must balance accuracy, stability, latency, and budget.
Fourth, public benchmarks cannot replace internal validation. Different organizations vary greatly in programming languages, business architecture, code quality, and vulnerability distribution. External rankings can only serve as an initial screening reference.
Overall, the evaluation criteria for cybersecurity large models are gradually shifting from “can it find issues” to “can it find issues stably, with low false positives, explainably, and verifiably.” For enterprises, the most reasonable approach is not to chase first place on a single leaderboard but to build their own vulnerability sample library and continuous evaluation mechanism, positioning large models as augmentation tools for security engineers. Only when model conclusions are supported by evidence, consumable by workflows, and later verified does high recall truly have production value.
