The Security Risks of MCP Servers
> Servicios con un enfoque integrado > Entry 925362
The backbone of modern AI systems is the Large Language Models (LLM). In isolation, however, LLMs have no utility beyond conversation. This changed with the introduction of the Model Context Protocol (MCP): MCP establishes the standard communication protocol for AI systems to connect with external systems. This has dramatically increased the capabilities of LLMs by allowing them to interface with virtually any software. With MCP servers, LLMs are no longer conversational chatbots confined to their training data, but full-fledged agents capable of acting autonomously on behalf of users. MCP has enabled AI agents, which now dominate the AI and software landscape.
Figure 1 - Diagram showing a typical architecture of a system using an MCP server.
MCP servers function as a bridge between LLMs and external systems. At a high level, an AI application is first pre-configured with the ability to use trusted MCP servers. Upon connecting, the MCP Server provides the application the list of Tools available for use, descriptions of the Tools, and instructions for how and when to use them. The application’s underlying LLM serves as the decision maker, deciding when it will benefit from an MCP tool call. When the LLM decides to use an MCP Tool, it outputs a Tool request for the MCP Client to send to the MCP Server. The MCP Server authenticates and authorizes the request, executes the Tool, interacting with external services as needed, and returns the final response to the MCP Client. Lastly, the LLM uses the Tool response to continue completing its task.
For the finer details, the MCP specification can be found here: https://modelcontextprotocol.io/specification
Threats and Mitigations
The end-to-end MCP client-server dataflow presents a unique threat model. When threat modeling an AI system using an MCP Server, it is crucial to consider the non-deterministic nature of AI. Below we consider the threats and mitigations of a basic system with two components: an AI Application communicating with an MCP Server.
|
Threat |
Mitigations |
|---|---|
|
Indirect Prompt Injection |
|
|
Direct Prompt Injection |
|
|
Unintended Tool Execution |
|
|
Insecure MCP Response Handling |
|
|
Context Window Poisoning |
|
|
MCP Server Spoofing |
|
| Threat | Mitigations |
|---|---|
|
Confused Deputy An attacker manipulates the MCP Server to perform actions using the server’s elevated privileges rather than their own limited privileges |
|
|
Excessive Capabilities An MCP Tool accesses resources or performs operations on behalf of the user that the user by themself lacks the permissions to do |
|
|
Improper Access Controls An attacker gains access to sensitive data or operations due to insufficient access controls |
|
|
Insecure Input Handling Untrusted user input may flow into unsafe sinks and result in a variety of injection attacks (e.g. SQLi, IDOR, RCE, etc.) |
|
|
Insecure Configuration A misconfigured server introduces a variety of vulnerabilities |
|
More Information
Discover how cyber experts like Philip Salire Security Engineer and author of this article, can help secure your organization with AI Security Services. Fill out the form, and we’ll contact you within one business day.
¿Por qué elegir la ciberseguridad de Bureau Veritas?
Bureau Veritas Cybersecurity es su socio experto en ciberseguridad. Ayudamos a las organizaciones a identificar riesgos, reforzar sus defensas y cumplir con las normas y regulaciones de ciberseguridad. Nuestros servicios abarcan personas, procesos y tecnología, desde la formación en materia de concienciación y la ingeniería social hasta el asesoramiento en seguridad, el cumplimiento normativo y las pruebas de penetración.
Operamos en entornos de TI, TO e IoT, y damos soporte tanto a sistemas digitales como a productos conectados. Con más de 300 profesionales de la ciberseguridad en todo el mundo, combinamos una profunda experiencia técnica con una presencia global. Bureau Veritas Cybersecurity forma parte del Bureau Veritas Group, líder mundial en pruebas, inspección y certificación.