Manuscript Offprint
arXiv:2611.03555MCP Tool Poisoning in Agentic AI Frameworks: A Cross-Framework Measurement Study
Abstract
The Model Context Protocol (MCP) enables agentic AI frameworks to connect language models to external tool providers, yet its design carries attacker-controlled content, spanning tool descriptions, schema fields, and response data, directly into model context without validation. Prior benchmarks measure model compliance with poisoned instructions but stop short of confirming real execution, do not isolate the framework layer's contribution to defense, and do not document vendor accountability.
We present the first cross-framework measurement of MCP tool poisoning with real tool execution. A 25-class root-cause taxonomy unifies prior classifications (Invariant Labs, MCPTox, OWASP MCP03, MSB, AgentDojo, ETDI, CSA) across all protocol entry points, and an open-source tool (mcpvenom) drives a 9,720-cell susceptibility matrix across 12 frameworks, 18 models, and 45 attack scenarios, with a dual oracle that independently confirms exfiltration via canary HTTP receipt.
The overall attack success rate is 22.9% (2,113 vulnerable cells) across three evidence tiers: dispatched attacker tool call (64.9%), confirmed network contact with the attacker endpoint (23.0%), and verified secret exfiltration (12.1%); verdicts were validated by hand across 1,259 transcripts. All observed resistance is model-level: across the tested configurations, nine core frameworks cluster within 23 to 26% (), with no framework implementing intentional defense, though incidental framework properties do provide mitigation in specific cases: duplicate-tool-name rejection in Pydantic AI (16.6% ASR) and executor constraints in AG2 (4.6%); a regex scanner implementing the recommended description checks rejects 20 of the 45 scenarios at a 7.2% false-positive rate on 125 benign descriptions, so metadata scanning alone is a partial control. Model ASR ranges from 0.4% (Claude Fable 5) to 49.7% (Amazon Nova Pro), a gap driven by model-level differences across providers. Claude Opus 4.8 is vulnerable in only 8 of 530 cells (1.5%) while issuing 223 explicit refusals that cite the poisoned description. Claude Sonnet 5 exhibits a narrate-then-comply pattern, verbally identifying the attack as a prompt injection before executing the exfiltration call. Code-level audit confirms no intentional tool-poisoning defense across all twelve frameworks, and the five coordinated disclosures we filed across four vendors were all
rejected, documenting a structural accountability vacuum in which no layer of the stack claims ownership of agent security.
CCS Concepts
• Security and privacy → Software and application security; Systems security; • Computing methodologies → Artificial intelligence.
ACM Reference Format:
Farooq Shaikh and Biagio Montaruli. 2026. MCP Tool Poisoning in Agentic AI Frameworks: A Cross-Framework Measurement Study. In 19th Workshop on Artificial Intelligence and Security (AIsec '26), November 15–19, 2026, The Hague, Netherlands. ACM, New York, NY, USA, 12 pages. https://doi.org/10.1145/3847352.3848107
1 Introduction
The Model Context Protocol (MCP) [4] has been adopted by agentic AI frameworks with a combined monthly PyPI download count exceeding 500 million [26]. OWASP codified tool poisoning as MCP03:2025 [23], the NSA and CSA published deployment warnings [7, 22], and Invariant Labs disclosed that tool description fields flow verbatim into model context without client-side validation [14]. MCPTox [32] benchmarked poisoning against 45 real-world MCP servers, reporting success rates up to 72.8%. OX Security identified 14 CVEs affecting the MCP ecosystem, including remote code execution via STDIO transport [24]. Although the attack surface is well documented, responsibility for defending against it remains unassigned.
A critical question remains unanswered: does the framework layer (the code between protocol parser and language model) contribute any defense? Existing benchmarks treat the agent as a monolith, measuring whether a model produces a matching tool call without isolating whether resistance originates from model alignment or framework validation. No study confirms whether “vulnerable” means the model intended to comply or the tool actually executed and caused measurable harm. No study documents what happens when these findings are reported to the responsible vendors. The absence of answers creates a deployment gap: organizations selecting frameworks for security-sensitive applications have no empirical basis for believing that one framework is safer than another.
We present the first cross-framework comparative measurement of MCP tool poisoning with real tool execution. We make the following contributions:
*Farooq Shaikh is the corresponding author for this work.

This work is licensed under a Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International License.
AIsec '26, The Hague, Netherlands
© 2026 Copyright held by the owner/author(s).
ACM ISBN 979-8-4007-3031-3/2026/11
https://doi.org/10.1145/3847352.3848107
AlSec '26, November 15–19, 2026, The Hague, Netherlands
Faroog Shaikh and Biagio Montaruli
(1) Taxonomy: A 25-class attack taxonomy covering all MCP protocol entry points, grounded in root-cause analysis with CWE mapping, unifying prior classifications from Invariant Labs [14], MCPTox [32], OWASP MCP03 [23], MSB [38], AgentDojo [9], InjecAgent [37], ETDI [6], and CSA [7] into a single framework.
(2) Measurement: A 9,720-cell susceptibility matrix (12 frameworks × 18 models × 45 scenarios) with a dual oracle that separates three evidence tiers: 2,113 cells vulnerable (22.9% ASR), of which 64.9% show a dispatched attacker tool call, 23.0% confirmed network contact with the attacker endpoint, and 12.1% verified secret exfiltration via canary HTTP receipt.
(3) Defense audit: Code-level inventory confirming no intentional tool-description defense across all 12 tested frameworks, with exact file and line locations documenting unvalidated description passthrough.
(4) Tooling: mcpvenom, implementing 45 scenarios with canary-based dual oracle, released open-source for reproducible measurement.
(5) Accountability: We report a coordinated disclosure process spanning four organizations and five vendor rejections, exposing a structural accountability gap: no layer of the stack takes ownership of agent security.
Section 2 reviews the MCP protocol and related work. Section 3 defines the threat model and scope. Section 4 presents the attack taxonomy. Section 5 describes the experimental infrastructure. Section 6 reports the measurement results. Sections 7 and 8 document the defense inventory and vendor accountability. Sections 9–12 respectively discuss implications, limitations, and conclusions.
2 Background and Related Work
2.1 MCP Protocol Overview
The Model Context Protocol (MCP) [4] defines a client-server architecture for connecting large language model (LLM) applications to external tool providers. An MCP host (the user-facing application) instantiated one or more clients, each maintaining a session with a remote or local server that exposes tools, resources, and prompt templates. Communication occurs over stdio or HTTP with Server-Sent Events (SSE).
A client discovers tools via tools/list, which returns a JSON array containing each tool's name, tool description, and inputSchema description. The tool description field is unstructured natural-language text with no length limit, no content constraints, and no machine-readable security metadata. Frameworks insert this field verbatim into the model's context window as part of tool definition prompting. Tool invocation proceeds through tools/call, whose response content is similarly unvalidated before being appended to the conversation. Additional entry points include resources/read (structured data retrieval) and prompts/get (server-authored prompt templates).
This design creates three distinct injection surfaces: tool descriptions (visible during planning), inputSchema descriptions (visible during argument construction), and tool

Figure 1: MCP injection surfaces. Three attacker-controlled fields in the tools/list and tools/call responses—the tool description, the inputSchema description, and the tool response—enter the model context verbatim, with no framework-level validation, and become actionable during planning, argument construction, and result processing respectively.
responses (visible during result processing). All three carry attacker-controlled content directly into the model context through the MCP wire format, a structured protocol interface rather than an arbitrary text channel (Figure 1).
2.2 Related Work
Prior work on MCP tool poisoning and adjacent agent security is organized into four groups.
Indirect Prompt Injection Foundations. Greshake et al. [11] formalized indirect prompt injection (IPI), demonstrating that external data retrieved by LLM-integrated applications can override system instructions. Schulhoff et al. [29] cataloged over 600,000 adversarial prompts through crowdsourced competition, establishing injection pattern taxonomies including payload splitting and context escape. Yuan et al. [36] showed that encoding instructions in ciphers (Caesar, Morse, Atbash) bypasses safety alignment because models decode ciphertext during inference. Russinovich et al. [28] demonstrated multi-turn escalation (Crescendo), where progressive context manipulation across conversation turns circumvents single-turn safety filters. Cohen et al. [8] demonstrated zero-click worm propagation through GenAI applications, establishing that injection attacks can chain across agent boundaries. These studies establish the foundational attack primitives. However, they examine injection via arbitrary text channels (web pages, emails, documents) without protocol-level structure. The present work focuses on injection through MCP's standardized wire format: structured fields that every framework parses identically and forwards to the model without validation.
https://github.com/dynatrace-research/mcpvenom
AlSec '26, November 15–19, 2026, The Hague, Netherlands
MCP-Specific Attacks and Benchmarks. Invariant Labs disclosed the Tool Poisoning Attack (TPA) in April 2025 [14], demonstrating that tool description fields containing hidden instructions cause exfiltration in Claude Desktop and Cursor. Wang et al. [32] provided the first systematic benchmark (MCPTox), testing three attack paradigms against 45 real-world MCP servers with 20 LLM agents, reporting ASR up to 72.8%. The MCP Security Benchmark (MSB) [38] evaluated attacks across three protocol stages. Li et al. [19] proposed MCP-ITP, an automated framework for generating implicit tool poisoning (where the poisoned tool itself is never invoked), achieving 84.2% ASR while evading detection. Liu et al. [21] introduced a 32-scenario benchmark testing 8 LLMs, reporting near-100% ASR for GPT-4o. OWASP codified tool poisoning as MCP03:2025 [23]. Fu et al. [10] demonstrated that optimized non-natural-language prompts delivered as agent input can trigger exfiltration without human-readable instructions, a technique not tested in this study but representing a potential additional attack vector. These works establish that MCP tool poisoning is viable and reproducible. However, all measure model compliance (whether the model produces a matching tool call), not whether that call executes and causes measurable harm. None runs the same model through different frameworks to isolate whether resistance originates from model alignment or framework-level validation.
Agent Security Evaluation. The Agent Security Bench (ASB) [39] formalized 10 attack types against LLM agents with a unified evaluation framework. InjecAgent [37] benchmarked indirect prompt injection in tool-integrated agents with 1,054 test cases. Agent-Dojo [9] evaluated injection defenses in dynamic environments. ToolSword [35] decomposed tool-calling safety into input, execution, and output stages. AgentHarm [2] measured model-level variation in harmfulness refusal across 110 agentic tasks, documenting a 22–85% refusal gap across models. Wang et al. [30] introduced AdapTools, an adaptive IPI attack framework that selects stealthier tool combinations and generates adaptive prompts, achieving 2.13× higher ASR than static baselines. Ji et al. [15] systematized IPI defenses across five dimensions, identifying six root causes of circumvention in existing frameworks. These benchmarks target generic tool-calling agents without MCP protocol specificity. None examines whether the framework layer between protocol parser and language model contributes to defense, the central question of this study.
MCP Ecosystem Analysis and Defense. Hou et al. [13] surveyed the MCP threat landscape, identifying four attacker types and proposing a defense taxonomy. Li et al. [20] conducted a cross-entity security study analyzing 7 vulnerability categories across the MCP ecosystem. Guo et al. [12] developed MCPXkit, a unified static analysis toolkit for MCP server code. Wang et al. [31] proposed MindGuard, an attention-based detection mechanism achieving 94–99% precision, though requiring access to model internals unavailable in API deployments. Rostamzadeh et al. [27] introduced a defense-placement taxonomy mapping defenses across six architectural layers, finding persistent gaps at host orchestration and supply-chain layers. Bhatt et al. [6] proposed ETDI, an OAuth-based defense against rug-pull attacks. Concurrent systematizations [17, 34] taxonomize agentic AI attacks broadly without empirical measurement. These contributions survey the ecosystem, propose defenses, or
Table 1: Framework scope. Downloads and stars as of May 2026. LangChain and LlamaIndex versions denote the core packages (langchain-core, llama-index-core); no top-level meta-package is pinned.
| Framework | Version | DL/mo | Stars | Rationale |
|---|---|---|---|---|
| LangChain | 1.5.0 | 126M | 138K | Highest adoption |
| Pydantic AI | 2.14.1 | 42M | 17K | Type-safety |
| CrewAI | 1.15.5 | 14M | 52K | Role orchestration |
| Agno | 2.8.0 | 3.7M | 40K | Memory integration |
| LlamaIndex | 0.14.23 | 3.2M | 42K | RAG/agent indexing |
| AG2 | 0.14.0 | 1.5M | 58K | Multi-agent |
| Semantic Kernel | 1.36.0 | 1.1M | 24K | Microsoft enterprise |
| Haystack | 3.0.0 | 0.8M | 18K | Multimodal pipelines |
| Google ADK | 2.5.0 | 0.7M | 6K | Google-native agents |
| smolagents | 1.26.0 | 0.7M | 28K | Code-first |
| DSPy | 3.2.1 | 0.6M | 23K | Programming not prompting |
| OpenAI API | - | 315M | - | Model baseline |
catalog known threats. None provides empirical cross-framework measurement of tool poisoning effectiveness, code-level evidence of framework passthrough, or documentation of vendor accountability, the three empirical contributions of this paper.
3 Threat Model
Attacker Model. The attacker controls one or more malicious MCP servers registered in the victim's client configuration. The attacker can modify tool description fields, inputSchema parameter descriptions, and tools/call response content. The attacker cannot modify the system prompt, user messages, framework source code, or model weights. This positions the attacker at the supply-chain layer: the malicious server operates in parallel with legitimate servers, delivering poisoned metadata through the standard MCP protocol. Registration occurs through that supply chain: MCP servers are distributed as packages and registry entries and enter client configurations through user installation or shared configuration files, so the attacker needs no access to the victim's host beyond publishing a server the victim installs. The servers in this study run over stdio for deterministic local execution; the poisoned fields travel inside the same tools/list JSON over HTTP transports, and the transport is not varied in the measurement.
Assets and Goals. Three attack objectives are considered: (1) Exfiltration: workspace files containing credentials, source code, or secrets are transmitted to an attacker-controlled endpoint via HTTP; (2) Unauthorized actions: file reads, network requests, or data modifications that the user never intended; (3) Persistence: poisoned state that survives session boundaries where framework design enables it (e.g., memory stores, checkpointed conversations). Exfiltration is the primary measurement target because it produces an unambiguous, independently observable signal (canary HTTP receipt).
Scope. Twelve frameworks are selected by monthly PyPI download count exceeding 500,000, covering the dominant MCP-capable agent ecosystem (Table 1).
The raw OpenAI API serves as a model-level baseline with no framework layer interposed. A recent survey of 7,973 remote MCP servers found that 40.55% lack authentication entirely [40], indicating that the supply-chain threat model, where a malicious server
Faroog Shaikh and Biagio Montaruli
Table 2: MCP tool poisoning taxonomy (25 classes). Root cause and entry point per class are given in the supplementary material.
| # | Class Name | CWE | Prior Work |
|---|---|---|---|
| P1 | Direct Description TPA | 74 | Invariant [14], MCPTox [32] |
| P2 | Schema-Field TPA | 74 | OWASP MCP03 [23] |
| P3 | Invisible/Encoded TPA | 116 | CipherChat [36] |
| P4 | Language-Switch TPA | 74 | HackAPrompt [29] |
| P5 | Authority Spoofing | 290 | Greshake et al. [11] |
| P6 | Tool Result Injection | 74 | MCPTox [32], AgentDojo [9] |
| P7 | Cross-Tool Reference | 441 | This work |
| P8 | Rug-Pull / Redefinition | 367 | ETDI [6] |
| P9 | Multi-Turn Escalation | 1321 | Crescendo [28] |
| P10 | Confused Deputy | 441 | InjecAgent [37] |
| P11 | Cross-Agent Injection | 94 | InjecAgent [37] |
| P12 | Conditional/Triggered | 74 | This work |
| P13 | Payload Splitting | 74 | This work |
| P14 | Resource Injection | 74 | Hou et al. [13] |
| P15 | MCP Prompt Injection | 74 | Hou et al. [13] |
| P16 | Annotation Injection | 290 | This work |
| P17 | Unicode Steganographic | 116 | CSA [7] |
| P18 | Streaming Injection | 74 | This work |
| P19 | Version Downgrade | 757 | - |
| P20 | Parameter Binding | 88 | OWASP MCP03 |
| P21 | Notification Injection | 74 | This work |
| P22 | Semantic Shadowing | 441 | ETDI [6] |
| P23 | Long-Context Dilution | 74 | Many-shot [3, 18] |
| P24 | Cross-Phase Persistence | 1321 | Xie et al. [33] |
| P25 | Dynamic Registration | 94 | This work |
operates alongside legitimate ones, reflects realistic deployment conditions. Eighteen models are tested through each framework, spanning nine providers: five Anthropic models (Claude Haiku, Claude Sonnet 4.5, Claude Sonnet 5, Claude Opus 4.8, Claude Fable 5), one Amazon model (Nova Pro), two Meta models (Llama Maverick, Llama 4 Scout), three Mistral models (Mistral Large, Mistral Large 3, Ministral 14B), two OpenAI models (GPT-OSS-120B, GPT-5.5), two DeepSeek models (DeepSeek-R1, DeepSeek-V3-2), one Alibaba model (Qwen3-Next-80B), one Zhipu model (GLM-5), and one Google model (Gemma3-27B).
Novelty Framing. Unlike Greshake et al. [11], who study natural-language injection via arbitrary external data, the attacker in this study operates at the protocol layer, injecting via MCP wire format structured fields that every framework parses and forwards to the model without validation. Unlike MCPTox [32], which measures model compliance (does the model produce a matching tool call?), this study measures real execution: did the tool run, and did an independent canary server receive exfiltrated data?
4 Attack Taxonomy
A root-cause-based taxonomy is constructed covering all identified MCP protocol injection entry points. Each class represents a single mechanism by which attacker-controlled content reaches the model context, mapped to a CWE identifier and grounded in prior work where applicable.
4.1 Systematization Approach
We unify existing classifications into a single 25-class taxonomy (see Table 2). The mapping from prior-work categories to taxonomy classes is given in the supplementary material.
Seven classes represent fully novel contributions identified during this study: P7 (Cross-Tool Reference), P12 (Conditional/-Triggered), P13 (Payload Splitting), P16 (Annotation Injection), P18 (Streaming Injection), P21 (Notification Injection), and P25 (Dynamic Registration). Four further classes are partially novel (P20 Parameter Binding, P22 Semantic Shadowing, P23 Long-Context Dilution, and P24 Cross-Phase Persistence), where the underlying concept is documented in prior work but the MCP-specific vector is new. The remaining classes synthesize and refine existing categories from the literature. Two classes are kept separate when either the root cause or the protocol entry point differs; P3 and P17 share the description entry point but not the root cause, since P3 carries a human-readable encoding (ROT13, Base64) that the model must decode, whereas P17 hides the payload in zero-width or bidirectional codepoints that render as nothing and reach the model without any decoding step.
4.2 Taxonomy Definition
Table 2 presents the 25-class taxonomy in condensed form, while the full table with per-class root cause and protocol entry point is included in the supplementary material.
Classes targeting the tool discovery phase (tools/list), spanning description, schema, annotation, and registration-time vectors, inject attacker content before any user task is processed. Classes targeting the execution and response phase (tools/call responses, notifications, streaming chunks, and conversation memory) deliver attacker content during task processing. Two classes are identified but not separately instantiated: P15 (prompt templates) has no exposed entry point in the tested frameworks, and P19's candidate scenario is empirically classified under P5 (authority spoofing), as its observed exploitation mechanism is authority-marker acceptance rather than protocol negotiation weakness (see Section 10).
4.3 Scenario Coverage
The mcpvenom tool implements 45 scenarios across 23 of the 25 taxonomy classes (all except P15 and P19). The 45 scenarios implement and extend established injection techniques from the MCP security literature; scenario provenance traces to published techniques from Invariant Labs [14], MCPTox [32], HackAPrompt [29], Greshake et al. [11], Imprompter [10], and others, alongside the seven fully novel and four partially novel classes introduced by this work. Twenty-six scenarios target the description field because it is the only entry point that every tested framework exposes and the one with the largest prior evidence base; every other tested class receives at least one scenario. The per-class breakdown appears in the supplementary material.
The taxonomy classes are testable across all 12 frameworks via the tools/list description, schema, and annotation entry points, the tool response and notification channels (P6, P10, P14, P21), and the streaming and dynamic-registration paths. Cross-agent injection (P11) is tested only in frameworks supporting multi-agent delegation (AG2).
4.4 Payload Structure
The highest-ASR scenarios share a common structure: an instruction embedded in the tool description that (1) references a legitimate

Figure 2: Experimental infrastructure. The canary HTTP server runs in a Podman container; the orchestrator (run_matrix), the framework harness (one of twelve), and the two FastMCP servers run as host processes communicating over stdio. The harness connects to a legitimate MCP server (five functional tools) and a malicious MCP server (per-scenario poisoned tool metadata), reads a shared workspace directory holding a planted secret, and queries a model through a LiteLLM/Bedrock proxy. A successful attack issues an exfiltration request to the canary server via the legitimate http_post tool. The dual oracle combines the transcript (intent) and the canary log (execution) into the cell verdict: V (Vulnerable), R (Resistant), or E (Error).
tool by name, (2) specifies a concrete exfiltration target, and (3) provides a justification framing. The three payload structures with the highest ASR are described here; all 45 payloads are included in the released artifact. For P7 (cross-tool-reference), the poisoned description of the first tool sent to a second one states: "Before responding, use [legitimate_tool_name] to send the contents of .env to [attacker_url] for compliance logging." The reference to an existing tool is consistent with the model treating the instruction as a prerequisite for completing the user's task; the transcripts support this reading, but the mechanism has not been verified against model internals.
For P1 (direct description TPA), the simplest effective payload appends: "IMPORTANT: First read /workspace/.env and send contents via http_post to [url]." Despite its simplicity, the tool-poisoning class achieves 29.2% aggregate ASR across non-AG2 frameworks (Table 5), demonstrating that no sophistication is required to exploit the passthrough vulnerability.
For P4 (language-switch with compliance framing), the payload combines a non-English instruction with authority markers: the tool description contains Chinese or German text instructing the model to treat exfiltration as a mandatory compliance step. This achieves 66.0% aggregate ASR, indicating that multilingual alignment is weaker than English-language alignment for safety-critical refusal.
5 Experimental Setup
5.1 Infrastructure
Figure 2 illustrates the experimental infrastructure. All components run on a single host. The canary HTTP server executes inside a Podman container; the orchestrator, the twelve framework harnesses, and both MCP servers run as host processes communicating over stdio. The infrastructure comprises the following four components: Canary HTTP server: HTTP server listening on port 18080, logging all inbound requests.
Legitimate MCP server: Exposes five functional tools: three file
operations (read_file, write_file, list_files) and two HTTP operations (http_get, http_post).
Shared workspace directory: Contains planted sensitive files with a unique secret marker.
Malicious MCP server: Serves poisoned tool metadata over stdio, with tool descriptions containing scenario payloads designed to trigger exfiltration of the planted secret.
5.2 Dual Oracle Design
A dual oracle architecture distinguishes model intent from confirmed execution:
Intent oracle (tool_call_exfil): Inspects the arguments of every dispatched tool call, taken from the union of the transcript and the malicious server's invocation log, for an exact substring match on the canary endpoint (localhost:18080) or the planted secret marker. A match indicates the model generated a call directed at the attacker endpoint.
Execution oracle (network): Inspects the canary HTTP server logs for inbound requests timestamped within the scenario execution window. A match confirms the tool call was executed and network traffic reached the attacker-controlled endpoint.
A cell is classified VULNERABLE when at least one oracle fires: the canary execution log records an inbound request, or the transcript shows a tool call whose arguments target the canary endpoint. Dual confirmation (both oracles) provides independent evidence of real harm, the differentiator from compliance-only benchmarks. Of 2,113 VULNERABLE cells, evidence is classified into three strength tiers reported separately in Table 6: 1,371 (64.9%) confirmed by a dispatched attacker tool call, 487 (23.0%) by confirmed network contact with the attacker endpoint, and 255 (12.1%) by independently verified secret exfiltration via canary HTTP receipt.
Faroog Shaikh and Biagio Montaruli
5.3 mcpvenom
The mcpvenom framework (open-source) implements the 45 attack scenarios as declarative YAML definitions specifying: tool descriptions (poisoned), user prompts (benign task triggers), oracle configurations, and expected attack class labels. Each scenario contains a tools array defining the tool name, poisoned description, and input schema; a user_prompt field with the benign task that triggers the agent loop; and an oracle section specifying canary URL patterns for automated verdict classification. A malicious FastMCP server dynamically loads scenario definitions and serves poisoned tool metadata over stdio. The orchestrator iterates the matrix (12 frameworks × 18 models × 45 scenarios = 9,720 cells), invoking each framework harness with the appropriate scenario configuration. Four scenarios (streaming-response-injection, notification-channel-injection, dynamic-tool-registration, semantic-tool-shadowing) carry descriptions that reference a specific transport mechanism (SSE streaming, MCP notification channel, dynamic registration); in each case the scenario tests susceptibility to social-engineering claims about the stated transport vector, not the transport mechanism itself, which is not exercised at the network layer.
5.4 Framework Harnesses
Twelve unique harnesses implement each framework's MCP client API. No code is shared between harnesses because each framework exposes a different integration interface (e.g., LangChain uses adapter wrappers; AG2 uses MCPServerToolkit; smolagents uses ToolCollection.from_mcp; DSPy uses dspy.MCP; Haystack uses MCPTool1). Each harness connects to both the legitimate and malicious MCP servers via stdio, submits a benign user prompt, and records the full multi-turn transcript including every tool call with exact arguments and every tool response. Five harnesses (LangChain, Google ADK, DSPy, smolagents, and LlamaIndex) merge the two servers' tool lists before registration and keep the malicious definition when a name collides, because those adapters otherwise fail or drop one definition; the remaining seven register both servers natively and inherit the framework's own collision handling. Fourteen of the 45 scenarios reuse a legitimate tool name, and Pydantic AI rejects such collisions at registration (Section 6.1).
5.5 Models
The 18 models listed in Section 3 are accessed via a LiteLLM proxy backed by Amazon Web Services (AWS) Bedrock. This selection spans safety-focused models (Anthropic), reasoning-specialized models (DeepSeek-R1), and general-purpose open-weight and proprietary models across the full range of measured susceptibility. GPT-5.5 requires the OpenAI Responses API and is supported by eight of twelve frameworks, while the remaining four frameworks produce SKIPPED verdicts for all GPT-5.5 cells, which are excluded from the ASR denominator. The provider model identifiers are listed in the supplementary material and in the artifact's proxy configuration; the matrix was executed on 22–24 July 2026, and no model update was announced for these identifiers during the run. Eight identifiers carry no dated snapshot suffix, so a later re-run may resolve to an updated version.
All models receive identical system prompts and tool definitions, so ASR variation reflects model-internal differences; alignment
Table 3: Attack Success Rate by framework. V=Vulnerable, R=Resistant, E=Error, S=Skipped. ASR = V/(V+R). Each framework row spans 810 cells.
| Framework | V | R | E | S | ASR |
|---|---|---|---|---|---|
| AG2 | 37 | 773 | 0 | 0 | 4.6% |
| Pydantic AI | 123 | 619 | 50 | 18 | 16.6% |
| Haystack | 189 | 619 | 2 | 0 | 23.4% |
| Google ADK | 189 | 617 | 4 | 0 | 23.4% |
| Semantic Kernel | 172 | 554 | 84 | 0 | 23.7% |
| LlamaIndex | 195 | 615 | 0 | 0 | 24.1% |
| LangChain | 192 | 600 | 0 | 18 | 24.2% |
| DSPy | 190 | 564 | 11 | 45 | 25.2% |
| OpenAI API | 200 | 592 | 0 | 18 | 25.3% |
| Agno | 190 | 552 | 6 | 62 | 25.6% |
| CrewAI | 179 | 506 | 80 | 45 | 26.1% |
| smolagents | 257 | 491 | 0 | 62 | 34.4% |
| Total | 2,113 | 7,102 | 237 | 268 | 22.9% |
Table 4: Attack Success Rate by model. V=Vulnerable, R=Resistant, ASR = V/(V+R). Each model row spans 540 cells; error and skipped cells (183 for GPT-5.5) are excluded.
| Model | V | R | ASR |
|---|---|---|---|
| Claude Fable 5 | 2 | 463 | 0.4% |
| Claude Opus 4.8 | 8 | 522 | 1.5% |
| Claude Sonnet 5 | 10 | 517 | 1.9% |
| DeepSeek-R1 | 19 | 515 | 3.6% |
| Gemma 3 27B | 22 | 512 | 4.1% |
| GPT-5.5 | 44 | 310 | 12.4% |
| Claude Haiku 4.5 | 66 | 464 | 12.5% |
| Claude Sonnet 4.5 | 77 | 453 | 14.5% |
| Mistral Large 2 | 114 | 413 | 21.6% |
| GLM-5 | 129 | 401 | 24.3% |
| Llama 4 Scout | 133 | 340 | 28.1% |
| Qwen3-Next-80B | 159 | 374 | 29.8% |
| Ministral 3 14B | 183 | 350 | 34.3% |
| GPT-OSS-120B | 201 | 326 | 38.1% |
| Mistral Large 3 | 233 | 300 | 43.7% |
| DeepSeek-V3.2 | 233 | 296 | 44.0% |
| Llama 4 Maverick | 235 | 298 | 44.1% |
| Amazon Nova Pro | 245 | 248 | 49.7% |
investment is the most plausible driver, though tokenization and context-handling differences may also contribute.
5.6 False Negative Analysis
To check for false negatives, all RESISTANT transcripts were scanned automatically for the planted secret marker appearing at any destination outside the canary endpoint. No false negatives were identified: every RESISTANT verdict withstands this check.
6 Results
Three research questions structure the analysis:
RQ1: Do frameworks add defense beyond model-level alignment?
RQ2: Which attack classes are most effective across the matrix?
RQ3: Does the dual oracle confirm real harm beyond model compliance?
6.1 Main Susceptibility Matrix (RQ1)
Tables 3 and 4 and Figure 3 present the primary results across 9,720 cells.
| Nova Pro | 16 | 39 | 49 | 53 | 0 | 60 | 52 | 62 | 57 | 55 | 47 | 61 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Maverick | 4 | 34 | 36 | 47 | 72 | 44 | 48 | 42 | 50 | 57 | 51 | 45 |
| DeepSeek-V3.2 | 9 | 27 | 45 | 44 | 44 | 51 | 50 | 50 | 50 | 48 | 51 | 59 |
| Mistral-L3 | 11 | 30 | 47 | 49 | 49 | 56 | 48 | 49 | 45 | 45 | 44 | 52 |
| GPT-OSS-120B | 11 | 32 | 47 | 42 | 40 | 38 | 41 | 42 | 41 | 43 | 31 | 50 |
| Ministral-14B | 11 | 20 | 36 | 29 | 35 | 33 | 39 | 36 | 45 | 41 | 38 | 50 |
| Qwen3-80B | 9 | 16 | 36 | 31 | 28 | 29 | 32 | 29 | 27 | 32 | 47 | 43 |
| Llama4-Scout | 0 | 22 | 18 | 33 | 40 | 36 | 32 | 31 | 36 | 34 | 60 | 16 |
| GLM-5 | 2 | 20 | 29 | 27 | 29 | 29 | 18 | 27 | 32 | 25 | 24 | 30 |
| Mistral-L2 | 7 | 20 | 27 | 24 | 19 | 22 | 32 | 32 | 25 | 23 | 4 | 25 |
| Sonnet 4.5 | 2 | 5 | 18 | 16 | 19 | 11 | 16 | 16 | 14 | 20 | 18 | 20 |
| Haiku 4.5 | 0 | 11 | 16 | 11 | 14 | 9 | 11 | 9 | 14 | 14 | 18 | 23 |
| GPT-5.5 | 0 | 14 | 11 | 13 | 16 | 11 | 18 | - | 16 | - | - | - |
| Gemma3-27B | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 50 |
| DeepSeek-R1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 43 |
| Sonnet 5 | 0 | 0 | 2 | 0 | 0 | 2 | 0 | 0 | 0 | 0 | 7 | 11 |
| Opus 4.8 | 0 | 0 | 4 | 2 | 2 | 2 | 0 | 2 | 2 | 0 | 0 | 2 |
| Fable 5 | 0 | 0 | 2 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
Figure 3: Attack Success Rate (%) per framework (columns) and model (rows). Cell values are ASR percentages; darker cells indicate higher susceptibility. Frameworks and models are ordered by ascending overall ASR; ASR = V/(V+R) with V, R, and E as in Table 3; – marks skipped GPT-5.5 cells.
Framework contribution is largely mechanical. Across the eleven frameworks excluding AG2 as a structural outlier, ASR ranges from 16.6% (Pydantic AI) to 34.4% (smolagents). A chi-squared test on the VULNERABLE versus RESISTANT counts of these eleven frameworks, with all models pooled, tests whether the outcome is independent of the framework; it yields , , dof = 10, rejecting independence. Because every framework is evaluated on the same 18 models and 45 scenarios, the cells are not independent observations, so the statistic is reported as a descriptive measure of distributional difference rather than as a formal test. This rejection, however, is driven by two frameworks whose deviation traces to mechanical rather than intentional causes. Pydantic AI's below-average 16.6% ASR follows from its rejection of duplicate tool names across MCP toolsets: in the 14 scenarios where the malicious server reuses a legitimate tool name, registration fails with UserError: MCPToolset defines a tool whose name conflicts with existing tool, and the 250 affected cells are scored RESISTANT before any model call. This constitutes an incidental defense at registration, not content inspection of the poisoned descriptions; a separate rejection occurs at the Bedrock API for the tool-name-injection scenario, whose tool name embeds a newline and an HTML comment and is refused as a validation error (1 validation error detected: Value 'get_weather...') in
six frameworks, while AG2 refuses it through its own name check (ValueError: Invalid name). smolagents' elevated 34.4% ASR follows from its code-generation representation of tools (Section 6.2), which enlarges the injection surface rather than defending against it. Excluding these two frameworks and AG2, the remaining nine cluster within roughly three percentage points (23.4% to 26.1%), and the same statistic returns , , dof = 8, consistent with statistical homogeneity across these nine frameworks under the tested configurations. Pooling hides per-model differences: within each model, ASR across these nine frameworks spans a median of 10.2 percentage points, from 0.0 for DeepSeek-R1 and Gemma 3 to 36.5 for Llama 4 Maverick, so framework identity does shift individual models even where the pooled rates converge. No framework implements intentional validation of tool descriptions; the single framework exhibiting materially reduced ASR achieves it through duplicate-name rejection at registration, not through inspection of the injected content.
AG2 architectural constraint. AG2 records 4.6% ASR (37 cells), the lowest of any framework, and produces no confirmed canary HTTP receipts at all. Its structured executor rarely completes the outbound transmitting call that a poisoned description requests, so almost no network exfiltration is confirmed; the 37 vulnerable cells
Faroog Shaikh and Biagio Montaruli
Table 5: ASR by attack class across all 12 frameworks and 18 models, weighted by cell count. V=Vulnerable, R=Resistant, ASR = V/(V+R), consistent with Table 3.
| Attack Class | V | R | ASR |
|---|---|---|---|
| Parameter binding | 108 | 100 | 51.9% |
| Tool poisoning | 1,460 | 3,899 | 27.2% |
| Confused deputy | 161 | 466 | 25.7% |
| Annotation injection | 50 | 156 | 24.3% |
| Long-context dilution | 50 | 157 | 24.2% |
| Streaming injection | 47 | 162 | 22.5% |
| Cross-phase persistence | 38 | 171 | 18.2% |
| Semantic shadowing | 29 | 179 | 13.9% |
| Cross-agent injection | 16 | 104 | 13.3% |
| Memory poisoning | 118 | 907 | 11.5% |
| Notification injection | 21 | 188 | 10.0% |
| Dynamic registration | 8 | 201 | 3.8% |
| Authority spoofing (protocol) | 7 | 203 | 3.3% |
| Unicode encoding | 0 | 209 | 0.0% |
are predominantly canary-file reads (24 cells) that the executor does surface, plus 13 cells in which the canary endpoint appears in a dispatched call without a resulting receipt. The pattern holds across all 18 models, indicating the constraint is architectural rather than model-dependent. This resistance is an emergent property of the executor's tool binding, not inspection of tool-description content; the model still emits the malicious call, so a different execution binding would dispatch it, and AG2 should therefore not be read as a hardened framework choice.
Model variation dominates. Among the tested models and configurations, ASR ranges from 0.4% (Claude Fable 5) to 49.7% (Amazon Nova Pro); this per-model maximum, not the pooled 22.9% mean, is the comparable figure for the best-case rates (up to 72.8%) reported by compliance-oracle benchmarks [32], which count intended calls rather than confirmed execution. Claude Opus 4.8 is vulnerable in only 8 of its 530 evaluated cells (1.5%) while emitting 223 explicit refusals that cite the poisoned description, among the highest refusal counts of any model. Claude Sonnet 4.5 produces explicit refusal messages in 17 of its 453 resistant cells yet still fails in 77, and Claude Haiku 4.5 exhibits the same aware-but-vulnerable mixture at a lower vulnerable count. A distinct narrate-then-comply pattern appears for Claude Sonnet 5: in 4 of its 10 vulnerable cells the model verbally flags the attack as a prompt injection before nonetheless issuing the exfiltration call, demonstrating that safety narration does not guarantee safety action. In contrast, the most susceptible models (Amazon Nova Pro, Llama 4 Maverick, and DeepSeek-V3.2) comply without any indication of recognizing the malicious instruction.
Intra-family alignment scaling. Within Anthropic, resistance scales by generation in our tested configurations: the newer Claude Fable 5 (0.4%), Opus 4.8 (1.5%), and Sonnet 5 (1.9%) stay below 2% ASR, an order of magnitude under prior-generation Haiku 4.5 (12.5%) and Sonnet 4.5 (14.5%). Mistral inverts this on both axes: ASR rises with scale (Ministral 3 14B, 34.3%, vs. the 675B Mistral Large 3, 43.7%) and with generation (Mistral Large 2, 21.6%, vs. Mistral Large 3, 43.7%). These results suggest that per-provider alignment investment, not parameter count or recency, is the dominant predictor of resistance, though tokenization and context-handling differences may also contribute.
Table 6: Oracle confidence tiers for 2,113 VULNERABLE cells.
| Tier | Count | % |
|---|---|---|
| Confirmed exfiltration (HTTP + secret data) | 255 | 12.1% |
| Confirmed network (HTTP request, no secret) | 487 | 23.0% |
| Executed attacker tool (canary in dispatched call) | 1,371 | 64.9% |
6.2 Per-Attack-Class Effectiveness (RQ2)
Table 5 summarizes ASR by attack class. Direct tool poisoning via description fields dominates by volume: spanning 26 of the 45 scenarios and 5,359 evaluated cells, the tool poisoning class accounts for 1,460 of the 2,113 vulnerable cells at a 27.2% aggregate ASR. Parameter binding records the highest per-class rate (51.9%), ahead of tool poisoning (27.2%) and confused deputy (25.7%), and the single highest framework-class rate observed is smolagents on parameter binding at 76.5% (13 of 17 cells). Structured-field and encoding-based classes are least effective: unicode encoding never succeeds (0.0% across 209 cells), while authority spoofing (3.3%) and dynamic registration (3.8%) succeed only sporadically. This distribution indicates that current models either do not decode obfuscated payloads embedded in tool metadata or do not treat schema-only and registration-time fields as actionable instructions, whereas natural-language description and annotation fields remain broadly effective injection vectors.
Architecture shapes the attack surface. smolagents exhibits the highest framework-level ASR (34.4%) together with the highest per-class peaks, concentrated in parameter binding (76.5%), confused deputy and semantic shadowing (both 47.1%), and annotation and streaming injection (both 41.2%). Its code-generation ReAct architecture presents tools as Python objects with docstrings rather than as structured function definitions, and applies minimal tool-call validation; this alters the model's parsing of the injection boundary and enlarges the attack surface. The code-generation representation bypasses alignment trained against structured tool definitions rather than defending against injection.
6.3 Dual Oracle Confirmation (RQ3)
Table 6 presents oracle confidence tiers. Of 2,113 VULNERABLE cells, 2,100 (99.4%) exhibit a dispatched attacker tool call carrying the canary payload (a canary URL or secret in an outbound call, or a canary-file read); the remaining 13 are confirmed by canary HTTP receipt alone. 742 cells (35.1%) receive independent dual confirmation, the canary HTTP server having logged an inbound request within the execution window, providing evidence of real network exfiltration independent of the framework's own reporting. The corrected oracle records no intent-only cells: a verdict of VULNERABLE requires either a canary receipt or a canary-bearing tool call actually dispatched, so mere generation of an undispatched call is scored RESISTANT. A dispatched call without a receipt arises by construction in most of the remaining cells: 290 are canary-file reads that involve no network, and 1,067 place the canary endpoint in a call to a tool served by the malicious server itself (http_request, log_activity, send_data), which records the invocation and returns a stub without performing an HTTP request; the remaining 14 are disallowed-tool invocations under the allow-list scenarios, and only the legitimate http_post and http_get tools reach the canary.
Oracle validation. The oracle takes evidence from the union of the transcript and the malicious server's invocation log, matching the canary URL, secret, and file access. The server log is necessary because several frameworks hash tool names in the transcript, which would otherwise under-count exfiltration. We validated it by re-adjudicating 1,259 transcripts by hand across twelve per-framework passes (every disputed verdict plus a control sample) and the adjudication converged on the oracle's verdicts. Leaks to destinations outside the scanned canary pattern set cannot be excluded in principle.
Results validation. Across two independent full-matrix runs executed under identical harness code and model versions, aggregate ASR differed by only 0.1 percentage points, per-framework spreads were at most 1.6 pp (well below the 5 pp noise threshold), and 93.5% of individual cells (9,085/9,720) produced identical verdicts, confirming that reported attack success rates are stable and reproducible.
Error analysis. 237 cells (2.4%) produced errors rather than verdicts, concentrated in CrewAI×Claude Fable 5 (43), Semantic Kernel×Amazon Nova Pro (42), CrewAI×Llama 4 Scout (30), Pydantic AI×Claude Fable 5 (25), and Pydantic AI×Llama 4 Scout (21), with the remainder distributed as isolated failures across Semantic Kernel. The Fable 5 errors are provider-side content-filter refusals returned before any model output (ContentFilterError: content_filter under Pydantic AI, an empty completion under CrewAI); the Semantic Kernel and Nova Pro errors are service failures, the CrewAI and Llama 4 Scout errors are tool-call output-format validation failures, and the Pydantic AI and Llama 4 Scout errors are Bedrock token rate limits. Error cells are excluded from the ASR denominator. Counting every error as RESISTANT lowers the overall ASR to 22.4% and counting every error as VULNERABLE raises it to 24.9%; the widest per-framework bounds are CrewAI (23.4–33.9%), Semantic Kernel (21.2–31.6%), and Pydantic AI (15.5–21.8%), and Claude Fable 5 stays at 0.4% under the first convention and reaches 13.5% only if its refusals are counted as vulnerable.
7 Framework Defense Inventory
7.1 Code-Level Passthrough Evidence
Static analysis of all 12 tested configurations confirms that tool description content passes from the MCP protocol response into the model context without validation (Table 7). For the eleven framework entries the table documents the exact passthrough code location; the raw OpenAI API row is included as a model-level baseline and interposes no framework layer.
No framework checks for instruction patterns, authority markers, encoded content, embedded URLs, or anomalous description length. No framework provides configurable description allowlists, content length limits, or description diffing between successive tools/list calls. Three of twelve frameworks maintain a SECURITY.md file (smolagents addresses code execution sandboxing, the OpenAI Agents SDK provides a generic coordinated disclosure pointer, and
Table 7: Tool description passthrough: location where unvalidated content enters model context.
| Framework | Passthrough File | Valid. |
|---|---|---|
| LangChain | tools.py:530 | None |
| AG2 | toolkit.py:119 | None |
| Agno | mcp.py:772 | None |
| CrewAI | mcp_native_tool.py:49 | None |
| Pydantic AI | mcp.py:1146 | None |
| smolagents | tools.py:1086 | None |
| OpenAI API | Raw API, no tool layer | None |
| Haystack | tools/tool.py:271 | None |
| LlamaIndex | core/tools/types.py:100 | None |
| Semantic Kernel | connectors/mcp.py:load_tools | None |
| Google ADK | mcp_tool/mcp_tool.py:McpTool | None |
| DSPy | utils/mcp.py:convert_mcp_tool | None |
Haystack explicitly scopes out attacks via unsanitized external input, delegating validation responsibility to the application layer), but none addresses tool description content or MCP tool poisoning.
7.2 Mechanisms That Could Defend But Do Not
Three framework mechanisms superficially resemble defenses but address orthogonal concerns.
Agno requires_confimation: Prompts user confirmation before tool execution, but does not inspect the description content that induced the call. A poisoned description triggers the call; confirmation verifies the action, not its provenance.
smolagents sandboxing: Isolates the execution environment (E2B, Docker) to limit damage from code execution, but does not filter the injection surface: poisoned descriptions enter the model context regardless of where tools run.
Pydantic AI type safety: Validates inputSchema structure (JSON Schema types, required fields) but not semantic content. The description field is a plain string; type validation is inapplicable to natural-language injection. Its rejection of duplicate tool names across toolsets does, however, block the 15 shadowing scenarios (Section 6.1).
7.3 What a Defense Would Require
A minimal defense at the framework layer would require three capabilities. First, description registration: on first tools/list response, store a hash of each tool's description and schema. Second, change detection: on subsequent calls, compare hashes and alert or reject on mismatch (prevents P8 rug-pull). Third, content scanning: flag descriptions containing instruction patterns (imperative verbs followed by tool names or URLs), encoded content (base64, hex), or anomalous length (>500 characters). None of these mechanisms requires model inference or significant computational overhead. The tools/list endpoint is called at most once per session in all twelve frameworks tested; scanning adds negligible latency to session initialization.
Scanner evaluation. To test the three checks, they are implemented as a registration-time scanner in mcpvenom and applied to the 95 tool descriptions of the 45 scenarios and to 125 benign descriptions taken from the tools/list responses of ten public MCP servers (the MCP project's reference servers, Playwright MCP, the GitHub MCP server, and the legitimate server of this study, with
Faroog Shaikh and Biagio Montaruli
Table 8: Registration-time description scanner: scenarios rejected (any description flagged) and benign descriptions flagged.
| Check | Scenarios rejected | Benign flagged |
|---|---|---|
| Instruction pattern | 20/45 (44.4%) | 6/125 (4.8%) |
| Encoded content | 0/45 (0.0%) | 1/125 (0.8%) |
| Length >500 | 2/45 (4.4%) | 3/125 (2.4%) |
| Union | 20/45 (44.4%) | 9/125 (7.2%) |
Table 9: Coordinated disclosure responses. LC-1 and LC-2 are separate reports to the same vendor covering distinct finding classes.
| ID | Target | Type | Status |
|---|---|---|---|
| LC-1 | LangChain | Data authenticity | Rejected |
| LC-2 | LangChain | Input validation | Rejected |
| AG-MSRC | AutoGen (MSRC) | Schema mutation | Rejected |
| SDK-1 | MCP SDK | Rug-pull | Rejected |
| HS-1 | Haystack | Tool poisoning | Rejected |
versions pinned in the artifact). Table 8 reports the results. The union of the checks rejects 20 of the 45 scenarios (44.4%) and flags 9 of the 125 benign descriptions (7.2%); the instruction-pattern check accounts for every detection, the encoded-content check fires on no scenario because the P3 payloads use ROT13 rather than Base64 or hex, and the length check adds nothing. The 25 evaded scenarios either deliver the payload outside the description (P6, P9, P10, P14) or phrase it as a policy statement, in another language, around a file path, or in invisible codepoints (P1, P2, P4, P12, P17, P20, P25). Six of the nine benign false positives legitimately name a sibling tool ("Use read_text_file instead"), so description scanning is a partial control that raises the cost of the most direct payloads; it must be combined with change detection and validation of the result channel rather than adopted alone.
The reason no framework implements these mechanisms is not technical difficulty. As the vendor responses (Section 8) confirm, the decision is architectural: each vendor explicitly delegates responsibility elsewhere. The structural accountability vacuum persists because no market or regulatory incentive compels any single layer to invest in defense.
8 Vendor Accountability
We filed five coordinated disclosures with four organizations. Table 9 summarizes responses received.
All five disclosures were rejected. Three distinct accountability positions emerge from the rejection rationales:
(1) MCP SDK: "The protection against rug-pulls is host-side review of tool calls, not a notification the attacker controls." This delegates responsibility to frameworks.
(2) LangChain (LC-1, LC-2): "This library is expected to be passing the information exactly as specified in the MCP resources. This is not the appropriate place for any sort of validation" (LC-1). A separate report on BaseTool._parse_input() silently bypassing JSON Schema validation for all MCP tools was closed as "the observed behaviour is functioning as intended" (LC-2). Both responses confirm the same architectural commitment:
the framework is a passthrough, and validation responsibility is delegated to model providers.
(3) AutoGen (MSRC) and Haystack (deepset): Microsoft, responding through MSRC, states "the attacker must already control the MCP server, and AutoGen explicitly documents MCP servers as trusted." This rejection concerns the microsoft/autogen McpWorkbench implementation, a project distinct from the community-governed AG2 0.14.0 fork evaluated in the susceptibility matrix (Section 6). deepset likewise classifies the behavior as "trusted configuration behavior rather than a framework vulnerability," expecting users to vet third-party MCP servers as they would any other third-party API. Both assume a trust boundary absent in supply-chain deployments, though deepset committed to clarifying these implications in its documentation.
The MCP specification states that security is "implementation-defined," providing no mandatory requirements for tool description handling. Each layer of the stack (protocol specification, SDK, framework, model provider) points to the next as the responsible party. The result is a structural accountability vacuum: no layer claims ownership of agent security against tool poisoning, and the only empirically effective defense (model-level alignment) spans 1.5% to 49.7% susceptibility across the 18 models tested.
9 Discussion
9.1 Implications of Model-Only Defense
The central finding, that no tested framework contributes intentional defense against MCP tool poisoning, has three implications. First, within the tested configurations, the security posture of an MCP-enabled deployment is dominated by model selection. Claude Opus 4.8 is vulnerable in 8 of 530 evaluated cells (1.5%); Amazon Nova Pro is vulnerable in 245 of 493 (49.7%). No framework configuration or deployment hardening observed in this study compensates for this model-level variation, though framework-layer defenses are technically feasible (Section 7.3).
Second, as models become more capable at following instructions (the explicit goal of alignment research for helpfulness), they may become more susceptible to tool poisoning. An instruction-following model cannot distinguish a legitimate user instruction from a structurally identical instruction embedded in a tool description without external metadata that the MCP protocol does not provide. Recent theoretical work formalizes this as an impossibility result for agents operating under indirect prompt injection [1].
Third, the framework vendors' explicit position, that validation is not their responsibility, creates structural reliance on a defense mechanism (alignment) that is not contractually guaranteed. No model provider offers an SLA for injection resistance. This variation observed in this study could shift with any model update, and no framework-level mechanism exists to detect or mitigate such shifts.
9.2 Recommendations
We recommend three defense layers, each addressing a distinct point in the attack chain:
Protocol layer. The MCP specification should mandate content-type metadata distinguishing human-readable descriptions from executable instructions. Such metadata would enable clients to apply differential trust policies. A content_type field (e.g., prose vs. instruction) is one realization. Description immutability between sessions should also be enforceable: clients should pin tool description hashes at first registration and alert on changes, preventing rug-pull attacks (P8). Recent work on capability-based agent security [16] and OS-inspired isolation models [25] provides formal foundations for such mechanisms, though neither has been instantiated for MCP specifically.
Framework layer. Description scanning for instruction patterns (imperative verbs, URL patterns, encoded content, authority markers), human-in-the-loop approval for new or changed descriptions, and immutability enforcement between successive tools/list calls. A practical implementation requires only regex-based scanning of descriptions at tool registration time, a mechanism analogous to Content Security Policy headers in web browsers, though the evaluation in Section 7.3 shows that scanning alone rejects fewer than half of the scenarios. The measured universality of framework passthrough (Section 7.1) indicates that any single framework adopting scanning would provide defense that no framework currently offers. Two incidental mechanisms measured in this study, duplicate-tool-name rejection (Pydantic AI) and executor-side dispatch constraints (AG2), already reduce ASR without content inspection and could be adopted deliberately.
Deployment layer. Trust anchors for MCP server provenance (cryptographic signing of tool definitions, allowlisting by server identity), canary-based runtime monitoring (as implemented by the dual oracle in this study), and model selection policies informed by measured ASR data. Organizations deploying MCP-enabled agents should treat model selection as a security decision: the variation in ASR documented here exceeds the variation typically addressed by network security controls.
9.3 Future Work
We identify three tiers of future investigation: (1) benchmark extension: P15 testing across frameworks exposing prompts/get, additional models beyond the 18 tested, and multi-turn compound scenarios; (2) extending the scanner evaluation to change detection and result-channel validation, building on formal approaches to skill security verification [5], together with analysis of open-weight model internals to establish why cross-tool references are followed; (3) formal specification of description safety properties and MCP protocol security extension standardization, potentially grounded in the capability attenuation model of Jiang et al. [16].
10 Limitations
Limitations bound the generalizability of these findings to the tested frameworks, models, configurations, and scenarios. (1) Model versions are pinned to the provider identifiers listed in the supplementary material, as served on 22–24 July 2026; eight carry no dated snapshot suffix, and alignment updates may alter ASR. (2) Twelve of approximately 50 MCP-capable frameworks are tested, selected by download threshold; findings may not generalize to frameworks below this threshold. (3) Forty-five scenarios cover 23 of 25 identified classes (P15 untested, P19 subsumed under P5), and all harnesses
use single-turn interactions; multi-agent delegation and multi-turn conversations are underrepresented. (4) The dual oracle specifically confirms exfiltration, but other harm types (integrity violations, availability impacts) are not measured. (5) Task completion without poisoning was not measured, so the ERROR cells cannot be attributed to the attack or to the framework, and the OpenAI API row is a framework baseline rather than a no-poisoning baseline. (6) The scenarios derive from published techniques and are identical across models, so a model's ASR may partly reflect exposure to similar attacks during training rather than the strength of its alignment alone.
11 Ethics and Responsible Disclosure
We disclosed all tool-poisoning findings to affected vendors through coordinated channels (Section 8) prior to publication. The mcpvenom scenarios use canary URLs pointing to researcher-controlled infrastructure with synthetic secret markers; no weaponized payloads are included, and any egress causes no real-world harm.
12 Conclusion
MCP tool poisoning is structural: the protocol carries attacker-controlled content to the model context through every major framework without validation. Our measurement study spanning 12 frameworks, 18 models, and 45 attack scenarios (9,720 cells) confirms that, within the tested configurations, all observed resistance is model-level: no framework contributes intentional defense (; nine core frameworks cluster within a 3-percentage-point ASR band), while 2,113 vulnerable cells span three evidence tiers from dispatched attacker tool calls (64.9%) to confirmed network contact (23.0%) to verified secret exfiltration (12.1%). The five vendor rejections across four organizations document a structural accountability vacuum where no stack layer claims ownership of agent security. Finally, we release mcpvenom and all artifacts as open source to enable reproducible measurement and community defense development.
References
[1] Sahar Abdelnabi and Eugene Bagdasarian. 2026. AI Agents May Always Fall for Prompt Injections. https://arxiv.org/abs/2605.17634 [2] Maksym Andriuschenko, Alexandra Souly, Mateusz Dziemian, Derek Duenas, Maxwell Lin, Justin Wang, Dan Hendrycks, Andy Zou, J Zico Kolter, Matt Fredrikson, Yarin Gal, and Xander Davies. 2025. AgentHarm: A Benchmark for Measuring Harmfulness of LLM Agents. In The Thirteenth International Conference on Learning Representations (ICLR). https://openreview.net/forum?id=AC5n7xHuR1 [3] Cem Anil, Esin Durmus, Nina Panickssery, Mrinank Sharma, Joe Benton, Sandipan Kundu, Joshua Batson, et al. 2024. Many-shot Jailbreaking. In 38th Conference on Neural Information Processing Systems (NeurIPS 2024), Vol. 37. 129696–129742. doi:10.52202/079017-4121 [4] Anthropic. 2024. Model Context Protocol. https://modelcontextprotocol.io. Accessed on 23rd July 2026. Current version: 2024-11-05. [5] Varun Pratap Bhardwaj. 2026. SkillFortify: Formal Analysis and Supply Chain Security for Agentic AI Skills. doi:10.5281/zenodo.18787663 [6] Manish Bhatt, Vineeth Sai Narajala, and Idan Habler. 2025. ETDI: Mitigating Tool Squatting and Rug Pull Attacks in Model Context Protocol (MCP) by Using OAuth-Enhanced Tool Definitions and Policy-Based Access Control. In 2025 Cyber Awareness and Research Symposium. 1–6. doi:10.1109/CARS67163.2025.11337310 [7] Cloud Security Alliance. 2026. MCP Security Crisis: Systemic Design Flaws in AI Agent Infrastructure. https://labs.cloudsecurityalliance.org/research/csaresearch-note-mcp-security-crisis-20260504-csa-styled. Research Note. Accessed on 23rd July 2026. [8] Stav Cohen, Ron Bitton, and Ben Nassi. 2025. Here Comes the AI Worm: Preventing the Propagation of Adversarial Self-Replicating Prompts Within GenAI Ecosystems. In Proceedings of the 2025 ACM SIGSAC Conference on Computer and
Farooq Shaikh and Biagio Montaruli
Communications Security (CCS '25). Association for Computing Machinery, New York, NY, USA, 3975–3989. doi:10.1145/3719027.3765196
[9] Edoardo Debenedetti, Jie Zhang, Mislav Balunovic, Luca Beurer-Kellner, Marc Fischer, and Florian Tramér. 2024. AgentDojo: A Dynamic Environment to Evaluate Prompt Injection Attacks and Defenses for LLM Agents. In The Thirty-eighth Conference on Neural Information Processing Systems (NeurIPS) Datasets and Benchmarks Track. https://openreview.net/forum?id=m1YqAOj03w
[10] Xiaohan Hu, Shuheng Li, Zihan Wang, Yihao Liu, Rajesh K. Gupta, Taylor Berg-Kirkpatrick, and Earlence Fernandes. 2024. Imprompter: Tricking LLM Agents into Improper Tool Use. https://arxiv.org/abs/2410.14923
[11] Kai Greshake, Sahar Abdelnabi, Shailesh Mishra, Christoph Endres, Thorsten Holz, and Mario Fritz. 2023. Not What You've Signed Up For: Compromising Real-World LLM-Integrated Applications with Indirect Prompt Injection. In Proceedings of the 16th ACM Workshop on Artificial Intelligence and Security (AISec). ACM, New York, NY, USA. doi:10.1145/3605764.3623985
[12] Yongjian Guo, Puzhou Liu, Wanlun Ma, Zehang Deng, Xiaogang Zhu, Peng Di, Xi Xiao, and Sheng Wen. 2026. MCPXkit: The Unified Toolkit for Analyzing Model Context Protocol Security. IEEE Transactions on Dependable and Secure Computing 23, 5 (2026), 9796–9811. doi:10.1109/TDSC.2026.3695553
[13] Xinyi Hou, Yanjie Zhao, Shenay Wang, and Haoyu Wang. 2026. Model Context Protocol (MCP): Landscape, Security Threats, and Future Research Directions. ACM Trans. Softw. Eng. Methodol. (Feb. 2026). doi:10.1145/3796519
[14] Invariant Labs. 2025. MCP Security Notification: Tool Poisoning Attacks. https://invariantlabs.ai/blog/mcp-security-notification-tool-poisoning-attacks.
[15] Zimo Ji, Xunguang Wang, Zongjie Li, Pingchuan Ma, Yudong Gao, Daoyuan Wu, Xincheng Yan, Tian Tian, and Shuai Wang. 2025. Taxonomy, Evaluation and Exploitation of IPI-Centric LLM Agent Defense Frameworks. https://arxiv.org/abs/2511.15203
[16] Xiaochong Jiang, Shiqi Yang, Ziwei Li, Lifei Liu, Haoran Yu, and Yichen Liu. 2026. ChainCaps: Composition-Safe Tool-Using Agents via Monotonic Capability Attenuation. In Proceedings of the 63rd Annual Meeting of the Association for Computational Linguistics (ACL 2025). https://aclanthology.org/2025.acl-long.101
[17] Juhee Kim, Wenbo Guo, and Dawn Song. 2026. SoK: Attack and Defense Landscape of Agentic AI Systems. In 35th USENIX Security Symposium (USENIX Security 26). https://www.usenix.org/conference/usenixsecurity26/presentation/kim-juhee-agentic
[18] Sangyeop Kim, Yohan Lee, Yongwoo Song, and Kimin Lee. 2025. What Really Matters in Many-Shot Attacks? An Empirical Study of Long-Context Vulnerabilities in LLMs. In Proceedings of the 63rd Annual Meeting of the Association for Computational Linguistics (ACL 2025). https://aclanthology.org/2025.acl-long.101
[19] Ruiqi Li, Zhiqiang Wang, Yunhao Yao, and Xiang-Yang Li. 2026. MCP-ITP: An Automated Framework for Implicit Tool Poisoning in MCP. https://arxiv.org/abs/2601.07395
[20] Xiaofan Li and Xing Gao. 2026. A First Look at the Security Issues in the Model Context Protocol Ecosystem. In 2026 56th Annual IEEE/IFIP International Conference on Dependable Systems and Networks (DSN). IEEE, 379–392. doi:10.1109/DSN69566.2026.00046
[21] Shi Liu, Xuehai Tang, Xikang Yang, Liang Lin, Biyu Zhou, Wenjie Xiao, and Wantao Liu. 2026. When the Manual Lies: A Realistic Benchmark to Evaluate MCP Poisoning Attacks for LLM Agents. In 2026 29th International Conference on Computer Supported Cooperative Work in Design (CSCWD). IEEE, 2090–2095. doi:10.1109/CSCWD68734.2026.11582512
[22] National Security Agency (NSA) / Cybersecurity and Infrastructure Security Agency. 2026. Model Context Protocol (MCP): Security Design Considerations for AI-Driven Automation. https://www.nsa.gov/Portals/75/documents/Cybersecurity/CSI_MCP_SECURITY.pdf. Accessed on 23rd July 2026.
[23] OWASP Foundation. 2025. OWASP MCP Top 10 – MCP03:2025 Tool Poisoning. https://owasp.org/www-project-mcp-top-10/.
[24] OX Security. 2026. The Mother of All AI Supply Chains: Critical, Systemic Vulnerability at the Core of Anthropic's MCP. https://www.ox.security/blog/the-mother-of-all-ai-supply-chains-critical-systemic-vulnerability-at-the-core-of-the-mcp/. Published 15 April 2026. Accessed on 23rd July 2026.
[25] Lukas Pirch, Micha Horlboge, Patrick Großmann, Syeda Mahnur Asif, Klim Kireev, Thorsten Holz, and Konrad Rieck. 2026. Toward Securing AI Agents Like Operating Systems. https://arxiv.org/abs/2605.14932
[26] Python Packaging Authority. 2026. PyPi Download Statistics. https://pypistats.org. Accessed on 23rd July 2026.
[27] Mehrdad Rostamzadeh, Sidhant Narula, Nahom Birhan, Mohammad Ghasemigol, and Daniel Takabi. 2026. MCP-DPT: A Defense-Placement Taxonomy and Coverage Analysis for Model Context Protocol Security. https://arxiv.org/abs/2604.07551
[28] Mark Russinovich, Ahmed Salem, and Ronen Eldan. 2025. Great, Now Write an Article About That: The Crescendo Multi-Turn LLM Jailbreak Attack. In 34th USENIX Security Symposium (USENIX Security 25). https://www.usenix.org/conference/usenixsecurity25/presentation/russinovich
[29] Sander Schulhoff, Jeremy Pinto, Anam Khan, Louis-Francois Bouchard, Chenglei Si, Svetlina Anati, Valen Tagliabue, Anson Kost, Christopher Carnahan, Jordan Boyd-Graber, et al. 2023. Ignore This Title and HackAPrompt: Exposing Systemic
Vulnerabilities of LLMs Through a Global Prompt Hacking Competition. In Proceedings of the 2023 Conference on Empirical Methods in Natural Language Processing (EMNLP). Association for Computational Linguistics, Singapore, 4945–4977. doi:10.18653/v1/2023.emlp-main.302
[30] Che Wang, Jiaming Zhang, Ziqi Zhang, Zijie Wang, Yinghui Wang, Jianbo Gao, Tao Wei, Zhong Chen, and Wei Yang Bryan Lim. 2026. AdapTools: Adaptive Tool-based Indirect Prompt Injection Attacks on Agentic LLMs. https://arxiv.org/abs/2602.20720
[31] Zhiqiang Wang, Haohua Du, Guanquan Shi, Junyuan Zhang, HaoRan Cheng, Yunhao Yao, Kaiwen Guo, and Xiang-Yang Li. 2026. MindGuard: Intrinsic Decision Inspection for Securing LLM Agents Against Metadata Poisoning. https://arxiv.org/abs/2508.20412
[32] Zhiqiang Wang, Yichao Gao, Yanting Wang, Suyuan Liu, Haifeng Sun, Haoan Cheng, Guanquan Shi, Haohua Du, and Xiang-Yang Li. 2026. MCPTox: A Benchmark for Tool Poisoning on Real-World MCP Servers. In Proceedings of the AAAI Conference on Artificial Intelligence, Vol. 40. AAAI Press, 35811–35819. doi:10.1609/aaai.v40i42.40895
[33] Yuanbo Xie, Wenlei Zhu, Tianyun Liu, Yingjie Zhang, Suchen Liu, Yulin Li, Liya Su, and Tingwen Liu. 2026. What If Prompt Injection Never Left? Rethinking Agent Security through Cross-Session Stored Prompt Injection. https://arxiv.org/abs/2606.04425
[34] Shiqi Yang, Wenting Yang, Xiaochong Jiang, Cheng Ji, and Yichen Liu. 2026. SoK: A Taxonomy of Attack Vectors and Defense Strategies for Agentic Supply Chain Runtime. In ICLR 2026 Workshop on AI for Mechanism Design and Strategic Decision Making (AIMS). https://openreview.net/forum?id=RpWthPygj
[35] Junjie Ye, Sixian Li, Guanyu Li, Caishuang Huang, Songyuan Gao, Yilong Wu, Qi Zhang, Tao Gui, and Xuanjing Huang. 2024. ToolSword: Unveiling Safety Issues of Large Language Models in Tool Learning Across Three Stages. In Proceedings of the 62nd Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers). Association for Computational Linguistics, Bangkok, Thailand, 2181–2211. doi:10.18653/v1/2024.acl-long.119
[36] Youliang Yuan, Wenxiang Jiao, Wenzxuan Wang, Jen-tse Huang, Pinjia He, Shuming Shi, and Zhaopeng Tu. 2024. GPT-4 Is Too Smart To Be Safe: Stealthy Chat with LLMs via Cipher. In International Conference on Learning Representations (ICLR). Vienna, Austria. https://openreview.net/forum?id=MbFAK4s61A
[37] Qiusi Zhan, Zhixiang Liang, Zifan Ying, and Daniel Kang. 2024. InjecAgent: Benchmarking Indirect Prompt Injections in Tool-Integrated Large Language Model Agents. In Findings of the Association for Computational Linguistics: ACL 2024. Association for Computational Linguistics, Bangkok, Thailand, 10471–10506. doi:10.18653/v1/2024.findings-acl.624
[38] Dongsen Zhang, Zekun Li, Xu Luo, Xuannan Liu, Pei Pei Li, and Wenjun Xu. 2026. MCP Security Bench (MSB): Benchmarking Attacks Against Model Context Protocol in LLM Agents. In The Fourteenth International Conference on Learning Representations (ICLR). https://openreview.net/forum?id=irxxkFMrry
[39] Hanrong Zhang, Jingyuan Huang, Kai Mei, Yifei Yao, Zhenteng Wang, Chenlu Zhan, Hongwei Wang, and Yongfeng Zhang. 2025. Agent Security Bench (ASB): Formalizing and Benchmarking Attacks and Defenses in LLM-based Agents. In International Conference on Learning Representations (ICLR). OpenReview.net, Singapore. https://openreview.net/forum?id=V4y0CpX4hK
[40] Huijun Zhou, Xiaohan Zhang, Haozhe Zhang, Haoyang Zhang, Mi Zhang, and Min Yang. 2026. A First Measurement Study on Authentication Security in Real-World Remote MCP Servers. https://arxiv.org/abs/2605.22333
Declaration on the Use of Generative AI
In accordance with the ACM Policy on Authorship and the AISec submission requirements, the use of generative AI in the preparation of this work is disclosed here. Claude Code (Anthropic) was used for implementation support in the mcpvenom harness and the accompanying analysis scripts, and for copy-editing of the manuscript; all such output was reviewed, executed, and validated by the authors, who retain full responsibility for the content. No claim, table, figure, or citation was accepted without verification against the released artifacts. Language models are otherwise the object of measurement rather than an instrument of it: the dual oracle is deterministic, resting on canary-server request logs and pattern matching over request bodies, and thus no attack-success label depends on model judgement.