AWS Wants AI Agents to Carry the User’s Permissions, Not Their Own

The AgentCore pattern shifts the critical security decision to databases, knowledge systems and SaaS tools. Its strongest limitation is equally clear: each downstream service still needs correctly configured controls.

By 3 min read
AWS Wants AI Agents to Carry the User’s Permissions, Not Their Own
AWS Wants AI Agents to Carry the User’s Permissions, Not Their Own

Listen to this story

The audio brief

About 1:35
0:001:35
Read transcript
AWS is designing its AI agents to carry a user’s permissions into the systems that hold the data, instead of letting the agent decide what the user can see. In Amazon Bedrock AgentCore, a request first arrives with an authenticated identity and department context. AgentCore Runtime can validate tokens backed by Amazon Cognito, Microsoft Entra ID, or Okta before the agent runs. The agent then acts as an orchestrator, while the database, document system, or SaaS application makes the access decision. That changes the security boundary. A prompt injection might persuade an agent to ask for another department’s records, but the downstream system is supposed to reject the request. AWS’s example separates Sales data, such as contracts and pipeline information, from Finance data, including invoices and reports. The enforcement mechanism depends on the destination. DynamoDB can exchange the user token through AssumeRoleWithWebIdentity and use IAM LeadingKeys conditions. Salesforce uses an RFC 8693 on-behalf-of token exchange, followed by its native sharing rules. Bedrock Knowledge Bases use department metadata filters, but those are application-layer controls. AWS recommends separate knowledge bases with IAM policies when stronger isolation is needed. The pattern therefore limits the agent’s independent authority, especially when its execution role has no direct datastore permissions. The critical constraint is clear: every downstream service still needs correctly configured, sensitivity-appropriate controls.

Story brief

3 key points

AWS’s Amazon Bedrock AgentCore design propagates a requester’s identity and department context through an agent to downstream systems, keeping authorization outside the model’s control. The agent execution role is intended to lack direct datastore permissions; DynamoDB, Salesforce, and Bedrock Knowledge Bases enforce access using IAM conditions, native sharing rules, or metadata filters. The approach can limit...

  1. 01

    AgentCore Runtime validates Cognito, Microsoft Entra ID, or Okta-backed tokens before an agent invocation proceeds.

  2. 02

    DynamoDB uses AssumeRoleWithWebIdentity and IAM LeadingKeys; Salesforce relies on RFC 8693 token exchange and native sharing rules.

  3. 03

    Knowledge-base department filters are application-layer controls; AWS recommends separate knowledge bases with IAM policies for tighter isolation.

An AI agent that is tricked by a malicious prompt should still hit a hard stop before it can expose another department’s data. AWS’s design for Amazon Bedrock AgentCore aims to create that stop by carrying the requester’s identity and permissions through the agent to the systems that hold the data.

The key move is architectural rather than a new instruction for the model: the agent is meant to coordinate a request, while downstream services make the authorization decision. AWS says this preserves access boundaries when an agent is manipulated through prompt injection or affected by an application bug, rather than trusting the agent to correctly filter a broad pool of sensitive material.

The request is checked before the agent runs

In AWS’s example, an employee first authenticates with corporate credentials. Amazon Cognito supplies the identity layer in the demonstration, though Microsoft Entra ID and Okta can also be used. Department information is added to the authentication token, and AgentCore Runtime can validate that token and its authorization context before the request reaches the agent.

That ordering matters in a shared CRM scenario. AWS separates Sales access to contracts, pricing strategies and pipeline information from Finance access to invoices, payment records and financial reports. A Sales employee’s request can therefore be rejected at entry if it fails configured requirements, or constrained later when the agent seeks information from a connected system.

Each data system supplies a different lock

The architecture spans Amazon DynamoDB, Amazon Bedrock Knowledge Bases and Salesforce. It does not present one universal policy engine. Instead, identity propagation reaches systems with different authorization mechanisms, so the protection depends on the relevant control being applied at each destination.

  • For DynamoDB, the described route exchanges a user token for scoped credentials through AssumeRoleWithWebIdentity; IAM LeadingKeys conditions then enforce access.
  • For Salesforce, it uses an RFC 8693 on-behalf-of token exchange and leaves authorization to Salesforce’s native sharing rules.
  • For Bedrock Knowledge Bases, the pattern adds department metadata filters to retrieval requests.

Document retrieval has a stricter-isolation caveat

Knowledge-base filtering is an application-layer control, not the stronger isolation boundary AWS recommends for every case. Metadata filtering can limit retrieved documents by department, but AWS advises separate knowledge bases with IAM policies where tighter separation is required. That distinction makes the design less of a blanket guarantee than a set of controls that must match the sensitivity of the data.

The agent loses the power to overrule the user

The security claim rests on reducing the agent’s independent authority. The described pattern keeps the agent execution role from holding direct data-store permissions, while the user’s identity is propagated to the service that owns the records. A prompt can still influence what an agent asks for, but AWS’s intended boundary means the database, document system or SaaS application should deny requests that exceed the user’s permissions.

Sources

  1. helpnetsecurity.comAWS limits AI agents’ data access, even when manipulated - Help Net Security
  2. techupdate24.comStop Hijacked AI Agents: AWS Bedrock AgentCore User Context

Loading discussion...