Eight self-service MCP platform risks and the guardrail for each

Eight MCP security risks a self-service platform makes easy to create by accident, from confused deputy to unowned tools, and the guardrail for each.

Chatis Santos · October 19, 2026 · 7 min read · For engineers and leaders

A self-service MCP platform makes eight specific mistakes easy to commit by accident, and each one has a guardrail cheap enough to run in CI or at the gateway on every change. MCP is the Model Context Protocol, the way Claude.ai and Cursor call internal tools. On a self-service platform for it the platform team is out of the path by design, so the guardrails have to be automatic. A review checklist gets skipped the first week someone is busy. Two of the guardrails keep a human in the loop on purpose: a security reviewer has to approve a PR that shares customer PII (personally identifiable information) or a write tool to every engineer (the eng-all role). That's the one review step I'd keep, and it only fires on widening, so most PRs never see it.

Some of the guardrails depend on AgentCore behavior I haven't verified with running code: per-tool Cedar policy, claim forwarding to targets and whether the gateway log carries the FusionAuth subject. The phase 0 spike is where I'd check all of them.

Risk How it shows up Guardrail
Confused deputy A tool open to eng-all runs behind a service account with wide rights Per-target execution roles, policy lint on broad allows
Customer PII in chat clients A CRM tool returns names and phone numbers into Claude.ai or Cursor data_classification: customer-pii triggers review and redaction
Prompt injection via tool output A Salesforce case description contains instructions an agent follows Tools return data only, confirm: true with dry-run on writes
Token audience confusion A token for another FusionAuth app is accepted by a gateway aud set to the gateway and checked there, short-lived access tokens
Silent authorization drift Access gets widened outside the manifest and the manifest stops telling the truth Policies generated only from access, targets cannot grant more
Secret sprawl Credentials land in manifests or repo environment variables ARNs and provider names only, secret scanner blocks the PR
Unowned tools A team dissolves and its tools keep running Required owner, CODEOWNERS must resolve, 90-day idle check
Observability gaps Nobody can say who called what against Salesforce last Tuesday One structured log line per call at the gateway

Confused deputy

A tool shared to eng-all that runs behind a service account with wide rights gives every engineer with a token the full power of that account. I recommended service identity as the default because it's cheap and works for unattended agents. This is the risk that comes with it.

It takes a pair of guardrails. One execution role per target, scoped to that team's secrets prefix (/mcp/<team>/*), so sharing a gateway never means sharing credentials. If the data team wants run_saved_query open to everyone and run_sql kept to themselves, two targets with two warehouse credentials (read-only and broad) isolate at the credential level. The second is a policy lint in CI that flags any broad allow on a tool with write credentials. The manifest's access.default is owner, so widening a tool is an explicit line a reviewer sees in the diff.

Customer PII reaching chat clients

A CRM or asset tool returns names, addresses and phone numbers into Claude.ai or Cursor, and now customer PII sits in a chat transcript that nobody classified. For a solar operator with customer records in Salesforce, this is the risk that touches a policy Northfield already has.

The manifest carries data_classification: internal | customer-pii, and customer-pii does two things. In CI, the rule is machine-checked: customer-pii plus any eng-all allow needs a security-approved label before the PR can merge. At runtime, the server template ships a redaction middleware that the classification turns on for Lambda and MCP-server targets, so the tool author doesn't have to remember it. An OpenAPI target has nowhere to run it, so for those the security review is the only guardrail. The manifest field is where Northfield's existing AI policy on PII handling gets enforced for MCP tools.

Prompt injection through tool output

Everything a tool returns is untrusted text. A Salesforce case description, an email body, a Slack message or a database row can contain instructions, an agent reading the result may follow them, and the exposure is worse under service identity because an injected call runs with the service account's full rights.

The rules I put in the manifest and the template:

  • Nothing a tool returns is treated as an instruction, by the tool or by agents built on the platform.
  • Write tools get confirm: true. The CI lint requires any confirm: true tool to declare a dry-run mode, and agent flows ask a human before running it. Mark the same tools with the destructiveHint annotation so chat clients can prompt before calling.
  • A read tool's output never authorizes a write. The decision comes from the caller's roles in the JWT, and nothing in a tool result can change it.

Token audience confusion

A token minted for one FusionAuth application gets accepted by a gateway it was never meant for. If every gateway trusts the same issuer without checking the audience, a token for a low-privilege app works everywhere.

The MCP spec wants the audience to be the resource, meaning the gateway, and FusionAuth sets aud to the client ID by default. So the guardrail has two halves: set the audience to the gateway, through the application config or a JWT populate lambda, and have each gateway's inbound authorizer reject any other value. Access tokens stay short-lived with silent refresh. Whether one FusionAuth sign-in can cover several gateways (resource indicators or per-gateway audiences) is on the verification list. The related rule gets its own article: never pass the user's token to a downstream system.

Silent authorization drift

Someone widens access outside the manifest: a hand-edited policy, an extra allow in the deploy code, a target that accepts calls for a tool the manifest never opened. Six months later the manifest and the real access rules disagree.

The guardrail is structural. Per-tool policies at the gateway (Cedar, AWS's policy language, evaluated by AgentCore Policy) are generated only from the manifest's access block, at merge time. Targets receive caller claims (sub, email, roles) for row-level checks, but they can't grant beyond what the gateway already allowed. Under this sit two verify-list items, whether AgentCore Policy is available in your region and can filter tools/list or only reject tools/call, and whether Gateway forwards those claims to Lambda and MCP-server targets. If list filtering is missing, the fallback is a thin authorizing layer in front of the targets or a FusionAuth application per gateway.

The manifest can't catch a branch inside a target that does more for eng-all than it should once the call is allowed. That needs the forwarded claims and an in-tool check. The manifest stays the single place where access is reviewable, which is what makes the self-service registry safe to open to every team.

Secret sprawl

Credentials end up in manifests or in environment variables checked into the repo. With a dozen teams writing manifests, this will happen. Plan for at least once.

Manifests carry Secrets Manager ARNs (Amazon resource names) and credential-provider names only, and the platform resolves them at runtime from Secrets Manager or the AgentCore Identity token vault. A secret scanner in CI blocks the PR. The platform team pre-creates the credential providers for common SaaS (one Salesforce connected app, one Google OAuth client with the Gmail and Drive scopes they're willing to grant), so a team references a provider by name and never holds a Salesforce secret.

Unowned tools

A team dissolves or reorganizes, and its tools keep running against production systems with nobody on call for them, which the platform team doesn't notice because the self-service design keeps them out of the path.

owner is a required manifest field. CODEOWNERS must resolve to a real GitHub team, which CI can check. And a quarterly job flags targets with no call in 90 days, so someone decides about dead tools.

Observability gaps

Nobody can answer "who called what against Salesforce last Tuesday". Under service identity, Salesforce's own audit log shows the integration user, so the gateway log is the only place the human appears.

One structured log line per call at the gateway: subject, roles, gateway, tool, argument hash, decision, result status and latency. It goes to CloudWatch through AgentCore Observability, and per-team dashboards are generated from the manifests. Whether that log carries the FusionAuth subject and roles, or only a request ID, is another unverified item. I'd check it in the phase 0 spike, against a real log line from the hello-world MCP.

What didn't make the table

  • Per-team rate limits and quotas at the gateway, so one runaway agent doesn't starve another team's backend.
  • Tool sprawl, which I treat as a usability problem and cover separately.

If you're deciding this

Strict audience checks get settled in the phase 0 spike. Of the other seven, I'd put per-target execution roles and ARN-only manifests in phase 1, because retrofitting credential isolation after three teams have shipped is the kind of work nobody schedules. The rest can wait for phase 2. Going over a manifest schema and its lint rules takes about a day, and it's a day I'm happy to spend on yours.

More in this series

All articles in the series