AI & TechArtificial IntelligenceCybersecurityNewswireTechnology

AWS tightens AI agent data access amid manipulation risks

▼ Summary

– AWS proposes enforcing user authorization through downstream services rather than the AI agent itself, treating the agent as an orchestrator, not a gatekeeper.
– The approach is demonstrated in a CRM use case where Sales and Finance employees query the same agent but must only access department-specific data like contracts or invoices.
– User identity is established via corporate credentials (e.g., Amazon Cognito), with department info in tokens validated by Amazon Bedrock AgentCore Runtime before the agent runs.
– Authorization context is passed to services like DynamoDB, Salesforce, and Bedrock Knowledge Bases, which apply their own access rules, such as record filtering or metadata-based document restrictions.
– Keeping access controls outside the agent protects against prompt injection or bugs, ensuring no manipulation can bypass permission boundaries.

AWS has unveiled a new framework for carrying user authorization context through AI agents, shifting access control enforcement to infrastructure and downstream services instead of relying on the agent itself to police data.

Organizations using Amazon Bedrock AgentCore can deploy AI agents that pull information from Amazon DynamoDB tables, document repositories, SaaS platforms, and internal knowledge bases to answer queries and streamline workflows. But when an agent lacks awareness of who is making a request, it can inadvertently expose data the user has no right to see.

“The agent acts as an orchestrator, not a gatekeeper,” AWS stated. “Authorization is enforced by downstream services.”

CRM access control scenario

AWS demonstrates the concept using a CRM application where Sales and Finance teams interact with the same AI agent to retrieve customer information.

Sales employees require access to contracts, pricing strategies, and pipeline data. Finance employees need invoices, payment records, and financial reports.

The agent gathers information from Amazon DynamoDB, documents in Amazon Bedrock Knowledge Bases, and external platforms such as Salesforce.

When a Sales employee requests customer contracts, the agent should retrieve only Sales-related data, never Finance records.

AWS argues that enforcing restrictions outside the agent offers protection even if the system is compromised through prompt injection or suffers an application bug.

User identity and authorization flow

Employees begin by authenticating with corporate credentials. AWS uses Amazon Cognito as the identity provider in its example, though Microsoft Entra ID and Okta work as alternatives.

Details about the employee, including department affiliation, are embedded in authentication tokens and accompany requests to the agent.

Amazon Bedrock AgentCore Runtime validates the user’s token and reviews authorization information before the request reaches the agent. Requests from users who fail configured requirements are rejected before any agent execution occurs.

The authorization context then travels with the agent when it accesses other services, letting those services determine what information the user may view.

Keeping access controls outside the agent

AWS applies the approach across DynamoDB, Amazon Bedrock Knowledge Bases, and Salesforce.

For DynamoDB, access is limited to records matching the user’s department. Salesforce applies its own sharing rules so the agent only receives records visible to the individual user.

Amazon Bedrock Knowledge Bases uses metadata filtering to restrict retrieved documents to the appropriate department. AWS notes this control functions at the application layer and recommends separate knowledge bases with IAM policies when stricter isolation is needed.

The central objective is avoiding broad agent access with the expectation that it will filter sensitive data correctly. Instead, AWS advises configuring underlying services to reject unauthorized requests “regardless of what the agent asks for.”

“This way, the agent’s credentials are inherently limited to the requesting user’s permissions, and no amount of prompt manipulation can bypass those boundaries,” concluded authors Anshu Bathla, Prafful Gupta, and Rohit Verma.

(Source: Help Net Security)

Topics

authorization propagation 95% ai agent security 93% access control enforcement 92% amazon bedrock agentcore 90% prompt injection defense 89% identity management 87% dynamodb access control 84% agent credential limiting 83% knowledge base filtering 82% salesforce integration 80%
Show More