MCP Security Bench (MSB): Benchmarking Attacks Against Model Context Protocol in LLM Agents
On the map: LLM agents and tool use → Agent threats, guardrails and governance
Abstract (arXiv)
The Model Context Protocol (MCP) standardizes how large language model (LLM) agents discover, describe, and call external tools. While MCP unlocks broad interoperability, it also enlarges the attack surface by making tools first-class, composable objects with natural-language metadata, and standardized I/O. We present MSB (MCP Security Benchmark), the first end-to-end evaluation suite that systematically measures how well LLM agents resist MCP-specific attacks throughout the full tool-use pipeline: task planning, tool invocation, and response handling. MSB contributes: (1) a taxonomy of 12 attacks including name-collision, preference manipulation, prompt injections embedded in tool descriptions, out-of-scope parameter requests, user-impersonating responses, false-error escalation, tool-transfer, retrieval injection, and mixed attacks; (2) an evaluation harness that executes attacks by running real tools (both benign and malicious) via MCP rather than simulation; and (3) a robustness metric that quantifies the trade-off between security and performance: Net Resilient Performance (NRP). We evaluate nine popular LLM agents across 10 domains and 405 tools, producing 2,000 attack instances. Results reveal the effectiveness of attacks against each stage of MCP. Models with stronger performance are more vulnerable to attacks due to their outstanding tool calling and instruction following capabilities. MSB provides a practical baseline for researchers and practitioners to study, compare, and harden MCP agents. Code: https://github.com/dongsenzhang/MSB
Key facts. Cited by 42 papers in the map (data through 14 Oct 2026). Placed in Agent threats, guardrails and governance, one of 16 directions in LLM agents and tool use. Builds on 42 of its 57 references that are in the map. First posted on arXiv 14 Oct 2025.
Builds on
42 of 57 references.
Closest ancestors · 14
Same direction, newest first
- 2025MCPTox: A Benchmark for Tool Poisoning Attack on Real-World MCP Servers19 Aug
- 2025MCPXKIT: The Unified Toolkit for Analyzing Model Context Protocol Security18 Aug
- 2025Bridging AI and Software Security: A Comparative Vulnerability Assessment of LLM Agent Deployment Paradigms8 Jul
- 2025RAS-Eval: A Comprehensive Benchmark for Security Evaluation of LLM Agents in Real-World Environments18 Jun
- 2025We Should Identify and Mitigate Third-Party Safety Risks in MCP-Powered Agent Systems16 Jun
- 2025MCP Safety Training: Learning to Refuse Falsely Benign MCP Exploits using Improved Preference Alignment29 May
- 2025MPMA: Preference Manipulation Attack Against Model Context Protocol16 May
- 2025MCP Safety Audit: LLMs with the Model Context Protocol Allow Major Security Exploits2 Apr
- 2024Agent-SafetyBench: Evaluating the Safety of LLM Agents19 Dec
- 2024Agent Security Bench (ASB): Formalizing and Benchmarking Attacks and Defenses in LLM-based Agents3 Oct
- 2024EnIGMA: Interactive Tools Substantially Assist LM Agents in Finding Security Vulnerabilities24 Sep
- 2024AgentDojo: A Dynamic Environment to Evaluate Prompt Injection Attacks and Defenses for LLM Agents19 Jun
2 more
Other references · 28
- 2024The Llama 3 Herd of Modelscited by 14,715
- 2022Large Language Models are Zero-Shot Reasonerscited by 4,374
- 2023Toolformer: Language Models Can Teach Themselves to Use Toolscited by 4,182
- 2025Gemini 2.5: Pushing the Frontier with Advanced Reasoning, Multimodality, Long Context, and Next Generation Agentic Capabilitiescited by 3,796
- 2023ToolLLM: Facilitating Large Language Models to Master 16000+ Real-world APIscited by 1,947
- 2023HuggingGPT: Solving AI Tasks with ChatGPT and its Friends in Hugging Facecited by 1,190
- 2023WizardLM: Empowering large pre-trained language models to follow complex instructionscited by 1,125
- 2025A-MEM: Agentic Memory for LLM Agentscited by 1,063
- 2024TravelPlanner: A Benchmark for Real-World Planning with Language Agentscited by 392
- 2023Chameleon: Plug-and-Play Compositional Reasoning with Large Language Modelscited by 356
- 2023Exploiting Programmatic Behavior of LLMs: Dual-Use Through Standard Security Attackscited by 278
- 2025Model Context Protocol (MCP): Landscape, Security Threats, and Future Research Directionscited by 265
16 more
- 2023Inverse Scaling: When Bigger Isn't Bettercited by 207
- 2024Improving Instruction-Following in Language Models through Activation Steeringcited by 160
- 2024The Impact of Reasoning Step Length on Large Language Modelscited by 153
- 2024Web Agents with World Models: Learning and Leveraging Environment Dynamics in Web Navigationcited by 126
- 2025Alita: Generalist Agent Enabling Scalable Agentic Reasoning with Minimal Predefinition and Maximal Self-Evolutioncited by 116
- 2025Model Context Protocol (MCP) at First Glance: Studying the Security and Maintainability of MCP Serverscited by 65
- 2024Multi-modal Agent Tuning: Building a VLM-Driven Agent for Efficient Tool Usagecited by 51
- 2024API-BLEND: A Comprehensive Corpora for Training and Benchmarking API LLMscited by 39
- 2025MCIP: Protecting MCP Safety via Model Contextual Integrity Protocolcited by 34
- 2025MCP-Zero: Active Tool Discovery for Autonomous LLM Agentscited by 33
- 2024Jailbreak Attacks and Defenses against Multimodal Generative Models: A Surveycited by 32
- 2025AgentDistill: Training-Free Agent Distillation with Generalizable MCP Boxescited by 30
- 2024From Complex to Simple: Enhancing Multi-Constraint Complex Instruction Following Ability of Large Language Modelscited by 27
- 2024SPaR: Self-Play with Tree-Search Refinement to Improve Instruction-Following in Large Language Modelscited by 23
- 2025We Urgently Need Privilege Management in MCP: A Measurement of API Usage in MCP Ecosystemscited by 15
- 2024Wait, that's not an option: LLMs Robustness with Incorrect Multiple-Choice Optionscited by 11
Built on by
Citing papers per year: 2026: 42.
42 papers.
Sort:
By area:
- 2026ClawGuard: A Runtime Security Framework for Tool-Augmented LLM Agents Against Indirect Prompt Injectioncited by 27
- 2026Security Threat Modeling for Emerging AI-Agent Protocols: A Comparative Analysis of MCP, A2A, Agora, and ANPcited by 15
- 2026AIRGuard: Guarding Agent Actions with Runtime Authority Controlcited by 13
- 2026AgentTrap: Measuring Runtime Trust Failures in Third-Party Agent Skillscited by 12
- 2026A Systematic Survey of Security Threats and Defenses in LLM-Based AI Agents: A Layered Attack Surface Frameworkcited by 11
- 2026Model Context Protocol Threat Modeling and Analyzing Vulnerabilities to Prompt Injection with Tool Poisoningcited by 10
- 2026Toward Secure LLM Agents: Threat Surfaces, Attacks, Defenses, and Evaluationcited by 7
- 2026MCP-38: A Comprehensive Threat Taxonomy for Model Context Protocol Systems (v1.0)cited by 6
- 2026MCPShield: A Security Cognition Layer for Adaptive Trust Calibration in Model Context Protocol Agentscited by 3
- 2026Graph Engineering in the Era of LLM Agents: From Individual Intelligence to System Intelligencecited by 3
- 2026Invisible Threats from Model Context Protocol: Generating Stealthy Injection Payload via Tree-based Adaptive Searchcited by 2
- 2026MCP-DPT: A Defense-Placement Taxonomy and Coverage Analysis for Model Context Protocol Securitycited by 2
30 more
- 2026Red-Teaming Agent Execution Contexts: Open-World Security Evaluation on OpenClawcited by 2
- 2026ShieldNet: Network-Level Guardrails against Emerging Supply-Chain Injections in Agentic Systemscited by 1
- 2026MCPHunt: An Evaluation Framework for Cross-Boundary Data Propagation in Multi-Server MCP Agentscited by 1
- 2026When the Manual Lies: A Realistic Benchmark to Evaluate MCP Poisoning Attacks for LLM Agentscited by 1
- 2026GIF: Locally Sound Geometric Information Flow Control for LLMscited by 1
- 2026Isolation as a First-Class Principle for LLM-Agent System Safety: Concepts, Taxonomy, Challenges and Future Directionscited by 1
- 2026ToolGuardian: Declarative Security for AI Agent-Tool Interactionscited by 1
- 2026Blockchain Empowered Trustworthy Agent Networks: Foundations, Taxonomy, and Future Directionscited by 1
- 2026MCPThreatHive: Automated Threat Intelligence for Model Context Protocol Ecosystemscited by 0
- 2026Securing Computer-Use Agents: A Unified Architecture-Lifecycle Framework for Deployment-Grounded Reliabilitycited by 0
- 2026Comment and Control: Hijacking Agentic Workflows via Context-Grounded Evolutioncited by 0
- 2026Securing Multi-Tool AI Agent Chains With Dynamic, Real-Time Compositional Policiescited by 0
- 2026DynamicMCPBench: A Trace-Grounded, Effect-Scored Benchmark for LLM Agents over Live MCP Serverscited by 0
- 2026Hardware Keystores for AI Agent Signing Workflows: A Zero-Trust MCP Enforcement Architecturecited by 0
- 2026Labels Are Not Endpoints: Treatment Leakage and Construct Validity in MCP Agent Security Evaluationcited by 0
- 2026When Agents Act on Web3: An Attack-Surface Survey of MCP, Skills, and Tool Callingcited by 0
- 2026TrustShiftProbe: Characterizing, Benchmarking, and Defending Staged Trust Attacks on MCP Serverscited by 0
- 2026Public-Sharing Labels and Verbatim Field Egress in an MCP-to-A2A Agent Configuration: A Controlled Multi-Model Studycited by 0
- 2026A Blind Trust, the Bloody Thrust: When Attacker-Controlled Hook Updates Steer AI Agent Harnesses towards Malicious Behaviorscited by 0
- 2026ActGuard: Pre-execution Action Auditing against Indirect Prompt Injection in LLM Agentscited by 0
- 2026Measuring and Exploiting Implicit Trust in LLM Tool-Calling Pipelinescited by 0
- 2026Connecting the Dots in Agentic AI Security: A Cross-Dimensional Threat Taxonomy, Evaluation Maturity, and Open Challengescited by 0
- 2026Attack Success Rate Is Not a Number: On Measurement Validity in Agentic AI Security Evaluationcited by 0
- 2026Persistent Billable State: Denial-of-Wallet Attacks and Defenses in Tool-Calling LLM Agentscited by 0
- 2026On the Effectiveness of Kernel-Level Evidence for Agent Securitycited by 0
- 2026PACE: Provenance-Aware Capability Enforcement for Tool-Using LLM Agentscited by 0
- 2026COPEX: Benchmarking LLM Robustness to Adversarial Context Across Model Context Protocol Layerscited by 0
- 2026APEX: Active Protection at Execution Boundaries for LLM Agentscited by 0
- 2026Agent-Canary-Mas: End-to-End Evaluation of Protocol Risk in Long-Horizon Multi-Agent Systemscited by 0
- 2026AgentSafeEvo: Adversarial Co-Evolution for LLM Agent Safetycited by 0
- 2026AgentSafeEvo: Adversarial Co-Evolution for LLM Agent Safety14 Oct 2026
- 2026Agent-Canary-Mas: End-to-End Evaluation of Protocol Risk in Long-Horizon Multi-Agent Systems11 Oct 2026
- 2026APEX: Active Protection at Execution Boundaries for LLM Agents3 Oct 2026
- 2026COPEX: Benchmarking LLM Robustness to Adversarial Context Across Model Context Protocol Layers3 Oct 2026
- 2026PACE: Provenance-Aware Capability Enforcement for Tool-Using LLM Agents1 Oct 2026
- 2026On the Effectiveness of Kernel-Level Evidence for Agent Security24 Sep 2026
- 2026Persistent Billable State: Denial-of-Wallet Attacks and Defenses in Tool-Calling LLM Agents23 Sep 2026
- 2026Attack Success Rate Is Not a Number: On Measurement Validity in Agentic AI Security Evaluation21 Sep 2026
- 2026Connecting the Dots in Agentic AI Security: A Cross-Dimensional Threat Taxonomy, Evaluation Maturity, and Open Challenges20 Sep 2026
- 2026Measuring and Exploiting Implicit Trust in LLM Tool-Calling Pipelines16 Sep 2026
- 2026ActGuard: Pre-execution Action Auditing against Indirect Prompt Injection in LLM Agents14 Sep 2026
- 2026A Blind Trust, the Bloody Thrust: When Attacker-Controlled Hook Updates Steer AI Agent Harnesses towards Malicious Behaviors3 Sep 2026
30 more
- 2026Public-Sharing Labels and Verbatim Field Egress in an MCP-to-A2A Agent Configuration: A Controlled Multi-Model Study1 Sep 2026
- 2026TrustShiftProbe: Characterizing, Benchmarking, and Defending Staged Trust Attacks on MCP Servers24 Aug 2026
- 2026Graph Engineering in the Era of LLM Agents: From Individual Intelligence to System Intelligence21 Aug 2026
- 2026When Agents Act on Web3: An Attack-Surface Survey of MCP, Skills, and Tool Calling18 Aug 2026
- 2026Labels Are Not Endpoints: Treatment Leakage and Construct Validity in MCP Agent Security Evaluation13 Aug 2026
- 2026Hardware Keystores for AI Agent Signing Workflows: A Zero-Trust MCP Enforcement Architecture6 Aug 2026
- 2026Blockchain Empowered Trustworthy Agent Networks: Foundations, Taxonomy, and Future Directions5 Aug 2026
- 2026ToolGuardian: Declarative Security for AI Agent-Tool Interactions23 Jul 2026
- 2026Isolation as a First-Class Principle for LLM-Agent System Safety: Concepts, Taxonomy, Challenges and Future Directions14 Jul 2026
- 2026DynamicMCPBench: A Trace-Grounded, Effect-Scored Benchmark for LLM Agents over Live MCP Servers10 Jul 2026
- 2026Securing Multi-Tool AI Agent Chains With Dynamic, Real-Time Compositional Policies3 Jul 2026
- 2026GIF: Locally Sound Geometric Information Flow Control for LLMs22 Jun 2026
- 2026Toward Secure LLM Agents: Threat Surfaces, Attacks, Defenses, and Evaluation9 Jun 2026
- 2026AIRGuard: Guarding Agent Actions with Runtime Authority Control27 May 2026
- 2026When the Manual Lies: A Realistic Benchmark to Evaluate MCP Poisoning Attacks for LLM Agents22 May 2026
- 2026AgentTrap: Measuring Runtime Trust Failures in Third-Party Agent Skills13 May 2026
- 2026Comment and Control: Hijacking Agentic Workflows via Context-Grounded Evolution11 May 2026
- 2026Red-Teaming Agent Execution Contexts: Open-World Security Evaluation on OpenClaw11 May 2026
- 2026Securing Computer-Use Agents: A Unified Architecture-Lifecycle Framework for Deployment-Grounded Reliability8 May 2026
- 2026MCPHunt: An Evaluation Framework for Cross-Boundary Data Propagation in Multi-Server MCP Agents30 Apr 2026
- 2026A Systematic Survey of Security Threats and Defenses in LLM-Based AI Agents: A Layered Attack Surface Framework25 Apr 2026
- 2026MCPThreatHive: Automated Threat Intelligence for Model Context Protocol Ecosystems15 Apr 2026
- 2026ClawGuard: A Runtime Security Framework for Tool-Augmented LLM Agents Against Indirect Prompt Injection13 Apr 2026
- 2026MCP-DPT: A Defense-Placement Taxonomy and Coverage Analysis for Model Context Protocol Security8 Apr 2026
- 2026ShieldNet: Network-Level Guardrails against Emerging Supply-Chain Injections in Agentic Systems6 Apr 2026
- 2026Invisible Threats from Model Context Protocol: Generating Stealthy Injection Payload via Tree-based Adaptive Search25 Mar 2026
- 2026Model Context Protocol Threat Modeling and Analyzing Vulnerabilities to Prompt Injection with Tool Poisoning23 Mar 2026
- 2026MCP-38: A Comprehensive Threat Taxonomy for Model Context Protocol Systems (v1.0)18 Mar 2026
- 2026MCPShield: A Security Cognition Layer for Adaptive Trust Calibration in Model Context Protocol Agents15 Feb 2026
- 2026Security Threat Modeling for Emerging AI-Agent Protocols: A Comparative Analysis of MCP, A2A, Agora, and ANP11 Feb 2026
- 2026ClawGuard: A Runtime Security Framework for Tool-Augmented LLM Agents Against Indirect Prompt Injectioncited by 27
- 2026Security Threat Modeling for Emerging AI-Agent Protocols: A Comparative Analysis of MCP, A2A, Agora, and ANPcited by 15
- 2026AIRGuard: Guarding Agent Actions with Runtime Authority Controlcited by 13
- 2026AgentTrap: Measuring Runtime Trust Failures in Third-Party Agent Skillscited by 12
- 2026A Systematic Survey of Security Threats and Defenses in LLM-Based AI Agents: A Layered Attack Surface Frameworkcited by 11
- 2026Toward Secure LLM Agents: Threat Surfaces, Attacks, Defenses, and Evaluationcited by 7
- 2026MCPShield: A Security Cognition Layer for Adaptive Trust Calibration in Model Context Protocol Agentscited by 3
- 2026Graph Engineering in the Era of LLM Agents: From Individual Intelligence to System Intelligencecited by 3
- 2026Invisible Threats from Model Context Protocol: Generating Stealthy Injection Payload via Tree-based Adaptive Searchcited by 2
- 2026MCP-DPT: A Defense-Placement Taxonomy and Coverage Analysis for Model Context Protocol Securitycited by 2
- 2026Red-Teaming Agent Execution Contexts: Open-World Security Evaluation on OpenClawcited by 2
- 2026ShieldNet: Network-Level Guardrails against Emerging Supply-Chain Injections in Agentic Systemscited by 1
12 most cited of 38 All 38 (JSON)
- 2026AgentSafeEvo: Adversarial Co-Evolution for LLM Agent Safety14 Oct 2026
- 2026Agent-Canary-Mas: End-to-End Evaluation of Protocol Risk in Long-Horizon Multi-Agent Systems11 Oct 2026
- 2026APEX: Active Protection at Execution Boundaries for LLM Agents3 Oct 2026
- 2026COPEX: Benchmarking LLM Robustness to Adversarial Context Across Model Context Protocol Layers3 Oct 2026
- 2026PACE: Provenance-Aware Capability Enforcement for Tool-Using LLM Agents1 Oct 2026
- 2026On the Effectiveness of Kernel-Level Evidence for Agent Security24 Sep 2026
- 2026Persistent Billable State: Denial-of-Wallet Attacks and Defenses in Tool-Calling LLM Agents23 Sep 2026
- 2026Attack Success Rate Is Not a Number: On Measurement Validity in Agentic AI Security Evaluation21 Sep 2026
- 2026Connecting the Dots in Agentic AI Security: A Cross-Dimensional Threat Taxonomy, Evaluation Maturity, and Open Challenges20 Sep 2026
- 2026Measuring and Exploiting Implicit Trust in LLM Tool-Calling Pipelines16 Sep 2026
- 2026ActGuard: Pre-execution Action Auditing against Indirect Prompt Injection in LLM Agents14 Sep 2026
- 2026A Blind Trust, the Bloody Thrust: When Attacker-Controlled Hook Updates Steer AI Agent Harnesses towards Malicious Behaviors3 Sep 2026
12 newest of 38 All 38 (JSON)
- 2026MCP-38: A Comprehensive Threat Taxonomy for Model Context Protocol Systems (v1.0)cited by 6
- 2026MCPHunt: An Evaluation Framework for Cross-Boundary Data Propagation in Multi-Server MCP Agentscited by 1
- 2026Labels Are Not Endpoints: Treatment Leakage and Construct Validity in MCP Agent Security Evaluationcited by 0
- 2026Labels Are Not Endpoints: Treatment Leakage and Construct Validity in MCP Agent Security Evaluation13 Aug 2026
- 2026MCPHunt: An Evaluation Framework for Cross-Boundary Data Propagation in Multi-Server MCP Agents30 Apr 2026
- 2026MCP-38: A Comprehensive Threat Taxonomy for Model Context Protocol Systems (v1.0)18 Mar 2026
Similar, not cited
Close in wording, no citation either way
- 2026Breaking the Protocol: Security Analysis of the Model Context Protocol Specification and Prompt Injection Vulnerabilities in Tool-Integrated LLM Agents
- 2025MCPSecBench: A Systematic Security Benchmark and Playground for Testing Model Context Protocols
- 2025MCP-SafetyBench: A Benchmark for Safety Evaluation of Large Language Models with Real-World MCP Servers
- 2025Beyond the Protocol: Unveiling Attack Vectors in the Model Context Protocol (MCP) Ecosystem
- 2026Hybrid Analysis for Secure MCP Tool Use in LLM Agents
- 2025A First Look at the Security Issues in the Model Context Protocol Ecosystem
- 2025Parasites in the Toolchain: A Large-Scale Analysis of Attacks on the MCP Ecosystem
- 2026A Formal Security Framework for MCP-Based AI Agents: Threat Taxonomy, Verification Models, and Defense Mechanisms