VaikoraVaikora

Vaikora › Blog › Product Updates

How to scope AI agent permissions so they match what each agent actually needs to do

Product Updates · Nov 30, 2026 · 4 min read

Most AI agent deployments start with permissions that are too broad. The agent gets credentials or tool access sized for the worst-case operation it might ever need, and those permissions stay that way permanently. That is not a governance problem in the abstract; it is a concrete attack surface that grows every time you add an agent.

The core problem: agents inherit ambient authority

When an agent authenticates to an API or a cloud service, it typically acts under a service account or IAM role. Those roles are configured once, often during development, and rarely revisited. The agent that only needs to read a Snowflake table ends up with write access because the developer used a shared credential. The agent that sends Slack notifications has the same OAuth scope as the one that can delete channels.

This is ambient authority: the agent can do anything the credential allows, not just what the current task requires. No policy document prevents it. The enforcement gap is between what the credential permits and what the specific action actually needs.

Principle of least privilege, applied per action

Least privilege for AI agents has to operate at a finer grain than it does for human users. A human logs in once and works within a session. An agent fires hundreds of discrete actions per minute, and each action has a specific, knowable scope. That specificity is the design space for enforcement.

The right model is per-action authorization. Before the action executes:

This is the difference between static IAM and runtime policy enforcement. IAM controls what the credential can reach. Runtime enforcement controls what the agent can actually do with that credential, in context, at the moment of execution.

Where Vaikora fits in this model

Vaikora sits inline between the agent and every tool or LLM call it makes. It enforces an allow, block, modify, or require-approval decision before execution, every time, deterministically. The same input always produces the same decision. It does not replace Azure RBAC, AWS IAM, or Snowflake roles; it adds a runtime gate on top of them.

A concrete scenario: an agent is authorized by IAM to call an S3 bucket read operation. The agent prompt, however, has been manipulated to request a recursive list across all prefixes, which would expose data outside the original task scope. IAM would permit this. A Vaikora policy scoped to that agent and that tool call checks the action parameters at runtime and blocks the recursive variant before it executes.

That decision is written to a SHA-256 hash-chained audit log at the moment it happens. The chain is tamper-evident, so the record of what was blocked and why is durable for investigation.

Structuring policies around agent roles, not just tool categories

Governance breaks down when policies are written at the tool level rather than the agent-role level. "Block SQL writes" is weaker than "this specific agent, in this workflow, may only SELECT from these two tables."

Structuring policies this way requires knowing:

That inventory is usually the hardest part. Many teams do not have it. A practical starting point is to log every agent action without blocking for a defined period, review the action distribution, and use that telemetry to write policies that match observed legitimate behavior. Then enforce.

Approval gates for high-risk actions

Not every action should be binary. Some actions warrant a human-in-the-loop check before execution: destructive writes, data exports above a size threshold, calls to external APIs with payment or identity scope. A require-approval verdict holds the action, surfaces it to a reviewer, and either releases or rejects it.

This is different from alerting after the fact. The action has not run yet. The risk has not materialized. That timing matters operationally.

What to check next

Review the IAM roles and service accounts your agents run under. For each one, list the actual permissions attached, then list the permissions each agent's workflow genuinely requires. The gap between those two lists is your exposure. Start there, build the per-agent policy from observed telemetry, and enforce it at the enforcement point before execution, not in a document that no runtime ever reads.

See Vaikora enforce policy on your AI

Open-core AI runtime control. Self-host the MIT gateway free, or run the hosted Control Plane.

Get a demo Self-host the gateway

More from the Vaikora blog