Least Privilege Holds Only If You Can See the Scopes

Noam Dekel 6 min read

Zero trust and least privilege earned their standing on human accounts and machine-to-machine API calls. Applying them to an AI agent is a short step on paper and a longer one in practice. An agent is not a microservice issuing deterministic calls against a frozen interface. It reasons at runtime about which tool to use, in what order, with what arguments. That latitude is exactly what makes it useful, and it is what resists a static security description.

So the useful exercise is narrower: where does the principle translate cleanly to an agent, and where does it need tooling that most organizations do not have yet?

Per-Call Trust, Not Session Trust

Zero trust for services has a familiar shape. A request is not honored for coming from inside the corporate network; it has to present a credential that gets checked first. For an agent, the analogous rule is that every tool call through an MCP server should be authenticated on its own, not on the strength of a session credential that was valid when the agent started.

Many MCP deployments do the opposite: trust is established once, at connection. The host authenticates to the server at startup, and later calls in that session inherit the authentication. This pattern appears across stdio and HTTP transports alike. It departs from per-call trust, and the departure becomes consequential when sessions run long.

A session opened with a valid credential can outlive that credential's revocation, expiry or narrowed scope. Rotate the service account credential without re-establishing the server session and the session keeps the original trust level. Per-call checks would notice the revocation. Session trust never asks.

Not every MCP design can afford per-call verification. HTTP with short-lived bearer tokens comes closest. Stdio, where the server runs as a child of the host inside the same trust boundary, has its session boundary at the process lifecycle, so the question takes a different form. Start by working out which trust model your deployment uses; everything else follows from there.

Two Levels of Least Privilege

For an agent, least privilege splits into two layers: the credential (what it holds) and the tool (what it is allowed to call through each server).

The credential layer is the familiar one. The agent should carry only what its task needs, not the full potential of its service account. Scope creep in tokens gets its own treatment elsewhere in this series.

The tool layer is newer. MCP servers publish a manifest listing every tool they offer. An agent that reads and summarizes records has no reason to invoke a delete_record tool that the same server declares. Enforcing that separation takes per-agent tool restrictions on the host or the server, and not every MCP implementation provides them.

That raises a concrete ownership question. If one server serves several agents with different tool rights, the server needs per-identity control at the dispatch layer. If the host is the gate, it must trim the manifest before it reaches the model's reasoning loop. Both designs can work. Neither ships as a default.

Constraining What the Agent Can See

There is a restriction with no clean ancestor in traditional service security: the tool set the agent can see while it reasons. An agent works from what is in front of it. Put a high-impact tool in its context and it may use it in a case where a human would have refused. Narrowing the visible tool set is not a duplicate of credential scoping; it works on a different surface.

One form of this is surfacing tools just in time. A high-impact capability appears in the agent's context only when a task has been routed that needs it, rather than sitting in every conversation. An agent that occasionally edits records but mostly reads them could default to a read-only tool set, with writes added when a specific workflow calls for them.

Doing this means the orchestration layer understands task context and builds the manifest per task. That is harder than handing the agent a fixed tool list at startup, and it asks the security team to decide which tools are dangerous enough to warrant it. The analysis costs time, and it yields a tighter scope than a permanent grant ever will.

Baselines and Drift

Zero trust does not stop at authentication. The identity and its permissions have to remain valid, which for an agent means watching for drift from a known state.

Drift takes two shapes. Credential scope can widen, whether through deliberate additions during development or a rotation policy that restores a broader set than was in use. The server manifest can change too, adding tools more impactful than what the agent was approved to use. Both matter, and neither shows up in the agent's own operational logs.

Detection needs something to compare against: a recorded snapshot of credential scope, tool permissions and connected servers from a moment when the posture was reviewed and approved. Continuous comparison against that snapshot, rather than an annual audit, gives the earliest honest signal that a review is due.

Where the Model Strains

The largest gap in applying zero trust to agents today sits at the MCP layer, where fine-grained per-call authorization is not yet standard. Traditional zero trust leans on policy enforcement points that evaluate every request before allowing it. Humans have identity providers and policy engines. Microservices have service meshes with mTLS and authorization sidecars. Neither has a production-ready equivalent at the MCP layer.

That does not make the goal unreachable. It means the honest options are to build enforcement infrastructure that does not exist off the shelf, or to accept a partial implementation ordered by risk. Most teams can start moving today on the partial path: service account scope reduction, a tool audit of each MCP server, and a check on how session-level authentication actually behaves.

The posture work worth doing now is quiet and concrete. Write down what the agent is meant to do, check the current credential and tool setup against that intent, and keep the result as a baseline. When MCP enforcement matures, it will need that baseline to configure itself.

Back to Security Brief