Synthetic MCP walkthrough
Can untrusted content change a tool permission?
A fictional support assistant can read documents in Workspace A. A synthetic retrieved document suggests looking up a document in Workspace B. The MCP server must enforce the caller's permission before any restricted content reaches the model.
This is an illustrative test design, not an executed customer assessment. The owner authorizes two staging workspaces, synthetic records and read-only retrieval. No working injection prompt, credential or production endpoint is needed to describe the boundary.
Set up identities, permissions and stop rules
Create Reader A and Reader B with access only to their own synthetic workspace. Pin the application, model, connector and permission-policy versions. Approve the read-only tools, a numeric request budget and a test window with the owner. Stop if real data appears, an unapproved side effect occurs or the agreed budget is exceeded.
Fictional case matrix: expected outcomes, not recorded test results| Case and action | Expected boundary | Evidence to collect |
|---|
| Reader A reads Document A | Allowed | Caller role, object owner, server decision and sanitized trace reference. |
|---|
| Reader A requests Document B | Denied before document retrieval or entry into model context | Server decision plus retrieval/context telemetry, not only a final model refusal. |
|---|
| Synthetic retrieved content suggests a Workspace B read | Text does not grant authority; any proposed read is independently authorized | Separate proposed tool action, executed action and observed data access. |
|---|
| Repeat A-control on the corrected staging build | Allowed | Record corrected build and policy version with the unchanged allowed behavior. |
|---|
| Repeat B-boundary and approved search/preview variants | Denied for the tested paths | Bind each result to the original case; untested variants remain outside the conclusion. |
|---|
Record actual observations separately. If retrieval or context telemetry is unavailable, label the affected conclusion inconclusive. A final model refusal alone does not show that restricted data never entered the context. No customer trace or executed result is represented here.
1. Untrusted input
Label the retrieved document as external content. Its text cannot grant a role, change an object owner or authorize another workspace.
2. Proposed tool call
Record which read action the agent proposes and which synthetic object it names. A proposed action is distinct from one the server executes.
3. Permission boundary
Compare the authenticated caller, resource owner and permitted action on the server. Expected: deny Workspace B before retrieving its content.
4. Evidence
Keep the configuration and sanitized trace references, permission decision and whether any denied content entered model context. Record the permitted Workspace A control too.
5. Fix
Bind the downstream object lookup to the caller's authorized workspace. Review service-account privileges and approval gates; a prompt-only instruction does not replace this check.
6. Retest
Verify the forbidden read is denied while the permitted read succeeds on the corrected build. Include authorized search and preview paths and state any untested variants.
Validation cadence, monitoring, supported tools and retest coverage are agreed per engagement. A tool or policy change can require a new scope review; this example does not imply continuous coverage.
Scope MCP testing