From the AWS edition of November 12, 2026
AWS warns that when a Bedrock Managed Knowledge Base is exposed as an MCP tool, the LLM sets the user identity, and shows four layers to stop that
Amazon Web Services · Cross-SLED knowledge assistants (government, HHS, higher ed, K-12) · AWS Regions where Managed Knowledge Base, AgentCore Gateway, Policy and runtime are available; GovCloud not addressed
- Publisher
- AWS Artificial Intelligence Blog
- Original publication
- 2026-11-12
- Source retrieved
- 2026-11-13
- Event date
- 2026-11-12
What happened
AWS's November 12, 2026 post says that when Amazon Bedrock Managed Knowledge Base is exposed to an agent as an MCP tool through AgentCore Gateway, the ACL-aware userContext becomes a tool argument the LLM writes, and neither the gateway nor the knowledge base verifies it belongs to the signed-in user. A user prompt, model error or indirect prompt injection could make the agent search as someone else. AWS's sample adds a Lambda request interceptor that overwrites userContext from the validated JWT, a Cedar policy in AgentCore that denies mismatches, and a knowledge-base resource policy limited to the gateway role. AWS also notes ACL mistakes return no errors and S3 ACL changes apply only after the next sync.
Why it matters
Shared assistants over records with per-user permissions are common SLED designs: caseworker knowledge bases in HHS, student-record or advising assistants in higher ed and K-12, and departmental document search in state agencies. This post documents a default where the model can choose whose documents to search, which matters for FERPA, HIPAA, CJIS and state privacy obligations. Interpretation: agencies should ask any integrator how identity reaches tool calls.
Evidence and measured results
Vendor technical guidance with a public CDK sample; the spoofing risk is described by AWS, not demonstrated in an incident. No test results or independent validation are reported.
Limitations and uncertainty
Vendor guidance; the example company is fictional. Requires Cognito Essentials or Plus for token customization. GovCloud availability of Managed Knowledge Base and AgentCore Gateway/Policy is not stated. The pattern applies to other MCP tools that take access-affecting arguments, but each needs its own review.
Put this evidence to work
Lighthouse Advisory interpretation, grounded in this source. Enriched 2026-11-13; this does not change the original publication date. Each role follows the same checklist so takeaways compare across sources.
Sales
Role takeaway
- Customer problem
- Shared AI assistants that search permissioned records can return another user's documents if the model sets the user identity for search.
- Stakeholders
- CISO
- Privacy or records officer
- Program owner of the assistant
- Identity and access management team
- Discovery questions
- How does user identity reach retrieval or tool calls in your assistant today?
- Which records carry per-user or per-role access rules?
- Has the assistant been tested with prompt injection asking to search as another user?
- Must the solution run in GovCloud?
- Value hypothesis
- Adding verified identity injection and policy checks can reduce the risk of cross-user disclosure in shared assistants; effectiveness must be tested locally.
- Potential engagement
- A bounded access-control review and hardening sprint for one Bedrock-based assistant, including adversarial tests.
- Unsupported claims
- Elimination of all data leakage
- Compliance certification for FERPA, HIPAA or CJIS
- GovCloud availability
- That ACL awareness alone authorizes access
Pre-sales engineering
Role takeaway
- Fit
- Strong fit for multi-user Bedrock assistants exposing permissioned search via AgentCore Gateway; GovCloud fit unconfirmed.
- Architecture and integration
- Cognito JWT, AgentCore Gateway JWT authorizer, Lambda request interceptor overwriting userContext, Cedar policy in AgentCore, Managed Knowledge Base with ACL awareness and a resource-based policy.
- Prerequisites
- Cognito Essentials or Plus plan
- ACL metadata for every document
- Gateway targets registered before policies
- Services available in the chosen Region
- Constraints
- GovCloud availability not stated
- ACL errors fail silently
- ACL changes apply only after sync
- Documents without ACLs are not ingested
- Security
- Never let the LLM set authorization values; overwrite from validated tokens; deny mismatches; restrict knowledge-base callers; keep tokens out of logs.
- Proof of value
- Prompt user-a to search as user-b and confirm denial
- Indirect prompt-injection test via a retrieved document
- Confirm a direct bedrock:Retrieve call from another principal is denied
- Audit ACL coverage across the corpus
Delivery
Role takeaway
- Work
- Implement identity injection, policy checks and resource restrictions for one assistant and verify with adversarial tests.
- Dependencies
- Identity provider configuration
- Data owners assigning ACLs
- Agent development team
- Security testing capacity
- Ownership
- Application owner of the assistant, with the CISO approving the control design.
- Skills and adoption
- Developers need Cedar policy and gateway interceptor skills; data stewards need ACL metadata practices.
- Governance checkpoints
- Control design approval
- ACL coverage review
- Adversarial testing sign-off
- Log review for token exposure
- Acceptance criteria
- Proposed: zero cross-user documents returned in a defined adversarial test set
- Proposed: 100% of ingested documents carry ACL entries
- Proposed: all mismatched userContext calls denied and logged
- Risks
- Silent ACL misconfiguration
- Interceptor bugs
- Principals bypassing the gateway
- Stale permissions until next sync
Implementation considerations
Lighthouse Advisory interpretation across the operating dimensions a public-sector buyer must settle before this evidence becomes a design. Each note answers the question under its heading for this specific source.
Architecture and integration
What must connect, and where does the AI sit in the workflow?
Cognito sign-in with a pre-token-generation Lambda adding an email claim; agent on AgentCore runtime forwards the JWT; AgentCore Gateway JWT authorizer; request interceptor overwrites userContext; Policy in AgentCore (Cedar) checks userContext.userId against the token; connector target calls Managed Knowledge Base Retrieve or AgenticRetrieveStream with ACL awareness; resource-based policy denies other principals.
Governance
Who approves, reviews and stays accountable for outcomes?
Design principle stated by AWS: do not let the LLM generate values that affect authorization. ACL awareness filters results but is not itself an authorization mechanism. Documents without ACL entries are not ingested, and ACL errors fail silently.
Security and privacy
What data, permissions and controls need testing?
Primary defenses: interceptor injection and ACL awareness. Secondary: Cedar policy and resource-based policy for interceptor bugs or callers that bypass the gateway. Interceptor must not log the bearer token passed in headers. Alternative email lookups have scope trade-offs and break the Cedar comparison.
Accessibility and workforce
Who is affected, and what skills or accommodations follow?
No accessibility detail. Workforce: identity, agent and data owners must coordinate ACL metadata for every document.
Procurement
What should contracts, pricing and exit terms secure?
Buyers can make verified identity propagation to tool calls an explicit requirement in RFPs and statements of work for agent or chatbot projects.
Operating model
Which teams own the service once it runs?
ACL changes on S3 data sources need a sync; global ACL file changes reindex a prefix. Policies must be created after gateway targets register tool schemas.
Publication history
- 2026-11-12AWS · Issue 145 resources
Stable resource ID: aws-bedrock-managed-kb-mcp-usercontext-spoofing-controls-20261112