TL;DR: A static code-review layer can flag vulnerabilities and suggest patches, but it cannot attack a live application, prove exploitability, or chain findings into account takeover, according to MindFort. That boundary still matters because runtime validation remains the only way to confirm whether code defects become real security exposure.
NHIMG editorial — based on content published by MindFort: Can Claude Security Pen-Test?
Questions worth separating out
Q: How should security teams combine code review and penetration testing?
A: Use code review to find likely defects early, then use penetration testing to confirm whether those defects are exploitable in the deployed system.
Q: Why do static findings often overstate or understate real risk?
A: Static findings are disconnected from runtime state, so they can flag patterns that never become exploitable or miss flaws that only emerge after deployment.
Q: What do teams get wrong about AI code review and security gates?
A: Many teams assume human review can reliably catch dangerous AI output if they add it to existing workflows.
Practitioner guidance
- Separate code findings from exploit findings Classify static review output as candidate risk, then require live validation before elevating a defect to a confirmed control failure.
- Add runtime checks for identity-sensitive paths Prioritise endpoints that handle tokens, service accounts, authorization decisions, or delegated access, because those controls can only be tested in execution.
- Chain SAST with DAST or pen testing Use static review to find likely flaws, then test the same paths in a deployed environment to confirm exploitability and business impact.
What's in the full article
MindFort's full blog covers the operational detail this post intentionally leaves for the source:
- How Claude Code Security is wired into a /security-review workflow and GitHub Action
- Examples of the vulnerability classes MindFort says Claude can and cannot surface in practice
- The specific runtime testing gaps that separate static review from penetration testing
- MindFort's own comparison of AI-assisted review versus deployed-system validation
👉 Read MindFort's analysis of why Claude Code Security is not a penetration test →
Claude Code Security vs pen testing: where the boundary still holds?
Explore further