Use the model’s reasoning where it helps.
An LLM can read code, explain unfamiliar logic, propose attack hypotheses, and suggest a correction. Those capabilities are useful in security review. The important distinction is between a reasoned suggestion and a conclusion tied to the application’s actual behavior.
A fluent explanation can be wrong about which handler runs, what a shared helper checks, or whether an input reaches a sensitive operation. It can also miss a real issue that depends on relationships across files. The problem is not simply the model’s intelligence; it is the context and evidence available for the question being asked.
The missing fact can change the conclusion.
Suppose a model sees a record lookup by ID. It may flag missing authorization without seeing an earlier tenant restriction. In another case, it may assume a familiar helper enforces ownership even though that helper only checks sign-in. The visible code fragment is the same size, but the correct conclusions differ.
Galen supplies source-backed context around the path, data, and controls. That allows an AI reviewer to work from a defined security question rather than infer the whole application from a few disconnected files.
| Review question | A plausible explanation | Evidence needed |
|---|---|---|
| Can this actor reach the operation? | The route appears exposed. | The actual entry point, call path, and applicable guards. |
| Is the value unsafe here? | The input looks suspicious. | Its origin, transformations, and use at the sensitive operation. |
| Is the patch sufficient? | The added check looks reasonable. | The corrected path and whether the intended restriction governs it. |
Establish the claim separately from the explanation.
Galen’s deterministic analysis derives findings from retained code facts and checks the derivation behind emitted findings. The evidence is the basis for the conclusion; model-generated prose helps a developer understand it.
That does not mean every application behavior is covered or every security question is settled statically. Coverage and evidence gaps still matter. A reviewer should be able to distinguish the code-supported conclusion from an assumption about runtime configuration or business intent.
Better evidence can improve both discovery and precision: it can reveal a relationship an isolated review missed, and it can show that a suspected issue is already blocked by the relevant control.
Give the agent a task it can verify.
Instead of “review this whole repository,” give the agent the affected route, the relevant data flow, the expected control, and the evidence behind the finding. Ask it to explain the issue or propose a correction within that context.
Then review the change and recheck the original path. A second model agreeing with the first can be useful critique, but agreement alone is not evidence that the path is exploitable or that the patch closes it.
The same rule applies to one model, a team of agents, or a manual reviewer: preserve the facts that make the security decision understandable.