Put Scope Visibility in the Release Path

Shahar Man 5 min read

An agent usually meets security after it has already shipped. The platform team builds it, attaches the systems it needs, and deploys. Security hears about it when a scope question comes up, when something goes wrong, or when a compliance review lands months later. By then the agent has been running on whatever credentials it got at setup, and changing the access model carries real cost because workflows now lean on it.

Moving visibility earlier is less about adding a review stage than about treating the scope declaration as part of the release artifact. Three questions, answered before production wiring, do most of the work.

Why the Check Arrives Late

The delay is structural. The team building the agent optimizes for function: does the task complete correctly? Security is a different function with a different queue, and the handoff between them is undefined for AI agents in most organizations, simply because the practice is new.

What follows is either no review at all or a review in name. A ticket gets opened, someone notes the credential, and it closes approved without anyone checking whether the credential's reach matches what the agent does.

Tooling adds to it. Static analyzers read code patterns; dependency scanners match known library flaws. Neither produces a map showing which MCP servers an agent calls and what those servers can reach. The missing tooling reinforces the missing process.

Three Questions Before Wiring

The check does not need to be exhaustive. Three answers surface most of what matters:

What credential does this agent run under, and what does it actually claim? Not the intention behind it; the current token or service account state. Those often differ, because credentials get reused from earlier configurations instead of minted for the new agent.

Which MCP servers does it connect to, and what tools do they declare? The manifest is a structured account of what the agent can do through each server. Reading it takes minutes and shows where declared capability overshoots the agent's purpose.

What sits downstream of those servers, and does the task justify that reach? A ticket summarizer has no business writing to the ticketing system. A report generator needs no key to APIs its design never mentions. Answering means following the chain from agent to server to system.

All three fit inside the time a routine code review takes. Their rarity comes from the lack of a step that puts them in front of every deployment, not from difficulty.

Putting the Check in the Workflow

A workable start is to require a scope declaration in the deployment configuration: which credential the agent runs under, which MCP servers it connects to, and the intended permission for each connection.

Automation can wait. A structured comment in the manifest, a pull request checklist entry, a required field in the deployment ticket: any of these makes the question explicit while the change is still open. The point is to answer it before the agent goes live rather than leave it implicit.

Once the declaration exists, it can be verified mechanically. Does the real credential scope match the declared one? Do the server connections in the file match the ones in the running config? Where does claimed need diverge from actual permission?

That verification needs tooling able to read agent config, resolve credential claims and compare both against the declaration. It does not have to be bespoke per organization, but it does have to exist. For many teams today, it doesn't yet.

What the Record Buys You

The output is a scope record: what the agent was authorized to do on the day it shipped, checked against its credential claims. Two things follow.

It gives drift a baseline. If permissions shift afterward, through credential edits or server config changes, the difference is measurable against the record. Without it, drift has nothing to show against.

It shortens incident response. When an agent behaves oddly, the record answers what it was authorized to do, with no slow reconstruction of a deployment configuration from months back. That work is error-prone even when the details are still available.

Pre-ship review will not stop every agent incident. An agent can be scoped correctly at launch and see its access expanded later. The record will not prevent that. What it does is let the team notice, instead of finding out during an incident.

Back to Security Brief