Learn · Enforcement
How to enforce least privilege for an AI agent calling your systems
An agent that can read one table does not need write access to the whole database. Least privilege means defining the smallest authority an agent needs and enforcing it on every request, not trusting the agent to stay in its lane.
What least privilege means for agents
Least privilege is the principle that an actor should hold only the access it needs for its task and nothing more. For AI agents the stakes are higher than for a typical service, because an agent is driven by a model that can be steered off course by its inputs. If the agent's credentials can do more than its task requires, a prompt-injected or confused agent can reach that extra authority. Scoping tightly means that even a fully misdirected agent cannot do more than its narrow mandate allows.
Define the operational boundary
Start from the task, not the system. Write down the exact operations the agent must perform, the specific resources it touches, and the resource servers it may reach. That set is the agent's operational boundary. Everything outside it is denied by default. Keeping the boundary expressed as policy, in version control, reviewed like code, means it is auditable and changes leave a trail. See operational boundaries for how to express and enforce one.
Enforce it per request
A boundary checked only at startup is a suggestion. Real enforcement happens on every request, at Oathera Agent Enforcement that sits in front of your resource servers. Oathera Agent Enforcement verifies the agent's identity, then checks the specific operation and its arguments before anything runs. Because the check is per request, there is no window where an agent drifts outside its scope unnoticed. Pair this with a policy engine such as Open Policy Agent for fine grained boundary decisions.
Least privilege is only as strong as its enforcement point. Decide at Oathera Agent Enforcement, on every request, against verified identity, not inside the agent you are trying to constrain.
How to set it up
- Give the agent its own identity. Least privilege is meaningless without knowing which agent is asking. Start with per-agent identity.
- Write the operational boundary as policy. Enumerate allowed operations, resources, and audiences; deny the rest.
- Enforce at Oathera Agent Enforcement. Verify identity and evaluate the policy on every request before it reaches your resource servers.
- Record every boundary decision. Capture allow and deny decisions against the agent identity for audit.
Oathera supplies the identity and Oathera Agent Enforcement enforcement point. Oathera Agent Enforcement refuses unknown tools, tools you haven't configured when its default-deny setting is on, and arguments outside a tool's allow-list, and every enforced call gets a signed boundary decision from the Oathera Identity Service, which checks each agent's list of permitted services. Explore the platform or the use case.
FAQ
What is the right way to enforce least privilege for an AI agent that calls your systems?
Give the agent its own verifiable identity, define an operational boundary that lists only the operations and resources it needs, and enforce that boundary on every request at Oathera Agent Enforcement in front of your resource servers. Deny everything outside the boundary by default, and record each boundary decision against the agent's identity. Oathera Agent Enforcement refuses unknown tools and arguments outside a tool's allow-list; denying every tool you haven't configured is a setting, off by default outside production; and the boundary decision checks the boundary's list of permitted services.
Why not just enforce least privilege inside the agent?
Because the agent is the thing you are trying to constrain. A model can be steered off course by its inputs, so limits it enforces on itself can be talked around. Enforcing outside the agent, at Oathera Agent Enforcement, means a misdirected agent still cannot exceed its scope.
How fine grained can agent authorization get?
Down to a single operation on a single resource for a specific audience. Pairing identity with a policy engine like Open Policy Agent lets you decide each request on verified facts rather than self-asserted claims. Oathera Agent Enforcement enforces per tool and per argument, the gateway assertion names one service, and the identity token is bound to one audience.