COPEX:跨模型上下文协议层的大语言模型对抗上下文鲁棒性基准测试 COPEX: Benchmarking LLM Robustness to Adversarial Context Across Model Context Protocol Layers 预印本

⚠️ 本文为 预印本(arXiv 公开版本),尚未经过正式同行评审。作者自发公开,结论未经期刊审稿验证,阅读时请知悉。
发布时间:2026-10-03
⬇️ 4 次下载
👁️ 预览文献
💡 AI 中文简介
大语言模型在MCP系统中常作为工具调用中介,但用户指令、工具模式、工具输出或协议消息都可能被注入对抗内容。现有测试常把模型脆弱性与防护、编排和任务能力混在一起。本研究提出COPEX基准,固定代理栈只变模型,覆盖4个入口面、25种攻击、125个场景。测试9个模型共3375次,平均攻击成功率64.4%,各入口面58.3%到71.4%。加入输入与上下文扫描后,8种攻击子集成功率降低49.6%。
领域人工智能安全 / 大语言模型鲁棒性与评估
适合谁读需要一定专业背景(了解大语言模型、工具调用与安全评估)
核心贡献1. 提出COPEX基准,通过固定代理栈、仅改变工具选择模型,隔离模型自身脆弱性与系统防护/编排的影响。2. 覆盖模型/代理、客户端、服务器/工具、传输四个入口面的25种攻击类型,系统评估MCP各层对抗风险。
关键数据9个模型、3375次试验,平均攻击成功率64.4%,入口面均值58.3%-71.4%;输入与上下文扫描使8种攻击子集平均成功率降低49.6%。
推荐理由如果你关心大模型在真实工具调用系统中到底有多容易被“带偏”,这篇提供了干净可复现的量化答案。
关键词["大语言模型", "对抗鲁棒性", "模型上下文协议", "基准测试", "工具调用", "安全评估"]

原文摘要

查看英文原文摘要

Large language models increasingly mediate tool use in Model Context Protocol (MCP) systems, where adversarial influence may enter through user instructions, tool schemas, tool outputs, or protocol messages. Existing benchmarks often evaluate deployed agents, conflating model susceptibility with guardrails, orchestration, and general task capability. We introduce COPEX (COntext Provider EXploitation), a controlled benchmark that isolates the model as an MCP client by fixing the surrounding agent stack and varying only the tool-selecting model. COPEX covers 25 attack types instantiated as 125 scenarios across four entry surfaces: model/agent, client, server/tool, and transport. Across nine models and 3,375 trials, the mean attack success rate is 64.4%, with surface-level means ranging from 58.3% to 71.4%. Some client- and transport-level attacks succeed partly outside the model's observation or control, separating system exposure from model susceptibility. Combined input and context scanning reduces mean attack success by 49.6% on an eight-attack defense subset relative to the undefended setting. The benchmark is available at https://github.com/inspire-center/copex.