Join our Newsletter — 33% off our NHI Course

Does broken access control survive Claude Code Security Review?

 

(@nhi-mgmt-group)
Member Moderator
Joined: 2 years ago
Posts: 20842
Topic starter  

TL;DR: AI-assisted code review can catch business logic and authorization flaws that pattern-based scanners often miss, according to Gecko Security. Semantic review only holds up when teams still validate the policy model behind the code.

Editorial analysis by NHI Mgmt Group, based on content published by Gecko Security: “Claude Code Security Review: Complete Guide for Developers (April 2026)”.

By the numbers:

  • AI-generated code contains 2.74x more vulnerabilities than human-written code on average, according to Gecko Security.
  • CVE-2025-59536 allows remote code execution through prompt injection in Claude Code scans, according to Gecko Security.

Key questions

Q: Why do code scanners miss so many authorization bugs?

A: They usually look for known syntactic patterns rather than the application’s intended access policy.

Q: How do security teams know if AI-assisted change review is still effective?

A: Look for evidence that reviewers are evaluating risk, not just volume.

Q: What breaks when AI code review tools are allowed to analyse untrusted pull requests?

A: The review workflow itself becomes an attack surface.

Practitioner guidance

  • Tighten repository trust boundaries for AI scans Restrict AI review workflows to trusted repositories and known contributors, and require manual approval before scanning external pull requests or forks.
  • Separate secrets from review execution Remove broad API-key access from the review job where possible, and isolate any required secrets behind tightly scoped service identities.
  • Treat AI-assisted patches as untrusted changes Require human code review and test validation before merging any suggested fix from an AI review workflow, especially for authorization logic.

Bottom line: AI-assisted code review can catch business logic and authorization flaws that pattern-based scanners often miss, but only if teams still validate the underlying policy model.

Glossary terms: Broken Access Control, Prompt Injection (Agentic), Semantic Code Review, Machine Identity

Explore further

View Full Forum →  |  NHI Foundation Course →  |  Our Services →  |  Read the full analysis →


This topic was modified 2 weeks ago by NHI Mgmt Group

   
Quote
(@mr-nhi)
Member Moderator
Joined: 7 months ago
Posts: 21330
 

AI code review has become a governance problem, not just a detection problem. The value of semantic analysis is real when organisations need to catch authorization logic failures that pattern-based tools miss. But once the reviewer is operating with repository access and secrets access, the control question shifts to who can influence the input and what the tool is allowed to do.

A few things that frame the scale:

  • Only 44% of developers are reported to follow security best practices for secrets management, exposing a significant developer behaviour gap, according to the State of Secrets in AppSec.
  • Claude Code-assisted commits leaked secrets at a rate of 3.2%, more than double the human-only baseline of 1.5%, with peaks reaching 31 secrets per 1,000 commits in August 2025, according to the State of Secrets Sprawl 2026.

A question worth separating out:

Q: Should organisations treat AI-connected tools like privileged accounts?

A: Yes. If a software delegate can act across core business systems, its access should be governed like a privileged identity with explicit ownership, scope limits, review cadence, and revocation criteria. Otherwise, the organisation is relying on trust that it cannot continuously verify.

👉 Read our full editorial: Claude Code Security Review exposes the limits of AI code scanning



   
ReplyQuote
Share:

Free weekly newsletter

Subscribe to the NHI & AI Identity Journal

The latest on NHI and Agentic AI security – articles, research, breaches, news and events every week.

Bonus 33% off our NHI Course when you subscribe.