TL;DR: AI can accelerate secure development lifecycle review, but it still overstated severity in 46% of cases and missed a known WebAuthn flaw, according to Yubico’s experience using Claude Code and Codex Security across 29 repositories. The finding is not that AI is unreliable, but that it needs tight task boundaries, human triage, and governance around refusal handling and validation depth.
At a glance
What this is: This is an independent analysis of Yubico’s AI-assisted security assessment workflow, which found that narrow prompts, multi-stage orchestration, and human triage improved review quality but did not eliminate misses or overstatements.
Why it matters: It matters because teams using AI in secure development and security review need to govern model scope, validation, and escalation paths before trusting the output in production workflows.
By the numbers:
- Yubico said its assessment covered 29 repositories across its open source software portfolio.
- Human triage downgraded approximately 46% of the AI-generated cases, most commonly from High to Medium.
- The assessment ultimately produced 448 verified findings with only a handful of false positives.
- Yubico estimated the review took four weeks and about $3,000 in direct model-usage costs.
👉 Read Yubico's analysis of AI-assisted security review in the secure development lifecycle
Context
AI-assisted code review is not the same as automated assurance. The core governance problem is that models can accelerate analysis while still producing severity inflation, incomplete reasoning, and refusal behaviour that blocks defensive validation. In secure development lifecycle work, that creates a new control question: how do teams use AI to expand review capacity without mistaking model output for verified judgment?
Yubico’s experience is useful because it sits at the intersection of application security, secure development, and identity-adjacent trust controls such as WebAuthn. The article shows a pragmatic adoption pattern rather than a fully automated one, which is closer to where most enterprise programmes are likely to land. That makes it a representative case for teams evaluating how AI should fit into code analysis, triage, and defensive validation workflows.
Key questions
Q: How should security teams use AI-assisted code review safely?
A: Use it as a triage layer that accelerates first-pass detection, then require a separate validation step for findings that affect access control, authentication, secrets, or release gating. The safest pattern is hybrid review, where deterministic analysis and human judgement backstop the model’s reasoning.
Q: Why do AI-assisted security reviews still need human triage?
A: Because the model can misread context, inflate severity, or miss compound weaknesses that only become meaningful when combined. Human triage validates exploitability, checks source code evidence, and separates useful signals from probabilistic noise. Without that layer, teams can end up remediating the loudest findings instead of the most dangerous ones.
Q: What breaks when AI tools refuse to analyse attack chains?
A: The review process loses visibility into how small weaknesses combine into a higher-impact exploit. That matters because many real vulnerabilities are only dangerous when chained. If a model refuses that analysis, defenders may falsely conclude the code is safer than it is, or they may miss the control gap that matters most.
Q: How should organisations govern AI-assisted development in secure pipelines?
A: They should treat AI-assisted coding as a controlled workflow with explicit owners, enforced policy checks, and measurable outcomes. Put controls in the IDE, pull request, and CI/CD stages, then monitor whether remediation time, flaw density, and exception rates improve. Governance should focus on who approved the change and what policy prevented unsafe code from merging.
Technical breakdown
How multi-stage prompting changes AI code review quality
Multi-stage prompting breaks a broad task into smaller, inspectable steps. In security review, that matters because a single expansive prompt tends to produce shallow findings, inconsistent reasoning, and higher drift when the model is asked to infer context across a large codebase. By splitting the work into staged analysis, validation, and presentation, teams can constrain the model to narrower goals and make intermediate outputs reviewable. The trade-off is orchestration overhead. The model becomes more governable, but only if humans define the task boundaries and interpret the results rather than accepting the output as authoritative.
Practical implication: security teams should treat prompt design as a control surface and require intermediate review points before findings move into triage.
Why AI security tooling still needs human triage and severity calibration
Model outputs often reflect probabilistic confidence, not operational impact. That means security tools can overstate severity, especially when they infer exploitability from incomplete context or when the surrounding code suggests a stronger attack chain than the evidence supports. Human triage remains essential because reviewers can validate source code, confirm exploit paths, and downgrade findings that look severe in isolation but are weak in practice. This is especially important in secure development workflows, where false urgency can distort remediation queues and waste scarce engineering time.
Practical implication: teams should require human severity calibration before AI-generated findings are accepted into vulnerability backlogs.
AI refusal behaviour becomes a governance issue in defensive validation
General-purpose models often include safeguards designed to reduce harmful use, but those same safeguards can interfere with authorised defensive testing. When a model refuses to analyse multi-step attack chains or refuses to combine lower-severity weaknesses into a higher-impact scenario, the security team loses visibility into real risk composition. That is not just a usability issue. It is a governance issue because the organisation may believe it has tested a control path when the model has actually stopped short of the question that matters most.
Practical implication: organisations should document which defensive validation scenarios require elevated model access or specialised tooling to avoid incomplete review.
Threat narrative
Attacker objective: The practical attacker objective is to exploit weakly validated code paths that AI-assisted review failed to surface or correctly prioritise.
- Entry occurs through over-trusted AI-assisted review workflows that are asked to analyse source code and infer attack chains without sufficient task scoping.
- Escalation happens when model refusals, shallow outputs, or severity inflation distort the security team’s understanding of exploitable conditions.
- Impact is a review process that misses higher-impact flaws or misallocates remediation effort, weakening secure development decision-making.
NHI Mgmt Group analysis
AI-assisted security review is becoming a governance problem, not just a productivity upgrade. The central issue is not whether models can help find defects, but whether organisations can define the boundaries of trust around what the model is allowed to infer, refuse, and prioritise. In practice, the control failure is often not model performance alone, but the absence of a clear validation model for AI-generated security evidence. Practitioner conclusion: if the output changes risk decisions, it needs governance as well as automation.
Severity inflation is the hidden operational risk in AI-driven code review. A model that overstates High findings creates remediation noise, distracts engineering teams, and can delay attention on genuinely exploitable issues. That is a control-quality problem because the review queue becomes contaminated by probabilistic judgment presented as near-certainty. Practitioner conclusion: severity calibration must be treated as part of the control, not a downstream cleanup step.
AI refusal behaviour can obscure the most important part of defensive validation. If a system refuses multi-step reasoning or attack-chain synthesis, it may still look compliant while failing the exact test the team needed. That creates a verification gap that is especially relevant in secure development and identity-adjacent analysis such as WebAuthn. Practitioner conclusion: authorised defensive workflows need explicit exception handling for refusal-prone scenarios.
Task scoping is the named concept that matters here: narrow-goal review integrity. The article shows that models perform better when constrained to explicit stages, specific threat models, and bounded review objectives. This is not about making the model smarter in the abstract. It is about making the security decision more legible and auditable. Practitioner conclusion: design AI review workflows around bounded tasks, then measure whether the bounds improve signal quality.
In identity-adjacent security analysis, the AI review gap is compounded by protocol complexity. The WebAuthn example shows that where authentication flows and security guarantees are subtle, AI assistance can miss the nuanced failure conditions that matter most. That means identity teams cannot outsource protocol assurance to general-purpose models. Practitioner conclusion: keep identity-protocol review under explicit human control even when AI accelerates the first pass.
What this signals
Narrow-goal review integrity: AI-assisted security analysis becomes materially more reliable when the workflow forces explicit stages, evidence capture, and human calibration. That matters for identity-adjacent assurance work because protocol-level errors are rarely obvious in a single pass, and the organisation needs a review structure that can surface nuance rather than compress it. Teams should align this pattern with the NIST Cybersecurity Framework 2.0 and keep authentication-sensitive analysis anchored in human judgment.
The programme implication is clear: AI can raise throughput, but it also changes where failure occurs, from missed analyst capacity to ungoverned model judgment. Security leaders should watch for refusal patterns, overconfident severity output, and drift between the model’s first-pass view and the final engineering decision. When those gaps appear, the right response is tighter task scoping, not broader trust.
Identity teams should pay special attention to review tasks that touch WebAuthn, authentication flows, or delegated access, because those cases blend application logic with trust assumptions that models can under-appreciate. The operational lesson is to keep AI inside a controlled validation lane and let the human reviewer own the final decision on impact.
For practitioners
- Define bounded AI review tasks Break security analysis into narrow stages such as threat modelling, weakness enumeration, and evidence validation so the model is not asked to solve everything at once.
- Calibrate severity before remediation intake Require a human reviewer to validate every High or Critical finding before it enters the vulnerability backlog, especially where the model inferred exploitability from partial context.
- Document refusal-sensitive scenarios Track the review cases where the model refuses multi-step attack-chain analysis or combination testing so those scenarios can be routed to specialised tooling or manual review.
- Keep identity protocol reviews human-led Retain manual verification for authentication flows such as WebAuthn where subtle protocol guarantees and failure conditions are easy for models to miss.
Key takeaways
- AI can speed up code security review, but it does not remove the need for human validation of exploitability and severity.
- The most important failure mode is not false positive volume alone, but refusal behaviour and overconfident model judgment in compound weakness analysis.
- Teams that want measurable value from AI-assisted review need bounded tasks, evidence requirements, and explicit governance around where the model is allowed to decide.
Standards & Framework Alignment
This section maps relevant standards and security frameworks to the operational risks and controls described in this guidance.
NIST AI RMF, NIST CSF 2.0 and NIST SP 800-53 Rev 5 set the technical controls, while ISO/IEC 27001:2022 define the regulatory obligations.
| Framework | Control / Reference | Relevance |
|---|---|---|
| NIST AI RMF | MANAGE | AI-assisted review and refusal handling fit AI risk management controls. |
| NIST CSF 2.0 | PR.IP-1 | The article is about secure development lifecycle integration and validation practices. |
| NIST SP 800-53 Rev 5 | CA-7 | Continuous assessment and calibration are central to model-assisted security review. |
| ISO/IEC 27001:2022 | A.8.25 | Secure development life cycle controls apply to AI-assisted code review workflows. |
Define human review points and model boundaries under MANAGE before relying on AI-generated security findings.
Key terms
- AI-Assisted Security Review: The use of AI systems to help analyse code, identify weaknesses, and summarise security evidence before human validation. It increases analyst throughput, but it does not replace judgment. The workflow only works well when findings are constrained, reviewed, and tied to verifiable source evidence.
- Threshold Calibration: Threshold calibration is the process of setting alert floors and sensitivity levels so a monitoring system flags risk at the right time. In digital asset compliance, weak calibration often appears when indirect flows are tolerated at much higher values than direct flows.
- Refusal Behaviour: The tendency of an AI model to decline requests that it judges risky, harmful, or policy-violating. Refusal is useful in production, but it can limit safety research if the same model is expected to generate the scenarios needed to test itself.
- Multi-Stage Prompting: A prompt design approach that divides a complex task into smaller steps with clearer instructions and separate outputs. In security analysis this improves inspectability and consistency, because each stage can be checked before the model moves on. It is especially useful where broad prompts create drift or shallow conclusions.
What's in the full article
Yubico's full post covers the operational detail this post intentionally leaves for the source:
- How the 1,000-line prompt was structured to constrain threat modelling, weakness enumeration, and evidence capture
- The repository review workflow across 29 codebases, including how two security engineers independently compared outputs
- The specific triage process used to downgrade overcalled findings and consolidate AI-assisted observations
- The control test involving the known WebAuthn issue later published as YSA-2026-02 and what the model missed
Deepen your knowledge
NHI Foundation Level course, the industry's only accredited NHI security programme, covers NHI governance, machine identity security, and secrets management for practitioners who need a stronger control baseline. It helps identity and security teams connect operational review patterns to durable governance decisions.
Published by the NHIMG editorial team on August 26, 2026.
NHI Mgmt Group — the independent authority on Non-Human Identity, IAM, and Agentic AI security. nhimg.org