TL;DR: Claude Code Security Review uses LLM reasoning to catch business logic flaws, broken access control, and cross-service authorization gaps that traditional SAST often misses, while also introducing new prompt-injection risks in privileged review workflows, according to Gecko Security. The practical question is not whether AI review works, but where semantic analysis, manual validation, and repository trust boundaries must still separate signal from exposure.
NHIMG editorial — based on content published by Gecko Security: Claude Code Security Review and the limits of AI code scanning
By the numbers:
- AI-generated code contains 2.74x more vulnerabilities than human-written code on average.
- CVE-2025-59536 allows remote code execution through prompt injection in Claude Code scans.
Questions worth separating out
Q: What breaks when AI code review tools are allowed to analyse untrusted pull requests?
A: The review workflow itself becomes an attack surface.
Q: Why do AI-generated codebases create more security risk for authorization controls?
A: AI-generated code often looks functionally correct while missing the security context needed to enforce permissions properly.
Q: How do security teams know whether semantic code analysis is actually working?
A: Look for findings that map to real execution paths, cross-service trust boundaries, and business logic errors that pattern scanners miss.
Practitioner guidance
- Test authorization logic across execution paths Add review cases for gateway-only checks, downstream service validation, and alternate routes that may bypass intended permission enforcement.
- Constrain AI review workflows to trusted inputs Restrict automated code review to repositories and pull requests you trust, require manual approval for external contributions, and block scans on forks where adversaries control repository content.
- Treat AI scanners as privileged systems Limit API key exposure, narrow repository read scope, and separate security-review permissions from broader CI/CD privileges so the scanner cannot access more than it needs to analyse code.
What's in the full article
Gecko Security's full post covers the operational detail this analysis intentionally leaves for the source:
- Step-by-step setup for Claude Code Security Review in terminal and GitHub Actions workflows.
- Configuration examples for severity thresholds, file exclusions, and scan timing in CI/CD.
- Limitations and exploitability notes for prompt injection and API key exposure scenarios.
- Side-by-side examples showing how the tool reasons about business logic flaws across code paths.
👉 Read Gecko Security's analysis of Claude Code Security Review and business logic flaws →
Claude Code Security Review and broken access control: are your controls keeping up?
Explore further
Broken access control is now a semantic governance problem, not just an application bug. Pattern-based scanners can spot missing decorators and obvious injection strings, but they cannot determine whether a policy decision is correct across every execution path. That is why authorization flaws survive even in teams with mature tooling. For IAM and PAM practitioners, the lesson is that access logic needs contextual validation across gateway, service, and data layers, not just static code checks.
A few things that frame the scale:
- Broken access control affects 100% of tested apps, according to LLMjacking: How Attackers Hijack AI Using Compromised NHIs.
- AI-generated code contains 2.74x more vulnerabilities than human-written code on average, according to LLMjacking: How Attackers Hijack AI Using Compromised NHIs.
A question worth separating out:
Q: Who is accountable when an AI security scanner exposes secrets or approves unsafe fixes?
A: Accountability stays with the organisation operating the workflow. The scanner is a privileged automation system, so teams need clear ownership for repository trust rules, approval gates, credential scope, and remediation validation. Security, engineering, and platform owners should share governance, but responsibility cannot be outsourced to the tool.
👉 Read our full editorial: Claude Code Security Review exposes the limits of AI code scanning