Privilege AIMKC2 results ↗

AI agent least privilege

Least privilege for agents is a procedure, not a principle: observe what a task actually needs, grant exactly that, and make the grant expire.

READ THE DEFINITION ↓DERIVE · BOUND · EXPIRE

01 / DEFINITION

The short answer first.

What is least privilege for AI agents?

Least privilege for AI agents means granting only the capabilities a specific task requires, for only as long as it runs. For agents the principle carries more weight than in ordinary software, because an agent's actions are chosen at runtime by a model that can be influenced by the content it reads.

In conventional software, excess privilege is dangerous only if an attacker finds a way to use it. An agent will exercise whatever it holds on its own initiative, if a plausible reason appears in its context. The gap between granted and needed capability is therefore not latent risk but available behaviour.

WORKED EXAMPLE

Remove authority from a warehouse lookup task

A warehouse assistant answers whether an item is available at a depot. The inventory API also exposes stock adjustments and transfers between depots. A broad credential may make integration easy, but it allows a faulty plan to change the same stock record the assistant is supposed to read. Least privilege starts by separating the lookup capability from the inventory-management capability.

Build a positive test and a boundary test

Issue a credential limited to reading availability at the permitted depot. Confirm that the assistant can answer the normal stock question and identify when the data was last refreshed. Then request a transfer to another depot. The underlying service should deny the write even if the model invents a convincing business justification or discovers an undocumented endpoint.

Consider whether the lookup really requires an exact stock count. A sales assistant may need only an availability band, while a replenishment planner needs quantities. Limit the response fields as well as the tool operations. A read-only credential can still disclose commercially sensitive information when its resource scope is too broad.

Run the test again after a user changes departments. A cached tool definition or a long-lived session should not retain the previous depot's visibility. Record the effective permissions and the operational effect of removing each one. If a permission can be withdrawn without breaking the declared task, that is evidence for leaving it out of the production grant.

02 / DERIVING THE MINIMUM

01

Run in observation mode.

Grant read-only access to a sandbox and log every call the agent attempts, including the ones that fail. The attempted set is the honest requirement.

02

Separate need from convenience.

Many attempts are exploratory. Distinguish calls without which the task cannot complete from calls that merely made it easier.

03

Grant the narrowest form.

A specific tool rather than a general one; one collection rather than a store; an identifier rather than a query. Narrow the shape, not just the scope.

04

Attach an expiry.

Every grant carries a lifetime and a renewal that requires current evidence. Without expiry, the set only ever grows.

Step one is the part that makes the exercise empirical rather than argumentative. Asking a team which permissions an agent needs produces a list shaped by convenience and imagination; logging what it actually attempts across a realistic workload produces a shorter and more defensible one, and the difference between the two lists is usually large.

Step three deserves emphasis because it is where most of the reduction is available. Replacing a generic query tool with three purpose-specific calls removes an entire class of unexpected behaviour, since the model can no longer compose a request nobody anticipated.

03 / TIME AND VOLUME

Bounds beyond the permission itself. Each one converts an unbounded capability into a measurable one.
BoundWhat it preventsTypical setting
Credential lifetimeA compromise that outlives the runThe duration of the task, not the calendar
Records per runA silent bulk read inside a legitimate grantA small multiple of what a real task touches
Actions per runA loop that repeats a side effectA hard cap with a boundary event when reached
Step limitTrajectory drift in a long loopEnough for the task, plus margin, then stop and report
Egress destinationsArbitrary outbound requestsAn allowlist; no general-purpose HTTP tool

Volume bounds have a second benefit beyond containment: they produce a signal. An agent hitting its record cap is either mis-scoped or doing something unexpected, and both are worth knowing. A capability with no bound produces no such event, so the first indication of trouble is the consequence.

04 / WHY IT DECAYS

↳ 01

The incident grant.

Access widened during an urgent fix and never narrowed afterwards. Expiry by default is the only control that survives this reliably.

↳ 02

The shared agent.

One agent is extended to a second use case and inherits the union of both requirements. Two narrow agents are usually safer than one broad one.

↳ 03

The convenience tool.

A general-purpose capability added to avoid writing three specific ones, trading a week of engineering for a permanent widening.

The review-only default is the strongest form of least privilege available to an AI system, and it is a capability restriction rather than a permission one: the agent proposes, a person confirms. Privilege AI applies the same ceiling to its own supervision work — MKC2 reports and flags and does not act, with 25 of its 45 checks held at report-only authority. The reasoning generalises to agents and is set out in human-in-the-loop AI.

05 / QUESTIONS

How is least privilege different for agents than for users?

A user exercises a fraction of their permissions and does so deliberately. An agent may exercise any permission it holds at any time, on the basis of reasoning influenced by content it has read. Unused privilege is therefore far less benign.

Does least privilege break an agent that needs to explore?

It should not, if the grant is scoped by resource rather than by sequence. An agent permitted a whole matter with a volume cap can explore freely within it. What least privilege removes is the ability to explore outside the task's subject.

How do you handle an agent that occasionally needs more?

Just-in-time elevation: the agent requests the additional capability, a human or a policy engine grants it for that run, and it lapses. Standing access granted for an occasional need is the most common source of excess privilege.

Is least privilege enough on its own?

No. It bounds the damage of a wrong action without preventing wrong actions, and it does nothing about disclosure of data the agent is legitimately allowed to read. It composes with enforcement and egress control. See AI agent access control.

Who should approve a capability increase?

The accountable owner of the agent, with evidence from the evaluation record, and with a defined expiry. Approval routed only through engineering tends to optimise for unblocking rather than for bounded risk.

WORK WITH PRIVILEGE AI

How we can help

Talk with Privilege AI

Tell us what your agent needs to accomplish and which existing privileges you suspect it does not need.

Talk to us →

CONTACT PRIVILEGE AI

Contact Us

Tell us what your agent needs to accomplish and which existing privileges you suspect it does not need.

When should we call?

By submitting, you agree that Privilege AI, a division of Tech1e LLC, may call or email you about this inquiry. Please leave confidential information out of your message.

Grant the task,
not the store.

Privilege AI designs permissions and retrieval boundaries that define what a model can access and which actions it can propose.