October DealsAmazon USOctober deal check: compare before you payAmazon US: current deals, useful picks and tech finds.Check DealsPC HealthRecommendedCrashes, freezes, slowdowns? Check your PC nowSpot repairable issues before they interrupt work.Check PCOctober DealsAmazon USDeal season is back - check today's better picksAmazon US: current deals, useful picks and tech finds.See Picks×
Skip to content
Redmond desk6 min

MCP Is Becoming a New Attack Surface: How to Secure AI Agents

MCP is an integration protocol, not a security boundary. Securing MCP-connected agents means controlling trust across clients, servers, credentials, context, and the systems their tools can reach.

Free tools Windows power users keep installed

One-click scans. No signup required.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

MCP is an integration protocol, not a security boundary. When an AI agent can use MCP servers to reach tools, data, and services, the real attack surface includes the client, server, credentials, returned content, and the systems those credentials can access. Secure the whole chain: verify and review servers, constrain each connection’s permissions, validate inputs and destinations, isolate processes, require confirmation for consequential actions, and keep audit trails that let you investigate what happened.

How MCP changes an agent’s trust boundaries

An MCP host connects through clients to servers that expose tools and context. The model may choose a tool based on its description, the conversation, and information returned by other tools or resources. That means the connection is not merely a data pipe: metadata and content can influence decisions, while the server’s credentials and capabilities determine what actions are possible.

As an Amazon Associate I earn from qualifying purchases.

Assess the complete path from a user’s request to the systems an agent can affect. Ask which identity is acting, what information enters the model’s context, which tools it can invoke, and what each tool can read or change. In a multi-server setup, also consider whether information from one server can influence calls to another.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Deployment pattern Trust-boundary question Security implication
Local server over stdio What can the launched process access on the host? Constrain its filesystem, network, and process access. Do not assume that local execution is isolated.
Remote server over Streamable HTTP How are the server, OAuth endpoints, credentials, and network destinations validated? Review authentication and authorization, validate destinations, and apply appropriate egress controls.
Proxy architecture What extra privileges and process-launch paths does the proxy introduce? Restrict the proxy’s privileges and isolate it. MCP security guidance describes a client-side process-spawning escalation for proxy architectures; it does not attribute that risk to direct stdio use.
Multiple connected servers Can one server’s content or tool influence calls to another? Separate sensitive servers and credentials, and review how capabilities can be combined.

What can go wrong when tools and context are connected

  • Prompt injection through content: Text or data returned by a resource or tool can be treated as an instruction and steer the model toward an unsafe call.
  • Tool poisoning or a rug pull: A malicious or changed tool description, schema, or result can influence the model’s choices without the user noticing the change.
  • Cross-server shadowing and confused-deputy behavior: One tool may influence use of another, or a server may act with privileges broader than the requesting user intended.
  • SSRF and unsafe URL handling: Server-supplied URLs or metadata can induce a client to reach internal services or cloud metadata endpoints.
  • Local process compromise: A local server can inherit host access if it is not constrained. In proxy designs, process-launch behavior can create additional exposure.
  • Token exposure, scope creep, and weak auditability: Broad or long-lived credentials increase potential impact, while missing records make suspicious calls and context changes harder to investigate.

These risks do not mean every MCP deployment is compromised. They also do not all represent protocol defects. The MCP project’s security policy distinguishes flaws such as authorization bypass, implementation bugs, sandbox escapes, session hijacking, token leakage, and cross-tenant access from model-driven tool selection that behaves as designed. A model selecting a tool the user did not explicitly request—or chaining several tools—is not automatically a protocol vulnerability; it can still be an application safety problem that needs controls.

Controls to apply across the deployment

Client and host: make capability use visible and constrained

  • Present tool names, descriptions, and the effects of sensitive actions clearly enough for users to make informed choices.
  • Keep untrusted tool and resource content distinct from trusted instructions. Validate inputs and outputs rather than treating model-generated arguments as inherently safe.
  • Expose only the tools needed for the task, and require an explicit confirmation before consequential or difficult-to-reverse actions.
  • Review tool definitions and schemas when they are added or changed; do not assume a previously trusted server will remain unchanged.

Server and runtime: limit what a compromise can reach

  • Verify server provenance and inspect its tools, schemas, and behavior before enabling it. Monitor for unexpected changes and activity.
  • Run local processes in a sandbox or container where practical, with filesystem and network access limited to what the server needs. Avoid shell-based URL launching.
  • For URL handling, validate destinations, block private and reserved address ranges where appropriate, and use egress controls. Require HTTPS for production OAuth URLs.
  • Keep sensitive servers separate where possible, especially when their data or actions should not be exposed to the same agent context.

Identity and authorization: scope every connection

  • Use least privilege: grant each server only the tools, data, and actions it needs. Scope credentials per server and separate identities where possible.
  • Prefer narrow, short-lived credentials and protect secrets from exposure in logs, prompts, and tool results.
  • Review OAuth scopes, consent handling, and tenant binding as part of the deployment, not as a one-time setup detail.
  • Treat human approval as an additional safeguard, not a substitute for authorization, input validation, or appropriately scoped credentials.

Operations: preserve evidence for response

  • Log tool calls and relevant context changes so an operator can reconstruct which content and capabilities preceded an action.
  • Make records reviewable and protect them appropriately; an audit trail that cannot be tied to a user, agent, server, and action has limited incident value.
  • Monitor for changes to server definitions, unusual tool use, and unexpected cross-server activity. Define who can disable a connection and how credentials can be revoked.

OWASP’s MCP Security Cheat Sheet and beta MCP Top 10 emphasize risks including prompt and command injection, token exposure, scope creep, supply-chain concerns, authentication, and telemetry. Google Cloud’s MCP guidance likewise emphasizes agent identity, least privilege, malicious prompts, and tool provenance. The MCP project’s security policy makes clear that responsibility is shared among server implementers, client developers, operators, and users; no single endpoint control can replace the others.

A practical way to prioritize MCP security

  1. Inventory connections and capabilities. For each server, record its owner and provenance, transport and architecture, exposed tools, data sensitivity, and the systems its credentials can reach.
  2. Rank potential impact. Give priority to tools that can disclose sensitive data, change external state, access internal networks, or perform actions that are hard to reverse.
  3. Reduce access before adding more monitoring. Remove unnecessary tools, narrow credentials and OAuth scopes, separate identities, and constrain filesystem and network reach.
  4. Set review and approval points. Inspect server definitions and changes; require user confirmation for consequential actions, while preserving authorization checks beneath that approval.
  5. Test the operational path. Confirm that calls and context changes are logged, alerts can be investigated, and operators know how to disable a server and revoke its credentials.
  6. Reassess after changes. A new server, tool, schema, credential, proxy, or model workflow can alter trust boundaries and blast radius; review the deployment when those change.
Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

What current guidance and attack research establish

In a May 20, 2026 release, the NSA’s Artificial Intelligence Security Center said traditional authentication, authorization, and input validation remain necessary, while agentic systems add risks such as dynamic tool invocation, implicit trust relationships, and context sharing. It framed MCP security as an end-to-end operational problem and stated: “These are not isolated problems that can be patched at the interface or endpoint level.”

A January 24, 2026 arXiv preprint by Narek Maloyan and Dmitry Namiot reports experiments covering 847 attack scenarios across five MCP server implementations. The authors report attack success rates 23–41% higher than the paper’s non-MCP comparisons. Those are controlled experimental results from that preprint—not an incident rate, a share of vulnerable servers, or a measurement across production deployments.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

For the account layer around an MCP deployment, CISA recommends multifactor authentication and identifies physical security keys among stronger MFA options. A FIDO2/WebAuthn key can protect an account login when the relevant identity provider supports it. It does not prevent prompt injection, poisoned tools, unsafe tool chaining, or excessive MCP permissions; compatibility depends on the identity provider and setup.

Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.

Leave a Reply

Your email address will not be published. Required fields are marked *

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

More from the Wire

  1. World desk4 min
    How to Spot an AI Voice Scam Before Sending MoneyDon’t rely on how a caller sounds. Pause, call back through a known number, and verify the emergency with another trusted person before sending money.
  2. Mountain View desk4 min
    Google’s SynthID Detector: How to Check AI-Generated Images, Video and AudioGoogle’s SynthID Detector looks for an embedded watermark in supported images, video and audio. Here is what its results do—and do not—show.
  3. Redmond desk20 min
    How to create a link to File or Folder in Windows 11Windows 11 gives you several ways to point to a file or folder without moving or duplicating it. You can create a desktop shortcut,…
Recommended PC Tool
Recommended PC Tool
Outdated Drivers Are Slowing You DownFree scan - exact matches
Windows Errors? Fix Them Before They SpreadFree repair scan

Two free Windows tools

One Free Minute Could Fix That PC

Before you go - each of these free tools takes about a minute and tackles what quietly slows a Windows PC down.

Special offer. View Outbyte info, uninstall instructions, EULA, and Privacy Policy.