How Agent Tokens Collect Permissions

Noam Dekel 6 min read

A token handed to an agent so it can read one customer table usually survives the day that agent learns to write. Nobody revokes it; the new capability is simply added alongside. Read and write now sit in the same credential, and the reason the read-only limit was drawn has quietly stopped meaning anything. Scope creep looks like this: not one reckless grant, but a sequence of sensible ones whose sum nobody ever approved.

Compared with a human service account, an agent picks up additions much faster. A service account might gain a scope or two a year. An agent that takes on a task, another MCP server and a wider input range in one quarter can gain permissions at roughly the cadence of releases. Without a periodic look at the whole, the profile only grows.

How the Grants Pile Up

Wiring an agent to a new system invites the shortest path: give the token what the new task needs, then move on. The engineer adding the integration often cannot see what the token already carries, especially when another team built the agent or the original grant dates from months back.

OAuth scopes, service account roles and API keys all behave this way. A token that began with data:read picks up data:write, then schema:read, then admin:config as the agent takes on more. Every step makes sense where it happens. The total makes sense nowhere, since no single operation calls for all of it.

With MCP servers the pattern moves to the tool layer. The agent's credential store holds the tokens; the server presents the tools. Add more servers and the token set widens across more downstream systems. The manifest keeps describing the same tools while the credential behind them changes, and nothing in the manifest says so.

Why Audit Logs Stay Quiet

Logs show actions, not the gap between what was permitted and what was used. An agent with read and write on a database that only ever reads will produce a log full of reads. No line records a permission that went untouched.

That is what makes creep so hard to spot with standard tooling. Unused reach leaves no evidence until the agent is compromised, receives adversarial input that triggers a write, or hits a logic bug and takes an action the token allows.

So the monitoring question shifts toward latent capability: what could this agent do that it was never meant to be authorized for? Operational logs cannot answer that. A scope inventory can: what is held, set beside what the work actually requires.

Removal Is the Hard Part

Once excess scope is visible, cutting it back is technically easy and politically awkward. A permission that has sat in place for months may be holding something up, and the team that would break the connection is rarely the team that granted it.

The asymmetry keeps the problem fed. Adding scope feels free. Removing it feels like borrowing risk. Cleanup therefore waits for someone to own it, which often means it waits indefinitely.

Swapping a token for a narrower one and confirming operations still run is well understood. The hard part is organizational. Someone has to work out which operations need which permissions, build confidence that the smaller set covers every active code path, and then carry the change through. That coordination is what tends not to happen.

What the Inventory Has to Hold

Three things, at minimum: the claims the agent or its tokens hold now, the operations the agent performs in normal execution, and the smallest permission set that covers those operations. The gap between what is held and that minimum is the latent risk.

Doing this by hand for one agent is reasonable. Doing it for every agent on a platform is not. Claims live in credential stores, service account configs, MCP registrations and key management systems, and correlating them means reading all of those sources and tying each claim back to an agent identity.

It also has to keep running. Creep happens while features are being built, so a scan taken at deployment describes day one and drifts from there. The continuous cadence used for other posture checks fits agent scope better than an annual audit does.

Where to Begin

For a team with no systematic monitoring yet, start by listing the claims each production agent token holds. Not the intent, not the deployment brief: the live state. That alone tends to surface temporary grants never revoked, roles inherited from other systems, and claims older than the current agent configuration.

That list becomes a baseline. Next to it, place which permissions have actually been exercised in the last 30, 60 or 90 days. The unused remainder is the queue for downscoping. Some of it will have to stay, but the order of work now exists where before there was none.

Back to Security Brief