Researchers propose TIP: using tree-structured search to generate stealthy injection payloads for MCPInvisible Threats from Model Context Protocol: Generating Stealthy Injection Payload via Tree-based Adaptive Search
Translation in progress — untranslated text is omitted.
The researchers propose Tree-structured Injection Payloads (TIP), a black-box attack against MCP-enabled agents that hijacks agent control by maliciously manipulating tool responses. The method models payload generation as a tree-structured search problem, guided by an attacker LLM under a coarse-to-fine optimization framework, and introduces a path-aware feedback mechanism that presents only high-quality historical trajectories to the attack model to avoid local optima; it also explicitly conditions the search on observable defense signals and dynamically adjusts the exploration budget to resist defense transformations. Experiments on four mainstream LLMs show that TIP achieves an attack success rate exceeding 95% in no-defense settings, requiring an order of magnitude fewer queries than previous adaptive attacks; it remains over 50% effective against four representative defense methods, clearly outperforming current state-of-the-art attacks. The authors implemented the attack on a real MCP system and discussed potential mitigations.
- Third-party MCP server responses are trusted by default by the client, and a stealthy update after installation can write indirect prompt injection into legitimate JSON fields. The authors state that existing injections are either easily caught by registration audits, have high perplexity, or rely on white-box access.
- TIP treats payload generation as tree search. The attacker LLM first simulates a benign response according to the tool description, then refines semantics and JSON structure coarse-to-fine; path feedback only replays high-scoring ancestors, pruning uses Monte Carlo with M=20, and rewrites according to observable defense signals.
- In Table I, TIP's ASR without defenses is 100.0% (three tools) and 95.0% (ShipManager), with the model unspecified. Under Sandwich Prevention, it is 36.0% and 49.0%. On GetProduct, TIP queries 100 times, while TAP queries 2580.
- In Section VIII.B, the authors state that optimization still requires iterative queries, evaluation is limited to the next turn after the tool response, and they plan one-shot generation and long-term memory injection. Experiments cover four open-source victim models, four defenses, and four InjecAgent tools. Table I does not specify the victim models, and the paper does not report ASR sample sizes or repetition counts.
Related events and news
0 events · 1 news mentions
News that mentions this paper
- Adversa AIcites the paper's id or linkMCP 安全资源盘点:2026 年 4 月
The authors provide real-world demonstrations on LM Studio and VS Code using GPT-4o.