Skip to content

MCP-ITP: An Automated Framework for Implicit Tool Poisoning in MCPMCP-ITP: An Automated Framework for Implicit Tool Poisoning in MCP

arXiv· arXiv:2601.07395· Ruiqi Li, Zhiqiang Wang, Yunhao Yao, Xiang-Yang Li·Indexed by this site · 2026-10-12· Originally publishedSelected AttacksSelectedAttention41

Quick read

Attacks

Based on the paper PDF (AI-generated); refer to the original

On the MCPTox implicit-poisoning subset, MCP-ITP achieves an ASR of 84.2% against GPT-3.5-turbo, higher than the manual baseline's 48.2%.

Threat modelBlack-box. The attacker cannot see the user's real queries or the LLM parameters inside the Host, can inspect the benign server's tool set and select TA and high-privilege TG, and can publish TK via a self-controlled MCP server. The goal is to redirect queries that would normally call TA to call TG to execute malicious operations, with TK not directly called and evading detection. The user and Host are assumed trusted; MCP Servers are untrusted.

Questions
During the MCP registration phase, tool metadata is injected into the agent's context. Explicit tool poisoning requires directly calling the suspicious tool, which is easily detected by execution monitoring. The authors instead study implicit tool poisoning: the poisoned tool TK is not called, but induces the agent to instead call a legitimate high-privilege tool TG.
Methods
MCP-ITP splits the poisoned description into R, which aligns with the original tool, and S, which carries the poisoning, and iteratively optimizes S. The attack LLM generates candidates based on the previous round's feedback, the detection LLM simulates malicious-tool detection and penalizes candidates marked malicious, and the evaluation LLM checks on shadow queries whether the call switches to TG. Defaults are N=5, W=1, T=3.
Experiments and results
GPT-3.5-turbo's MCP-ITP ASR is 84.2%, with a manual baseline of 48.2% (Table 1, MCPTox implicit subset). DeepSeek-R1 is only 66.7% vs. 66.0%. Qwen3-14b has an MDR of 0.3% under AI-Infra-Guard.
Limitations and future work
The authors note that stronger detection models would still raise MDR, and the evaluation is limited to MCPTox because datasets for implicit MCP tool poisoning remain scarce; the paper does not include formal theoretical analysis. The experiments consist of a single evaluation for each of 12 agent settings, with AI-Infra-Guard and Oracle on the detection side.
Experimental setupo1-mini、GPT-4o-mini et al. · MCPTox · ASR、MDR et al.
Evaluated models
o1-miniGPT-4o-miniGPT-3.5-turboDeepSeek-R1DeepSeek-V3Gemini-2.5-flashQwen3-8bQwen3-32bQwen3-235b-a22bQwen3-14b
Benchmarks
MCPTox
Metrics
ASRMDRIgnoredDirectOthers
AI summaryand selection rationaleThe researchers propose MCP-ITP, an automated framework for implicit tool poisoning in the MCP ecosystem, which the paper claims is the first automated adaptive framework for this scenario. In implicit poisoning, the poisoned tool itself is never invoked; instead, instructions in the tool's metadata induce the agent to call a legitimate but high-privilege target tool to execute malicious operations. The method models poisoned tool generation as a black-box optimization problem, using iterative feedback from an attack LLM, a detection LLM, and an evaluation LLM to simultaneously improve attack success rate and evade detection. On 548 implicit poisoning cases from the MCPTox dataset (45 real MCP servers, 353 real tools), evaluated across 12 LLM agents, GPT-3.5-turbo's ASR rises from 48.2% to 84.2%, DeepSeek-V3 rises from 44.8% to 78.4%, and MDR drops to as low as 0.3% under AI-Infra-Guard.

The researchers propose MCP-ITP, an automated framework for implicit tool poisoning in the MCP ecosystem, which the paper claims is the first automated adaptive framework for this scenario. In implicit poisoning, the poisoned tool itself is never invoked; instead, instructions in the tool's metadata induce the agent to call a legitimate but high-privilege target tool to execute malicious operations. The method models poisoned tool generation as a black-box optimization problem, using iterative feedback from an attack LLM, a detection LLM, and an evaluation LLM to simultaneously improve attack success rate and evade detection. On 548 implicit poisoning cases from the MCPTox dataset (45 real MCP servers, 353 real tools), evaluated across 12 LLM agents, GPT-3.5-turbo's ASR rises from 48.2% to 84.2%, DeepSeek-V3 rises from 44.8% to 78.4%, and MDR drops to as low as 0.3% under AI-Infra-Guard.

Why it was selectedThe paper provides attack success rate and detection evasion data for implicit tool poisoning across 12 models, which teams deploying MCP tools can use to assess metadata risks at the registration stage.

Paper analysis

6 questions; open one to read the full answer

  1. What problem does this paper attempt to solve?

    Implicit poisoning does not call the poisoned tool, but uses metadata instructions to redirect to a legitimate high-privilege tool.

    Implicit tool poisoning aims to use instructions in metadata to make the agent call a legitimate high-privilege tool instead, without the poisoned tool being called.

    • Occurrence scenario: MCP loads tool names, descriptions, and parameters into the agent's context during registration, typically as part of the system prompt. The authors state that the public market lacks unified security review, and third parties can deploy tools with malicious instructions via malicious servers.
    • Existing shortcomings: The authors state that existing research focuses on explicit poisoning or manually poisoned tools. Explicit attacks require directly executing the suspicious tool, which is easily detected by monitoring. The authors state that when existing indirect prompt injection writes into tool descriptions rather than execution results, the success rate drops significantly.
    • Core observation: The authors separate the trigger TK from the legitimate high-privilege tool TG that is ultimately called, keeping TK uncalled. The authors state that this variant is more stealthy and harder to counter.
    • Proposed in this paper: The authors propose MCP-ITP, claiming it is the first automated, adaptive framework in the MCP ecosystem. Poisoned tool generation is framed as black-box optimization, using iterative feedback from three LLMs to improve ASR and evade detection.
    • Threat model:
      • Goal: For queries that would normally call TA, redirect to call TG to execute malicious operations; TG belongs to the benign tool set and is not equal to TA. TK is not directly called and evades malicious tool detection.
      • Knowledge: Black-box. Cannot access user's real queries or the internal parameters of the LLM inside the Host.
      • Capabilities: Can inspect the tool set of benign server A, select TA and high-privilege TG, and publish TK to the public market via a self-controlled MCP server.
      • Victims: The user is assumed honest and non-colluding, the Host is assumed trusted, and MCP Servers are untrusted. When the Host connects to both server A and attacker server B, TK enters the system prompt along with benign tools. Figure 1 gives an example of a read-file request being redirected to call a write-file tool.
  2. What related research exists?

    Related work covers jailbreaks, prompt injection, agent attacks, and explicit tool poisoning; the baseline is the MCPTox manual tools.

    Jailbreaks and prompt injection

    • Zou et al. (2023), Chao et al. (2025), and Masterkey, PIG, TIP, etc., bypass guardrails through user input to elicit harmful outputs. The authors separate this from prompt injection: the latter embeds instructions in external data to guide specific actions (Greshake et al., 2023; McHugh et al., 2025).

    Agent-side attacks

    • Selection process hijacking, RAG library poisoning (Phantom, 2024; PoisonedRAG, 2025), and prompt injection on tool selection (Shi et al., 2025). The paper only describes these directions.
    • Indirect injection is also written into multimodal agents (Wu et al., 2024) and multi-agent systems (Lee and Tiwari, 2024). The paper does not compare each with MCP-ITP.

    MCP and tool poisoning

    • Anthropic (2024) proposed MCP: servers expose tool names, natural language descriptions, and parameters; the Host fetches them and loads them into the LLM context, then selects tools based on user tasks and executes them.
    • The authors view tool poisoning as a specialized form of indirect prompt injection: malicious instructions are written in tool descriptions and injected into the context during registration. The authors state that Beurer-Kellner and Fischer first revealed its severity. AutoMalTool (He et al., 2025) automatically generates malicious tool packages, but it causes parameter errors or misinterpretation of results when tools are directly called.
    • The authors state that existing IPI largely fails when directly injecting into tool descriptions rather than execution results, with ASR dropping significantly (Wang et al., MCPTox, 2025). ToolTweak (Sneh et al., 2025) attacks tool selection. Song et al. (2025) discuss attacks via MCP servers such as rug pulls; the paper does not compare methods with it.

    Baselines and data

    • Baseline method: Manually crafted poisoned tools from MCPTox; detection rate comparison uses AI-Infra-Guard and Oracle.
    • Benchmark: MCPTox, based on 45 real running MCP servers and 353 real tools, with a total of 1,497 malicious test cases. This paper uses the implicit poisoning paradigm subset of 548 cases, compared under the same servers, tool contexts, and queries.

    The authors' distinction is: explicit poisoning requires executing the suspicious tool, manual poisoning cannot be automated; existing IPI that directly writes into tool descriptions is ineffective. MCP-ITP targets the setting where TK is not called, using black-box feedback to automatically generate descriptions.

  3. How does the paper address this problem?

    MCP-ITP splits the description into a fixed R and an iteratively optimized S, using black-box feedback from three LLMs to generate TK.

    MCP-ITP splits the poisoned description into a fixed relevance segment R and an iteratively rewritten poisoning segment S, and uses three LLMs for attack, detection, and evaluation in a black-box setting to generate TK. The call decision during optimization comes from the evaluation model, not from the 12 tested agents themselves.

    Formal objective

    • Decomposition: desc(TK) = R ⊕ S. R is fixed after construction; only S is optimized. R disguises TK as functionally equivalent to the original tool TA to increase its salience in the tool-selection context; S carries the implicit poisoning.
    • Optimization objective: On shadow queries, make the evaluation model LE call TG under a system prompt that merges the benign tool set TA with TK(S). The paper writes

    maxS1/m∑i=1m I(LE(qi,TA∪{TK(S)})=ng) ng is the tool name of TG, and I is 1 when LE calls TG. The paper does not give a value for m.

    Constructing R

    • Copy-based: R directly takes desc(TA) to increase semantic overlap with TA.
    • Paraphrase-based: An LLM rewrites desc(TA) with semantic equivalence, reducing surface repetition while maintaining functional alignment. The authors call both approaches lightweight.
    • Relation to the main experiment: The method section writes the full description as R ⊕ S. The paper does not state in 5.1 which R the main experiment used, or whether R was included.

    Iterative optimization of S

    • Candidate generation: Hierarchical tree expansion from the initial sequence S0; the authors say the inspiration comes from tree-based attack search. Each round, the attack model LA generates N rewrites for each current candidate according to template Pa, the previous round's feedback, and TA, TG. Appendix B gives the initial settings and full prompts; the sentence patterns are not repeated here.
    • Detection feedback: The detection model LD checks the tool name, description, and parameters according to template Pd and outputs whether it is malicious and the reason. In the main text, Eq. (4) subtracts m/2 once from the total score when marked malicious. Algorithm 1 places this subtraction inside the loop over each shadow query. The paper does not explain this discrepancy.
    • Effectiveness score: In the main text, Eq. (6) records 1 when the reply contains the TG name ng, 0.5 when it contains the TK name nk, and 0 otherwise, then sums to TotalS. Algorithm 1 only adds 1 when ng is present, with no 0.5 branch. Any candidate not below α is accepted and terminates early; the authors say α is close to m but give no specific value. Algorithm 1 also returns directly when the highest score is m.
    • Stopping and defaults: If the threshold is not reached, the W candidates with the highest total scores are kept. Defaults are N=5, W=1, T=3. Instantiation is LA=DeepSeek-V3, LE=Qwen3-32b, LD=Qwen3-8b.

    Shadow queries and judgment

    • Shadow queries: Constructed from TA so that each qi would call TA when not attacked. Appendix A gives the generation prompt. The "call TG" during optimization is judged by LE.
    • External evaluation: After generation, it is placed into the MCP pipeline. ASR = Nsa / Nvr, where the denominator excludes invalid generations; MDR = Nm / Nv. Failures are classified as still calling TA (Ignored), directly calling TK (Direct), or calling other tools or refusing (Others). Direct is not counted as an ASR success.
    • Prompt position: The implementation uses the default system prompt of an open-source MCP codebase. Appendices C and D give the prompts for LE and LD, respectively; Appendix E gives example replies for the Success, Ignored, and Direct categories, without repeating the tool descriptions here.
  4. What experiments did the paper conduct?

    Across 12 settings, GPT-3.5-turbo's ASR is 84.2% and Qwen3-8b's is 7.4% (Table 1).

    Experimental setup

    • Tested agents: 12 settings, each evaluated once: o1-mini, GPT-4o-mini, GPT-3.5-turbo, DeepSeek-R1, DeepSeek-V3, Gemini-2.5-flash, and Qwen3-8b, Qwen3-32b, Qwen3-235b-a22b with reasoning on and off. + indicates reasoning enabled.
    • Optimization-side models: LA is DeepSeek-V3, LE is Qwen3-32b, LD is Qwen3-8b. All three appear in the tested settings. Section 5.2 also reports MDR for Qwen3-14b; the paper does not clarify whether it is a 13th tested agent.
    • Data and implementation: MCPTox contains 45 real servers, 353 real tools, and 1,497 malicious cases; this paper uses the implicit poisoning subset of 548 cases, compared against manually poisoned tools on the same servers, tools, and queries. The pipeline is based on open-source MCP codebases and default system prompts.
    • Metrics: ASR = Nsa / Nvr, MDR = Nm / Nv. Ignored falls back to TA, Direct directly calls TK, Others are other tools or refusals. The paper does not mention using another LLM to score the final ASR.
    • Detectors: AI-Infra-Guard and Oracle. The paper does not specify their internal models, nor the Nv for MDR.
    • Hyperparameters: Unless otherwise stated, N=5, W=1, T=3. The paper does not report the number of queries to LE and LD during optimization; the tested settings are described as single evaluations.

    Main results

    The table below is based on Table 1, in %. Ignored, Direct, Others are from the MCP-ITP column. The DeepSeek-V3 row shares its name with the LA used in optimization; Qwen3-32b+ is the same model as LE.

    Swipe horizontally to read the table

    ModelITP ASRMCPTox ASRIgnoredDirectOthers
    o1-mini82.9%59.5%4.2%6.8%6.1%
    GPT-3.5-turbo84.2%48.2%9.3%3.4%3.1%
    DeepSeek-R166.7%66.0%5.8%8.7%18.8%
    DeepSeek-V3 (same as LA)78.4%44.8%14.8%4.8%2.0%
    Gemini-2.5-flash47.6%46.0%5.5%18.8%28.1%
    Qwen3-8b7.4%4.3%66.7%24.9%0.96%
    Qwen3-32b+ (same as LE)69.9%45.1%26.2%3.6%0.3%
    Qwen3-235b-a22b16.5%8.0%29.8%53.7%0.0%
    • Authors' summary: The authors state that ASR for all 12 settings is higher than the manual baseline, with 8/12 improving by more than 10 percentage points, citing GPT-3.5-turbo, DeepSeek-V3, and Qwen3-32b+ as examples. According to the two columns of Table 1, those not reaching this magnitude are DeepSeek-R1, Gemini-2.5-flash, Qwen3-8b, and Qwen3-235b-a22b.
    • Failure types: The authors state that gains mainly come from reduced Ignored, and that most failures are Ignored. In the table, the main category for Qwen3-235b-a22b is Direct, not Ignored; Direct is not counted as implicit success.
    • Settings not listed in the table: GPT-4o-mini, Qwen3-8b+, Qwen3-32b, and Qwen3-235b-a22b+ have MCP-ITP ASR of 72.5%, 40.5%, 28.8%, and 45.3%, respectively (Table 1). Qwen3-32b shares its name with LE, and its MCPTox ASR is 9.5%.

    Detection rates

    • What was tested: Figure 4 compares MCP-ITP and MCPTox under AI-Infra-Guard and Oracle in terms of MDR.
    • Results: For o1-mini, under AI-Infra-Guard, MDR goes from 17.22% to 0.96%; under Oracle, from 77.35% to 31.39%. The same section also writes that under AI-Infra-Guard, Qwen3-14b is 0.3% and o1-mini is 1.0%, and under Oracle they are 22.0% and 31.4%, respectively. The abstract's "as low as 0.3%" matches the earlier 0.3%, but the abstract does not specify the model or detector.
    • Authors' interpretation: The authors state that MCP-ITP is less detectable than the manual baseline under both methods. The coexistence of 0.96% and 1.0%, and 31.39% and 31.4%, is not explained in the paper as to whether they are different notations of the same measurement.

    Scale and reasoning

    • What was tested: Qwen3 scale and reasoning toggle; the authors also include o1-mini in the capability comparison.
    • Results: The authors state that under the same settings, Qwen3-32b has higher ASR than Qwen3-8b, and o1-mini is higher than Qwen3-32b. Table 1 corresponds to 28.8%, 7.4%, and 82.9%. With reasoning enabled, the text states Qwen3-8b goes from 7.44% to 40.5%, and Qwen3-32b from 28.8% to 69.9%. Table 1 shows Qwen3-235b-a22b+ at 45.3%, lower than Qwen3-32b+'s 69.9%; the authors' sentence does not mention 235b.
    • Authors' interpretation: The authors consider this consistent with prior work on inverse-scaling, and argue that increased capability does not necessarily improve robustness, but may instead be more susceptible to poisoned contextual tool descriptions. The authors state that this trend is mainly driven by a decrease in Ignored.

    R and evaluation model

    • What was tested: Table 2 varies whether desc(TK) includes R, and replaces the evaluation model LE from Qwen3-32b to o1-mini. What changes are the attack description and the evaluation LLM, not the definition of the 12 tested agents.
    • R: The authors state that o1-mini, GPT-4o-mini, and DeepSeek-R1 increase by 2.6, 7.7, and 4.6 percentage points, respectively, while Qwen3 and Gemini-2.5-flash decrease. In the table, DeepSeek-V3 goes from 78.4% to 71.8%, and GPT-3.5-turbo from 84.2% to 86.2%; these two rows are not in the authors' named list. The Base (S only) column matches the MCP-ITP ASR in Table 1 (Qwen3-8b is 7.4% in Table 1 and 7.44% in Table 2).
    • LE: The authors state that using Qwen3-32b as LE generally yields higher ASR; for o1-mini and GPT-3.5-turbo, switching to o1-mini is slightly higher, at 84.6% vs. 82.9% and 86.4% vs. 84.2%. The authors state that a stronger LE causes some candidates to reach the shadow query threshold earlier and stop early. Gemini-2.5-flash has 47.6% and 47.5% in the two columns.

    Other ablations and analyses

    • Iterations: The authors state that increasing iterations raises ASR; Figure 5(a) shows the trend for representative models on the Commander server with TT, but the text does not provide values for each point. The text refers to it as Figure 2a, inconsistent with the Figure 5 caption numbering.
    • Figure 5(b) caption is a comparison of ASR for Qwen3 at different scales with and without reasoning; the corresponding text reference is written as Figure 2b.
    • Figure 3 gives per-server results for HyperBrowser, Memory, Email, and Github; the text does not provide values for these subfigures.
    • The default hyperparameters are only N=5, W=1, T=3; the paper does not report ASR for other values.
    • Each tested setting is evaluated once; the paper does not report repetitions or statistical tests.
    • Qwen3-8b's ASR is 7.4% in Table 1, but 7.44% in the text and Table 2.
  5. What are some points that can be further explored?

    The authors note that stronger detectors would still raise MDR, and the evaluation currently uses only MCPTox.

    Limitations and future directions noted by the authors

    • Stronger detectors: When LLM malicious tool detection uses stronger models, MCP-ITP's MDR will still increase. The authors write "better evading such detection without significantly sacrificing attack effectiveness" as a future direction (Limitations).
    • Data scope: The experimental evaluation is currently limited to MCPTox; the authors give the reason that available datasets for implicit MCP tool poisoning remain scarce (Limitations).
    • Future evaluation: The authors state that future work should extend to newly developed or broader datasets for more comprehensive comparative evaluation (Limitations).
    • Theoretical analysis: The authors state that the paper focuses on empirical evaluation to demonstrate attack effectiveness and evasion, rather than providing formal theoretical analysis (Limitations).

    Experimental coverage

    • The tested settings are the 12 listed in 5.1: o1-mini, GPT-4o-mini, GPT-3.5-turbo, DeepSeek-R1, DeepSeek-V3, Gemini-2.5-flash, and Qwen3-8b, Qwen3-32b, Qwen3-235b-a22b with reasoning on and off; each setting is evaluated once (5.2).
    • The data is the MCPTox implicit poisoning subset of 548 cases; the overall benchmark has 45 servers, 353 tools, and 1,497 malicious cases. The ASR denominator is valid responses Nvr, and the MDR denominator is valid outputs Nv.
    • On the optimization side, LA is DeepSeek-V3, LE is Qwen3-32b, and LD is Qwen3-8b; defaults are N=5, W=1, T=3. The paper does not report the value of m, nor the number of queries to LE and LD during optimization.
    • Detection evaluation uses AI-Infra-Guard and Oracle (Figure 4, 5.2). The paper does not report the internal models of these two detectors, the sample size for MDR, statistical tests, or agreement between review and human; the paper does not report human evaluation.
    • Ablations include whether R is included, replacing LE with o1-mini, Qwen3 scale and reasoning, and iteration trends on the Commander server (Table 2, Figure 5). The paper does not report separate results for copy-based and paraphrase-based. Section 5.2 reports MDR for Qwen3-14b but does not clarify the role corresponding to that name.
  6. Summarize the main content of the paper

    MCP-ITP uses black-box iterative generation of implicitly poisoned tools, and on some agents its ASR is higher than the MCPTox manual baseline.

    MCP-ITP is an implicit tool poisoning framework for the MCP registration phase. The problem it addresses is: the poisoned tool TK is not called, yet instructions written in metadata can still make the agent abandon the original tool TA and instead call a legitimate high-privilege tool TG.

    • Approach: The description is split into a camouflage part R and a poisoning part S, with only S undergoing black-box iteration. DeepSeek-V3 handles rewriting, Qwen3-8b simulates detection and penalizes candidates flagged as malicious, and Qwen3-32b checks on shadow queries whether TG is called instead. Default is 5 candidates per round, keep 1, up to 3 rounds.
    • Main results: In evaluations on the MCPTox implicit subset of 548 cases, with each of 12 agents tested once, the authors state ASR reaches up to 84.2%; in Table 1, this number is for GPT-3.5-turbo, with the manual baseline at 48.2%. The lowest MCP-ITP ASR in the same table is Qwen3-8b without reasoning, at 7.4%.
    • Not uniform: The authors state that 8/12 settings improve by more than 10 percentage points. In Table 1, DeepSeek-R1 is 66.7% vs. 66.0%, and Gemini-2.5-flash is 47.6% vs. 46.0%. Qwen3-235b-a22b has Direct at 53.7%; directly calling TK is not counted as implicit success.
    • Detection: The authors state that MDR is lower than the manual baseline under AI-Infra-Guard and Oracle. For o1-mini, MDR goes from 17.22% to 0.96% under the former, and from 77.35% to 31.39% under the latter. Section 5.2 also writes that Qwen3-14b is 0.3% under AI-Infra-Guard.
    • Authors' conclusion: Context manipulation without direct execution poses a real threat in MCP and requires targeted defenses. The authors also note that stronger detection models would still raise MDR, the evaluation is limited to MCPTox, and there is no formal theoretical analysis.

Related papers

Show 3 more papers
Read originalarxiv.org