Back to blog
6 min readGateco Team

RAG permissions in the OWASP Top 10 for Agentic Applications 2026

The short answer. The OWASP Top 10 for Agentic Applications 2026 is mostly about what agents do: hijacked goals, misused tools, code that runs where it shouldn't. One part of it is about what agents read. ASI03:2026, Identity and Privilege Abuse, describes agents that operate with more access than the person they act for, through delegated trust, inherited credentials or role chains. When an agent retrieves company documents to answer a question, that problem has a retrieval side: the agent's search can reach more than the user may open. RAG permissions are how you close that side. Similarity is not entitlement. The retrieval step decides what is relevant. Something else has to decide what this user is entitled to see.

What ASI03 says, and the part that applies to retrieval

OWASP frames ASI03 around identity: who an agent is acting as, what credentials it holds, and how privileges pass along a chain of agents and tools. Most of that is about actions: calling an API, changing a record, approving a payment. Controls for those live in your identity provider, your tool gateway and the systems being called.

The retrieval side is narrower and easier to miss. An agent that answers from a vector index or a search service usually reaches it with one application credential. That credential can read every document the pipeline ingested. If nothing checks the results against the person asking, the agent quietly inherits the pipeline's privileges, not the user's. That is identity and privilege abuse without any attacker. It is simply how the system was built. We covered the agent side of this in agentic AI security starts with what the agent can retrieve.

Why RAG permissions break in agentic systems

  1. The service account is the identity. The index sees the pipeline's credential, not the employee's. Unless the user's identity is carried to the point where results are selected, every question is answered as the pipeline.
  2. Permissions stay at the source. Sharing settings live in SharePoint, Drive or Confluence. Copying, chunking and embedding a document leaves them behind unless something carries them along and keeps them current.
  3. Agents ask more often and combine more. A chat assistant usually retrieves once per question. An agent may retrieve many times per task and merge the results into one output, so one over-permissioned search can feed an entire task.
  4. Revocations take time to arrive. Someone leaves a team and a folder is unshared. Anything that enforces from a copy of those rules is only as current as that copy, so the real question is how quickly a change in the source reaches the place where retrieval is decided.

Five checks for the retrieval side of ASI03

CheckWhat a good answer looks like
Two users, same question, different accessDifferent results. The less-privileged user gets nothing they couldn't open in the source system.
Who is the retrieval for?Each request names the user it's for, and you know how that name is established. Is it asserted by your application, or proven with a token?
Break the permission check on purposeNothing comes back. An error returns nothing, not everything.
Unshare a document, then ask againThe answer stops drawing on it after a delay you know and have written down.
Ask afterwards what the agent retrievedA record per retrieval: who it was for, what was allowed, what was denied and why.

The first check is the two-user test from our post on AI data leakage. The second check is the easiest one to skip. If the application simply asserts "this is for alice", then RAG permissions are only as strong as the application that makes the claim. The twelve questions we'd want answered before an agent pilot goes to security review go further.

Where Gateco fits

Gateco enforces RAG permissions at retrieval time, across the retrieval systems you already run. Every candidate the index returns is checked against the requesting user's permissions, and anything denied is withheld before it reaches the model. When Gateco can't determine that a user is allowed, it returns nothing rather than guessing: deny by default, fail closed.

Each request names the user it's for. By default that name is trusted, as asserted by your application. With verified-token mode on, Gateco checks the user's token from your identity provider instead. Every retrieval records who it was for, what was allowed and denied, and why.

The permissions are the ones your organization already defines: groups and attributes from your identity provider, policies you write against them, and, where you choose to activate it, a source system's sharing settings imported from Google Drive, SharePoint or Confluence. A revocation made in Gateco applies on the next request. Changes from a source system or a polled identity provider apply at its next sync, and SCIM changes apply as soon as your identity provider pushes them. It works across the vector and search backends you already use, without moving your data into a new index.

What this is not. Gateco handles the retrieval side of identity and privilege abuse: which documents and chunks reach the model for a given user. It doesn't decide which tools an agent may call or which actions it may take; that belongs to your identity provider and tool gateway. It doesn't scope individual agents to narrower document sets than their user. It can't take back an answer already delivered. And it can't fix permissions that are wrong at the source: if a file is shared with everyone and you import that, everyone is what Gateco enforces.

Want to see the check run? Read how permission-aware retrieval works.

If you have an AI pilot waiting for security sign-off, start free.

Sources


Ready to secure your AI retrieval?

Start with the free tier: 1,000 retrievals/month, no credit card required.