Answers are grounded in this paper and cite their sources.
The Model Context Protocol enables large language model applications to use external resources, but untrusted tool output may be interpreted as instruction rather than data. This study evaluates indirect prompt injection in a controlled, local, read‐only file‐summarization workflow implemented with the official Python MCP SDK and stdio transport. Eight open‐source local models were tested against 18 attack vectors under three defense conditions, with 10 repetitions per model‐vector‐condition cell. Of 4320 attempted executions, 4318 were valid. Target attack success rate was 52.61% (757/1439; Wilson 95% CI 50.02–55.18) without a guardrail, 15.71% (226/1439; 13.92–17.68) with ProtectAI DeBERTa, and 7.92% (114/1440; 6.63–9.43) with zero‐shot XLM‐RoBERTa. In an independent detector audit using 300 benign documents and 18 attack fixtures, DeBERTa achieved 55.56% recall with 33.33% false‐positive rate, whereas XLM‐RoBERTa achieved 77.78% recall with 41.00% false‐positive rate. Across 240 benign summarization attempts, task success was 98.75% without filtering, 66.25% with DeBERTa gating, and 75.42% with XLM‐RoBERTa gating. The results show that guardrails can reduce attack success but may also introduce substantial false alarms and utility loss. The findings apply to the measured local MCP file‐summarization workflow and do not establish security of remote MCP transport, authorization, autonomous tool use, or side‐effecting tools.
No takes yet. Share an insight, caveat, or question.
Öztürk et al. (2026) studied this question.
Synapse has enriched 10 related papers. Consider them for comparative context: