Skip to main content
Fundamentals

Is Claude Code enough to run a pentest?

A code assistant can look for defects. It cannot choose the business risk, attack mandate or evidence your decision requires on its own.

Let us be provocative. If your only objective is to find more defects in code, open an assistant such as Claude Code and start reviewing. These tools are powerful and useful. The problem begins when that capability is confused with a complete, authorised pentest driven by business risks.

Reading code is only part of the terrain

An assistant can explain a function, flag a fragile check or propose a test. Anthropic describes Claude Code Security as able to search for vulnerabilities, reason about exploitability and suggest fixes for human approval. A real application also includes identities, roles, data, third-party services, configurations and runtime behaviour. Some flaws appear only through a sequence of user journeys. Operational context does not fit inside a Git repository.

The right question comes before the right prompt

Asking “find vulnerabilities” naturally pushes towards volume. Asking “can one partner reach another partner’s contracts?” defines a consequence, actors and a boundary to verify. That question comes from understanding the asset’s role and business risk. AI can then accelerate how tests are designed and executed, but it should not decide by itself what the organisation is willing to risk.

A pentest is also a mandate and a chain of evidence

Testing a live system requires an authorised scope, rules of engagement and non-destructive limits. Results must preserve what is needed for reproduction, distinguish observations from hypotheses and state what was not tested. A conversation excerpt from an assistant replaces neither that evidence chain nor the responsibility of the team interpreting the result.

Use AI where it creates real value

The useful divide is not human versus AI. Business analysis sets the target. Agents accelerate exploration and scenario execution. Evidence enables remediation. The risk owner decides what remains open. Teams must still review assumptions, respect the authorised boundary and record uncertainty when a scenario cannot be completed. AI increases testing capacity; the method keeps that capacity from becoming another alert factory.

Use code assistants to explore and understand. To decide what directly threatens the business, start with risk, test under a mandate and demand evidence tied to a business consequence.

Sources and reading method


Try on your scope