Resources

ACCESS & AI SYSTEMS / TELHAWK GUIDE

API Authorization Risk

Authentication identifies the caller. Authorization determines which record, field, or action that caller is allowed to reach.

Follow the boundary all the way to the operation.

A signed-in customer should not gain access to another customer’s records by changing an identifier. An administrator-only action should not become available just because a route checks login. A response should not include private fields simply because the caller can view the public profile.

These failures can hide inside working features. The interface may show only the caller’s records, while the backend accepts any record ID. A shared helper may apply an ownership restriction in one route and omit it in another. Reviewing one visible screen does not establish what every reachable endpoint permits.

The central question is concrete: can this actor perform this operation on this resource, under the controls that actually execute? Galen connects the affected paths, data, and guard evidence to make that question inspectable.

The same endpoint can support two different conclusions.

In the example below, the request and record stay the same. Only the control at the lookup changes. That difference determines whether the cross-customer access claim is supported on the illustrated path.

EXPLORE THE EVIDENCEOne endpoint. Two access paths.
REQUESTCustomer A requests invoice BGET /invoices/:id
BACKEND CONTROLCheck sign-in only

The lookup accepts an invoice ID without checking its owner.

Cross-customer record reachable

This illustrated path supports an ownership-control finding.

Interactive illustration only. This is not a live scan, a product interface, or an actual customer finding.

Check the paths a normal interface does not show.

Review reads and writes, exports and bulk actions, background work and administrative routes. Object ownership, role permission, and tenant isolation are separate boundaries. Enforcing one does not automatically establish the others.

For an API review, keep a simple record of the caller, the resource being selected, the operation, the expected restriction, and the point where that restriction is enforced. An API used by an agent or integration needs the same analysis. A tool can run with a broader credential than the person requesting the action.

FOLLOW AUTHORITY THROUGH THE WHOLE CHAIN
01Person

Which customer, role, or tenant is requesting the action?

02Agent

What instructions and untrusted inputs influence its choice?

03Tool or MCP server

Which credential and permissions execute the call?

04API and data

Which backend control enforces the original user’s boundary?

A boundary must be enforced where data is accessed or an action is executed.

Start with the underlying operation rather than the appearance of the user interface. A restriction in a button or prompt is useful guidance, but the backend must still enforce the access decision where the data or action becomes reachable.

A refactor should not silently widen access.

Once your team understands the intended rules, preserve them through change. A new endpoint, renamed helper, or generated serializer can create a new grant, remove a guard, or expose a field that was previously private.

Galen Policy can recover the application’s current access behavior for your team to review and approve. Later checks compare changes with that approved baseline. Existing behavior still needs review before approval: a recovered rule describes what the code allows, not an automatic judgment that the access is safe.

Use Galen Security for a deeper API audit, and Policy for checks during development. Both depend on understanding the actual boundary your application needs to enforce.

PUT THE EVIDENCE TO WORK

Understand the finding.
Make the next decision.

Explore Galen Security Checking code as you build? Explore Policy