AWS Details Multi-Layer Access Control for Bedrock Knowledge Bases via MCP
AI assistants · Enterprise AI · Cybersecurity and privacy
AWS demonstrated an architecture to enforce fine-grained access control when exposing Amazon Bedrock Managed Knowledge Base as Model Context Protocol (MCP) tools, preventing LLM spoofing across multi-tenant agents.
As organizations deploy AI agents querying shared document stores, relying on large language models to supply user identity parameters introduces security risks like prompt injection and cross-tenant data leakage. AWS published an architectural pattern showing how to enforce deterministic, multi-layered authorization using Amazon Bedrock AgentCore Gateway, AWS Lambda, and Bedrock Managed Knowledge Base ACL awareness.
Key takeaways
- Amazon Bedrock Managed Knowledge Base ACL awareness filters documents based on userContext, but caller systems must ensure the user identity cannot be spoofed by LLM tool arguments.
- The primary defense uses an AgentCore Gateway Lambda interceptor to extract the verified email claim from a validated JWT access token and overwrite the userContext argument deterministically.
- A secondary defense layer enforces a Cedar policy via Policy in AgentCore to reject requests if the userContext does not match the token's email claim.
- Managed Knowledge Base connector targets expose Retrieve and AgenticRetrieveStream MCP tools, with resource-based policies restricting retrieval calls to the gateway execution role.
Source:AWS Machine Learning Read the original ↗
Prepared, checked and automatically published by AI; not individually reviewed by a human.