Vulnerabilities of MCP

CK CK 3788 
Created at
Updated at  
594 0 0

Model Context Protocol (MCP) is a framework that enables LLMs (Large Language Models) to seamlessly interact with external tools and data sources, effectively extending their capabilities beyond their pre-trained knowledge. It defines a standardized way for models to request information or actions from these tools, receive responses, and integrate them into their reasoning process, allowing them to perform tasks like accessing real-time data, running code, or controlling external systems. In essence, MCP provides a consistent and structured communication channel, making LLMs more versatile and capable of handling complex, real-world problems.

Rakesh Gohel shared on LinkedIn:

MCP can be a security nightmare for building AI Agents

Here are key problems everyone using should know about....

Although MCP's easy tool integration has dominated the internet,

The current MCP version has critical security flaws, especially in implementations favoring functionality over security.

Without proper security, you're easily compromised.

So, here are the key vulnerabilities that everyone should know:

📌 Commad Injection (Effect: Moderate)

- Hackers can hide commands in innocent-looking emails or messages. When AI assistants process this content, it can trigger unauthorized actions like data theft or system command execution.

📌 Tool Poisoning Attack (Effect: Severe)

- Attackers can compromise MCP servers to provide malicious tools that execute harmful operations. The compromised tool can access your API keys and private database files and share those details remotely to an attacker.

📌 Server-Sent Events Problem (Effect: Moderate)

- MCP works with SSE architecture; this means that the connection remains open even after the data is shared between the tools and the client. 
- This leads to latency issues and possible tampering of your data from the open connection.

📌 Privilege Escalation (Effect: Severe)

- This is another part of a tool poisoning attack where one malicious tool overrides the privilege of another tool.
- For example, if you're building an agent that has to utilize firecrawl constantly, then overriding that privilege can break your entire workflow.

📌 Persistent context (Effect: Small)

- MCP maintains your context through your Application's workflow; this is one of the key features of the toolkit.
- However, MCP can automatically call tools cuz it knows your context; it is so persistent that it can lead to Automatic tool execution without human verification.

📌 Server Data Takeover/spoofing (Effect: Severe)

- I went through a detailed research where the attacker was able to intercept chat details and the password of WhatsApp's MCP server using a compromised tool.
- This is particularly very lethal because of MCP SSE architecture and its ability to trust servers chosen for the application.

Vulnerabilities of MCP


 

Tags AI Security Command Injection LLMs Large Language Models MCP Model Context Protocol Persistent Context Privilege Escalation Rakesh Gohel Security Server Data Takeover Server-Sent Events Problem Tool Poisoning Facebook X
Comments 0
Similar posts
  1. MCP vs A2A
    606
  2. Why Amazon VPC satisfies with PCI-DSS and SOC 2 Type on Fintech Industry?
    649
  3. VLM vs. LLM: How Vision-Language Models Are Revolutionizing Real-Time Media Processing
    50
  4. Building a MCP server in PHP
    638
  5. xAI aims its goal to achieve AGI - Artificial General Intelligence
    795
  6. Milvus and LLM Integration - Very Smart Approach!
    304
  7. TensorRT for LLMs: Speed, Scale, and Why Startups Choose It Over TensorFlow
    466
  8. Power of Containerized Deployment with AWS ECS
    10,599
  9. All Engineering Software Development How can you prioritize software design trade-offs when developing a new product?
    1,346
  10. Beyond Prompt Engineering: Why Loop Engineering is the Future of Autonomous AI
    310
  11. How to encrypt a string
    469
  1. Netflix's Recommendation System
    429
  2. Is PyTorch Dead? Deep Learning's Enduring Role Beyond LLMs & Essential Skills
    699
  3. Coding Revolution with Claude Code & MoAI ADK(Agent Development Kit)
    738
  4. Curiousity if OpenAI Engineers use Cursor.ai
    6761
  5. Building my own ChatGPT based on SageMaker and Milvus that is specialized to Shopping Mall
    281
  6. Your Blueprint for an LLM & Vector DB Insurance Product Q&A
    266
  7. The Core of Vector Databases: Embeddings and LLM Dependency
    266
  8. Original Purpose of Markdown File - why Engineers love it?
    772
  9. Switch to using Claude Sonnet 4 (Claude-4-sonnet) in the Amazon Q Developer CLI
    646
  10. Amazon Q CLI for Debugging - What You Can Do
    450
  11. Vibe coding with Amazon Q in CLI combined with Claud AI Sonet 4
    474
  12. How do you create AI-based commit message with scope and action in Cursor AI?
    813
  13. Learn SLM if you have interent in the next after LLM
    4921
  14. Why Reranking is Crucial for RAG and Agentic AI Systems?
    274
  15. Technical Hierarchy of AI Agents
    825
  16. The Revenge of the Junior Developer
    2,311
  17. A Complete Guide to LLM Dataset Formats: From Pre-Training to DPO in JSONL
    223
  18. Comparison of ChatGPT, Gemini, and Grok
    565
  19. MLOps Explained: Spark, Flink, and Reference Architecture Deep Dive
    247
  20. AI-based Image Creation based on Bing Image Creator
    991
  21. ChatGPT App (flowGPT) to create images with text
    1,042
  22. TikTok's Recommendation System - Monolith
    300
  23. Things to Know for AI-driven, Multimodal Content Personalization.
    206
  24. Deep Dive into Vector Databases: Understanding Collections (Not Tables) and Embeddings
    240
  25. Image Embeddings for Vector Databases
    254
  26. Vector Databases: From Embeddings to Application
    322
  27. Scaling Vector Search: How to Architect FAISS on AWS EKS and ECS
    196
  28. Reinforcement Learning–Based Methods for CTR Improvement based on Recommendation System
    273
  29. YouTube's Recommendation System
    269
  30. Wide & Deep / DeepFM for Recommendation Service (aka Ranking Service)
    265
Recently updated
  1. Google OAuth Token Expiration: Causes and Solutions
    29
  2. Why 100% SEO Guarantees Better User Engagement and How to Achieve It in Your Service
    55
  3. Why SPF and DKIM Are Essential for Linux Email Servers?
    49
  4. How do I create animated background for Google Meet?
    22,866
  5. MaxMind GeoLite2 vs. DB-IP Lite vs. ip-api.com: Choosing the Right Free IP Geolocation Solution
    271
  6. Meet Valkey: Why Redis Changed Its License, Why Valkey is Better, and How to Use It as a Drop-in Replacement
    103
  7. How Rogue Web Scrapers Are Stealing My Content and Destroying My Server
    168
  8. Array of arguments passed to script in PHP
    97
  9. Invalid Auction Storms in Ad Tech
    106
  10. Building MRC-Compliant Instrumentation in Ad Tech: Implementation Steps and Key Challenges
    207
  11. The Two Clocks of Ad Server Architecture
    77
  12. Frequency Cap Architecture Overview
    526
  13. Collecting Proof-of-Play from 100,000 Screens
    152
  14. Vector Search in Relational Databases (RDBs): Trends & Usage Environments
    302
  15. What is RedisVL?
    114
  16. Designing a Skill Registry Architecture: Minimize Token Usage and Maximize AI Performance
    246
  17. TPU & GPU Cluster Management Tools
    257
  18. The Concept of Scaffolding in AI Agents
    244
  19. Beyond Static Pipelines: Architecting LLM Multi-Agent Systems for Autonomous Workflow Orchestration
    596
  20. AI-DLC vs. AI-SDLC: Model-Centric vs. System-Centric AI Development
    267
  21. Fine-Tuning Open-Weight LLMs: Training, Licensing, and Deploying Custom Models with Ollama
    353
  22. Inside the Next-Generation Streaming Architecture: Ultra-Low Latency, SGAI, and AI Codecs
    206
  23. Machine Learning: Training vs. Ranking
    229
  24. The Continuous Learning Machine: Designing a Loop That Actually Turns
    228
  25. The Next-Gen Low-Latency Standards: LL-HLS & MoQ
    202
  26. Designing a Data Curation System Around a Vector Database
    230
  27. Extracting Context from Live Video: The Architecture Got Simpler When We Stopped Building Features
    263
  28. The New Ad Stack Behind Live Sports Streaming: Inside SGAI, EABN, and the Standards Race to Fix Live Monetization
    671
  29. Designing MLOps Architectures to Handle Seasonal Data Drift in EV Fleet Models
    200
  30. From 15 to 40+ FPS: Accelerating PyTorch Object Detection on Automotive ECUs
    232