Toolspublished

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

Listen to this story

The audio brief

About 1:39
0:001:39
Read transcript
AWS is designing Amazon Bedrock AgentCore so an AI agent carries the user’s identity and department context to the systems holding the data, instead of deciding access on its own. The agent coordinates the request; the database, document system, or business application makes the final authorization call. The request is checked before the agent runs. An employee authenticates with corporate credentials, and Amazon Cognito—along with Microsoft Entra ID or Okta—can supply a token containing the user’s department. AgentCore Runtime validates that token and its permissions before allowing the invocation to proceed. From there, the controls vary by destination. DynamoDB can use temporary, user-scoped credentials and IAM conditions to limit records by key. Salesforce can exchange the user’s token and apply its native sharing rules. Amazon Bedrock Knowledge Bases can attach department metadata filters to retrieval requests. That last mechanism is the important limitation. Metadata filtering operates at the application layer, so AWS recommends separate knowledge bases with IAM policies when stronger isolation is needed. In other words, this is not one universal security boundary. It is a pattern whose protection depends on every downstream service being configured correctly. The intended benefit is clear: even if prompt injection or an application bug changes what the agent asks for, the agent’s execution role should not have broad, direct datastore access. The open question is whether each connected system can enforce the user’s permissions as reliably as the architecture assumes.

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