TRANSMISSION // 2612.05531v1
When AI sees a security check but misses the bypass
Source published
SteelYourHeart tests whether language models notice when a security check can be bypassed. Its results show how verdicts and patch reviews can hide mistakes.

A security check can look reassuring and still leave a route around it. SteelYourHeart tests whether language models examine whether a guard works—not just whether they label code vulnerable. The results suggest that a verdict alone can hide important mistakes.
A security check is only useful if it blocks the unsafe behavior it is meant to prevent. Yet code can contain a guard—such as a check on a file path—and still let a carefully chosen input slip through. A language model reviewing that code might see the guard and assume the problem is solved without testing how it could be bypassed.
The study behind SteelYourHeart asks whether language models can spot these incomplete fixes, and whether they can explain what is wrong. The distinction matters: a model might label code vulnerable for the right reason, give the right verdict without identifying the relevant flaw, or approve code because it mistakes a visible check for an effective one.
Testing code after an incomplete fix
The researchers built a benchmark of 195 incomplete security fixes from 136 repositories. In each case, an initial patch attempted to fix a vulnerability, but a later advisory reported a bypass. A follow-up patch, which could come after intervening revisions, closed at least one documented bypass. The benchmark gives models code from after the initial patch, along with a vulnerability class. It does not show them the later patch or advisory.
The team manually checked that the supplied code excerpts contained enough information to verify a documented bypass. The bypass could involve code paths or entry points that the initial patch had not changed. This design focuses on a specific stage of security work: assessing code once relevant parts have already been collected. It does not test whether a model can find vulnerable code across an entire repository.
Four language models answered the same cases in two settings. In detection, each model judged whether the code remained exploitable and explained why. In patch review, it saw the initial patch as a proposed fix as well as the code that followed it. The researchers counted an answer as correct only when it both flagged the code as exploitable and described a bypass addressed by the follow-up patch. They also compared this measure with scoring based on the verdict alone.
A correct verdict is not always a supported finding
In detection, the models’ explanation-aware correct rates ranged from 36.4% to 71.3%. Scoring only the verdict made those rates appear 7.7 to 23.6 percentage points higher. That gap represents answers that said “exploitable” but did not give an explanation matching a documented bypass. A matching explanation matters: a correct verdict by itself does not show that the model identified the failure the later patch addressed.
The researchers also examined false acceptances: cases where a model said the code was not exploitable. In 74 of 223 such answers, the explanation discussed the guard but did not assess whether it could be bypassed. The authors call this pattern the “shortcut.” This is a label assigned by researchers to the answer’s explanation; it does not establish what reasoning happened internally. Other false acceptances included answers that assessed the guard but found no bypass, or described a reference bypass and then dismissed it. The task did not specify a threat model, leaving models to make their own judgments about whether a bypass mattered.
Patch review improved explanation-aware scores: rates ranged from 65.6% to 77.9%. But higher overall scores did not mean every judgment became more reliable. Among 421 model–case pairs with a correct detection answer, 22 became false acceptances in patch review for the same model and case. A model could identify a documented flaw in one setting and approve the incomplete fix when shown its patch.
What the results do—and do not—show
SteelYourHeart tests whether explanations match specific, documented bypasses. Its scores are not a complete count of every vulnerability a model might find: a real flaw outside the reference bypasses could be counted as a “wrong reason.” The authors therefore describe the correct rates as a lower bound on how often a model finds an exploitable flaw. Conversely, every benchmark case was vulnerable, so the study could not measure false alarms on safe code.
Language models helped select code excerpts and draft reference bypass reasons, which the researchers manually validated. Another model judged whether evaluated models’ explanations matched those references. The authors manually spot-checked some judge decisions, but independent human agreement with the judge was not measured.
The benchmark uses public advisories and code slices where a bypass can be verified within bounded code. It does not measure repository-wide searching, and its inclusion rules exclude some fixes spread across multiple commits or bypasses requiring information beyond the supplied code. Older advisories were easier for every evaluated model; possible prior exposure is one explanation, but the association does not establish that training exposure caused the difference.
The practical message is not that language models cannot help with security review. It is that a verdict or patch approval is not proof that a guard works. Reviewers still need to check whether the intended security property holds and whether another path reaches the protected operation. SteelYourHeart is an arXiv preprint, so its findings should be read as a benchmark study with a defined scope and evaluation limits—not as a final measure of all security-review systems.
- large language models
- software security
- vulnerability detection
- patch review
- security benchmarks
- incomplete fixes
Reviewed cross-references
These connections were reviewed by a model, not independently fact-checked by a human. Similarity does not imply agreement; consult the original papers and the evidence below.
Can LLMs Find Vulnerabilities for the Right Reasons?
Supporting evidence: Both studies caution against treating a vulnerability verdict as sufficient evidence of sound analysis: SteelYourHeart finds that verdict-only scoring exceeds explanation-aware detection rates, while Zhang and Chen test fault localization and dependence on execution-derived evidence. The results support this bounded evaluation concern, not a direct performance comparison: the benchmarks, tasks, languages, and evidence criteria differ.
Model review: · openai-codex/gpt-6-luna
Evidence and provenance
Selected excerpts, not complete papers. PDF extraction can omit figures or damage equations, tables and reading order; sources may be preprints.
2612.05531v1 — Original paper
Excerpt reference:
static/papers/2612.05531v1.md:13-71
Basis: Paper text
Source file SHA-256:7edf6218a28294490197bca6d28880c885faa3aca6a133a2537be821252df86b2611.28584v1 — Original paper
Excerpt reference:
static/papers/2611.28584v1.md:13-68
Basis: Paper text
Source file SHA-256:456c817c108f7d912399a1328bfc7ad748de4de452d7eb3ff6ed6182e1c81574
Related reading
Automatically matched by shared topic keywords. These links do not imply that the sources agree or establish a consensus.
Can LLMs Find Vulnerabilities for the Right Reasons?
Source published
Shared keywords: large language models, software security, vulnerability detection
Why AI vulnerability hunters keep finding bugs after they’re fixed
Source published
Shared keywords: software security, vulnerability detection
AI Agents Have More Than One Weak Spot
Source published
Shared keywords: large language models, security benchmarks
How Well Can AI Localize Vulnerable Code?
Source published
Shared keywords: large language models, software security
RustMizan tests how well AI agents find Rust vulnerabilities
Source published
Shared keywords: large language models