COPEX: A Controlled Attack Evaluation Benchmark for MCP Agents ReleasedCOPEX
COPEX evaluates nine models on a fixed MCP agent stack; across 3,375 trials the average ASR is 64.4%, and it distinguishes attacks visible to the model from compromise of the underlying system.
- Existing MCP safety evaluations often conflate model susceptibility with system prompts, guardrails, orchestration and task capability. COPEX focuses on how to fix the agent stack and distinguishes adversarial context visible to the model from system compromise outside the model's observation boundary.
- COPEX implements 25 attack classes as 125 scenarios, covering four MCP entry points; it fixes the ReAct loop, tool environment and execution budget, changing only the model that selects tools. Success is determined by deterministic trajectory checks or by a Claude Haiku 4.5 semantic judge, and scanning defenses and Reflexion are also evaluated.
- Nine models completed 3,375 main trials, with an average ASR of 64.4%; model overall values ranged from 44.3% for Opus-4.7 to 81.6% for Grok-4.3. On the eight-attack subset, combined scanning reduced average ASR from 80.6% to 41.2%, but MCP rebinding remained at 100%.
- The authors state that secondary studies run only once per variant and their results are point estimates; 15 attack classes rely on an LLM judge, and generalization is limited by the 25 attack classes and five variants per class. ASR measures susceptibility once an attack is delivered and is not equivalent to real-world exploitability.
- Threat model
- The attacker controls one of four entry points—model/agent, client, server/tool, transport—and cannot modify model weights or fixed system instructions; the goals include unsafe tool calls, sensitive information leakage, acceptance of manipulated content, and compromise of the client/server/transport.
- Evaluated models
- Claude Opus 4.7Claude Sonnet 4.6GPT-5.5GPT-5 MiniGPT-4.1Gemini 3.1Grok 4.3Llama-3.2:3bQwen-2.5:3b
- Benchmarks
- COPEX
- Metrics
- ASRCohen’s κjudge agreementprefill/decode tokensAPI cost
COPEX is a controlled evaluation benchmark for MCP systems that distinguishes model susceptibility to adversarial contexts from system-level exposure by fixing the surrounding agent stack and swapping the tool selection model. The benchmark includes 25 attack types and 125 scenarios, reporting an average success rate of 64.4% across 9 models and 3375 trials. Some client- or transport-layer results occur outside the model's observation or control and cannot be simply interpreted as model failure itself. The authors report that in a defense subset of 8 attack types, combined scanning reduced the average success rate by 49.6% relative to the no-defense setting.
Why it was selectedThe paper uses a fixed agent stack, replacing only the tool selection model, to decompose MCP attacks across four entry surfaces for evaluation, facilitating the distinction between model susceptibility and underlying system compromise.
Related events and news
1 events · 0 news mentions
- This event's paper
COPEX:MCP 客户端模型攻击基准
Paper analysis
What problem does this paper attempt to solve?
COPEX fixes the MCP agent stack and distinguishes model susceptibility to visible adversarial context from compromise of the underlying system.
The core problem is how to isolate evaluation of model behavior in MCP agents without mixing guardrails, orchestration and task capability into model robustness.
- Problem setting: An MCP model's decisions depend not only on the user task but also on tool schemas, tool responses and the context assembled by the host/client; the client, server and transport may also affect execution without the model seeing it.
- Confounding in existing evaluations: The authors argue that benchmarks evaluating deployed products reflect system prompts, guardrails, interfaces and orchestration together; results centered on task completion may also count stack-layer errors as model failures or mask that intermediate steps already complied with an attack.
- Core observation: Model-visible responses and execution trajectories may diverge; therefore attacks in what the model can observe and compromise below the observation boundary need to be recorded separately, and Figure 1 gives a remote-access case that separates the two.
- Proposed approach: The authors propose COPEX (COntext Provider EXploitation), which fixes the agent loop, orchestration, scenario logic, tool environment and execution budget, and changes only the LLM responsible for tool selection; it contains 25 attack classes, 125 scenarios and four scan-defense configurations.
- Threat model:
- Goals: Cause unsafe tool calls, sensitive information leakage, acceptance of manipulated content, or compromise of client, server or transport behavior, depending on the scenario.
- Knowledge and control: The attacker can control one of the four entry-point surfaces—model/agent, client, server/tool, transport—with specific capabilities defined by the scenario.
- Constraints: The attacker cannot modify model weights or fixed system instructions.
- Victim system: The LLM acting through an MCP client and its controlled scenario environment; transport experiments run on a controlled server isolated with Docker.
What related research exists?
Related work is divided into tool-agent benchmarks, MCP security research and reasoning architectures; COPEX distinguishes itself through a fixed stack and scoring matched to each attack.
Security benchmarks for tool-using agents
- AgentDojo (2024) and InjecAgent (2024): Evaluate agents performing normal user tasks when facing indirect prompt injection.
- ASB (2025b): Extends evaluation to system prompts, user input, tools and memory.
- SHADE-Arena (2025): Evaluates agent behavior that pursues hidden harmful goals while completing benign tasks. The authors state that these works are not designed around MCP attack entry points, and their results mainly reflect end-to-end agent behavior.
MCP security analyses and benchmarks
- Security analysis work: Guo et al. (2025), Hou et al. (2025), Hasan et al. (2025) and MCP-DPT (2026) discuss client-, server-, tool- and transport-related threats or defense placement.
- MCPTox (2025) and MCP-Universe (2025): The former studies tool poisoning of real MCP servers, the latter evaluates task completion in real multi-server environments.
- MCP-SafetyBench (2025), MSB (2025a) and MCPSecBench (2025): Evaluate, respectively, attacked unsafe behavior under real servers, end-to-end MCP workflows, and deployed products such as Cursor and Claude Desktop. The authors criticize that centering on task completion or deployed-product results mixes in stack-layer factors.
Reasoning and acting architectures
- ReAct (2023): COPEX's default reasoning architecture.
- Reflexion (2023): Generates an explicit reflection on the current trajectory before the next action; COPEX compares the two under identical MCP conditions.
Comparison setup: The paper does not implement the above external benchmarks as experimental baselines; Table 1 compares the goals, number of attack types, transport coverage and scoring methods of MCPTox, MSB, MCPSecBench, MCP-SafetyBench and COPEX. The experimental comparisons are no scan, input scan, context scan and combined scan, plus ReAct vs. Reflexion, all using data from COPEX scenario subsets.
The authors position COPEX as a benchmark that fixes the surrounding agent stack, organizes attacks by four entry points, and selects deterministic trajectory checks or LLM review based on the evidence, rather than another end-to-end product leaderboard.
How does the paper address this problem?
COPEX uses a manifest-driven fixed execution environment, constructs attacks by entry point, and then computes ASR via trajectory predicates or semantic review.
The overall approach is to have COPEX fix all execution conditions other than the model, write each trial's model, attack, server, defense, budget and scoring method into a YAML manifest, and save the full trajectory.
Observation boundary and execution environment
- The round-t context is defined as ct=(h,p,St,R≤ t), at∼ M(·∣ ct): h is the fixed system instruction, p is the user task, S_t is the tool schema, and R≤t is the tool responses already returned.
- Client state, server behavior and transport state can affect execution without entering c_t; results are reported by the main entry point through which the attack first enters the execution path, and lower-layer compromise is not directly interpreted as model susceptibility.
- ReAct is used by default; Reflexion generates an explicit reflection before selecting the next action and adds it to the next round's context, with the other models, tools, scoring, defenses and budget kept matched.
- The environment contains 16 MCP servers, 75 tools and 7 resources, using stdio, HTTP, Streamable HTTP and Docker-isolated transport; it records model inputs and outputs, tool calls and responses, protocol events, environment state, token counts and final responses.
Attack suite and scenario construction
- The 25 attack classes fall under model/agent, client, server/tool and transport; each class has five variants, for 125 executable scenarios in total, with the full taxonomy and per-attack means in Table 7.
- The five variants preserve the exploitation mechanism and security objective while changing the operational context, payload parameters or attack stage; application contexts include finance, DevOps, healthcare, release management, incident response, compliance, insurance and education.
- The authors first manually specify the attack capability, mechanism, scenario, violation objective and success criterion and write the first variant, then use an LLM to help draft the remaining variants, with manual revision, execution and checking.
- Only scenarios whose execution trajectory actually triggers the target mechanism and whose scoring meets the success criterion are retained; transport attacks run in a Docker-isolated network rather than directly modifying the in-process model context.
Scanning defenses and where they act
- The four modes are no scanning, input scanning, context scanning and combined scanning; the guard model has no tool access and returns only ALLOW or BLOCK, the prompt does not name specific attack classes, it checks bounded-length serialized content, and it fails open on failure.
- Input scanning checks the user task once before execution; after blocking, the trial ends as DETECTED and is recorded as an attack failure.
- Context scanning checks the schema at tool registration and checks responses before they enter the model context; a blocked schema is removed from the catalog, and a blocked response is replaced with a structured error.
- Response scanning occurs after the tool call and cannot undo tool execution or server-side effects; later schema changes and server behavior changes are not rescanned. Appendices K–M give the full guard prompts.
Success determination and metrics
- 10 attack classes are determined by deterministic checks based on tool calls, protocol events, logs or environment state; 15 are determined by a fixed LLM judge that interprets the response or disclosed information according to the scenario's success criterion. Four variants of Malicious Code Execution use infrastructure checks and one uses the judge.
- The trial outcome is yM,i,v,n∈{0,1}, and ASR is the equally weighted average over the five variants and the N repetitions per variant; the judge receives the criterion, the full trajectory and the final response, and outputs a binary judgment and a brief rationale.
- The judging rules in Appendix G take the tool-call history as authoritative and do not negate an unexpected call that already occurred just because the final reply claims an injection was detected; when classification is unclear, the default is detected. Appendices H and I give the semantic-scoring scenario configuration and examples of deterministic-scoring trajectories, respectively.
What experiments did the paper conduct?
The main benchmark contains nine models and 3,375 trials; it additionally tests scoring methods, scanning defenses, reasoning architectures, judge consistency and cost.
Experimental setup
- Models tested: Claude Opus 4.7, Claude Sonnet 4.6, GPT-5.5, GPT-5 Mini, GPT-4.1, Gemini 3.1, Grok 4.3, Llama-3.2:3b, Qwen-2.5:3b; the first seven run via provider APIs and the last two locally via Ollama.
- Main benchmark: COPEX's 25 attack classes, five variants each; each model–scenario pair is repeated three times, 375 runs per model, 3,375 in total. Uniform ReAct, temperature 0, at most 10 model turns, 4,096-token output limit.
- Scoring: 10 classes use programmatic predicates and 15 are reviewed by Claude Haiku 4.5; the metric is ASR, where lower means stronger resistance to the tested attacks, macro-averaged over attacks, models and entry points.
- Error handling: 25 main trials (0.7%) hit a provider error before any tool call and are kept in the denominator and recorded as unsuccessful attacks; all other trials have a judgment.
- Secondary studies: Use Sonnet-4.6, GPT-5.5, Gemini-3.1 and Grok-4.3, with five variants per condition, one run per variant, and independent executions; the scoring study uses six attack classes, the defense study eight, and the architecture study six.
- Specialized review: The semantic reviewer for the scoring study is Claude Opus 4.7; the semantic reviewer for the defense and architecture studies is Haiku 4.5, and all defense guards are also Haiku 4.5. GPT-5.5 re-scores the saved semantic trajectories of the main benchmark.
Main results
According to Table 3, values are COPEX main-benchmark ASR (%); Avg. is the macro-average over 25 attack classes, and Mean is the macro-average over the nine models.
Swipe horizontally to read the table
Model Avg. model/agent client server/tool transport Opus-4.7 44.3 33.3 38.1 44.2 73.3 Sonnet-4.6 45.1 38.3 37.1 47.9 62.2 Qwen-2.5 61.1 56.6 58.1 64.9 60.0 Llama-3.2 64.5 53.3 60.0 70.3 68.9 GPT-5.5 67.5 75.0 66.7 61.8 80.0 GPT-5 Mini 68.0 76.7 69.5 65.5 62.2 GPT-4.1 73.1 55.0 86.7 69.1 80.0 Gemini-3.1 74.1 61.7 95.2 64.8 75.6 Grok-4.3 81.6 75.0 98.1 73.9 80.0 Mean 64.4 58.3 67.7 62.5 71.4 - Differences across models: The authors state that no model keeps a low ASR across all four entry points; Opus-4.7, the lowest overall, is still 73.3% on transport, and Gemini-3.1 and Grok-4.3 are 95.2% and 98.1% on client respectively.
- Conditions on entry-point means: transport contains only three attack classes, of which MCP rebinding is 100.0% across all nine models (Tables 7, 8); the authors explicitly state that these means cannot show that a given protocol entry point is inherently harder to defend.
- Differences within attacks: The nine-model means in Table 7 range from 0.7% for Tool shadowing to 100.0% for Vulnerable client and MCP rebinding; in Figure 3 only the axes and model labels are visible, and the text reports model ASR of 46.7%–76.7% for deterministic attacks and 35.1%–84.9% for semantic attacks, which are different attack sets and cannot isolate a scoring-method effect.
Scoring methods and judge agreement under matched configurations
- Six-attack paired comparison: In Table 4, the deterministic/semantic ASR for Sonnet-4.6, GPT-5.5, Gemini-3.1 and Grok-4.3 is 70.0/73.3, 73.3/80.0, 83.3/86.7 and 80.0/93.3 respectively; the macro-average goes from 76.7% to 83.3%, a difference of 6.7 percentage points.
- Per-attack exceptions: Table 12 shows that not every model×attack rises, e.g. Gemini-3.1's Excessive Permissions falls from 80.0% to 60.0% and Sonnet-4.6's Pkg Squatting (Server) falls from 100.0% to 80.0%; Tool Shadowing is 0% under both methods for all four models.
- Dual-judge agreement: In Table 13, over 1,892 paired judgments, Haiku 4.5 and GPT-5.5 agree 84.2% of the time, with per-model Cohen's κ of 0.49–0.81; these trial-level ASRs are not directly comparable with the attack-type means in Table 3.
Scan defenses and observation boundaries
- Eight-attack subset: In Table 5, the macro-average ASR for no scan, input, context and combined scanning is 80.6%, 50.6%, 53.8% and 41.2%; combined scanning drops 39.4 percentage points, i.e. a 48.8% relative reduction versus no scan.
- Per-model results: Combined scanning is the lowest of the four configurations for all four models: Sonnet-4.6, GPT-5.5, Gemini-3.1 and Grok-4.3 are 30.0%, 40.0%, 50.0% and 45.0%, corresponding to reductions of 40.0, 40.0, 35.0 and 42.5 percentage points.
- Failures and counterexamples: MCP rebinding is 100% for all four models under all four defenses (Table 9); Parameter Poisoning on GPT-5.5 rises from 20% with no scan to 60% with input scanning and 60% with combined scanning, and on Gemini-3.1 combined scanning is still 100%. The authors attribute the remaining failures to the scanner not seeing transport state and being unable to prevent or undo the effects of tool execution.
ReAct vs. Reflexion
- Single-run secondary study: In Table 6, the four-model macro-average ASR goes from 85.0% for ReAct to 81.7% for Reflexion; Sonnet-4.6 and GPT-5.5 each drop 6.7 percentage points, while Gemini-3.1 and Grok-4.3 are unchanged.
- Four-run recheck: In Table 11, the paired Reflexion−ReAct difference is Sonnet-4.6 −8.3±4.3, GPT-5.5 −0.8±5.0, Gemini-3.1 −1.7±1.9 and Grok-4.3 +0.8±3.2 percentage points; the authors state that only Sonnet-4.6 shows a consistent decrease, so reflection cannot be treated as a reliable security control on this basis.
Other ablations and analyses
- Token ratio: On the main benchmark, prefill per trial is 2.6–24.5× decode (Section 5.6).
- API cost: The seven hosted models total $59.75, and per-model evaluation over 375 trials costs $2.77–$21.53, at prices accessed on 2026-05-12, excluding local compute.
- Readable labels in Figure 4: Opus-4.7 $21.53, GPT-5.5 $13.50, Sonnet-4.6 $9.69, Gemini-3.1 $5.41, GPT-5 Mini $3.85, GPT-4.1 $3.00, Grok-4.3 $2.77; the x-axis is log Tokens per trial, and the text conversion does not preserve bar lengths.
What are some points that can be further explored?
The authors list four limitations: secondary studies using a single run, LLM judging, attack coverage and real-world exploitability.
Limitations and future directions noted by the authors
- Precision of secondary studies: Defenses and other secondary studies run only once per variant; their reductions and score differences are point estimates and should be treated as indicative rather than precise results (Section 6, Limitations).
- Dependence on judging: 15 attack classes rely on an LLM judge, and their ASR reflects the judge's decision boundary rather than objective ground truth (Section 6, Limitations).
- Scope of generalization: Generalization is limited by the 25 attack classes evaluated and the five variants per class (Section 6, Limitations).
- Meaning of the metric: ASR measures susceptibility once an attack is delivered, not real-world exploitability; the latter also depends on attack prevalence, access conditions and cost (Section 6, Limitations).
- Trajectory release plan: The authors say execution trajectories will be added to the repository, as a future release plan (Section 7, Conclusion).
Scope of the experiments
- Main benchmark scale: Nine models, 25 attack classes, 125 scenarios, three runs per model–scenario, 3,375 in total; 25 provider errors are kept in the denominator and recorded as failures (Section 5.1).
- Secondary study scale: Four models, five variants per condition with one run per variant; the scoring, defense and architecture subsets contain six, eight and six attack classes respectively, with lists in Appendices B–D (Section 5.1).
- Defenses and architecture: Defenses evaluate only input, context and combined scanning, and all guards are Claude Haiku 4.5; the architecture comparison covers only ReAct and Reflexion, plus a four-run analysis (Appendices B, C).
- Scoring evidence: 10 deterministic check classes and 15 semantic-review classes; the dual-judge agreement rate is based on 1,892 paired judgments, and the paper reports no human review or human–judge agreement (Section 4.3, Appendix E).
- Cost records: API costs cover seven hosted models; local models are not priced at API rates; the paper reports no wall-clock time for the main benchmark (Section 5.6, Appendix F).
Summarize the main content of the paper
COPEX provides a layered MCP attack evaluation on a fixed stack, and shows that the model, entry point, scoring and the scope of defenses observed all affect ASR.
COPEX is a controlled security benchmark for MCP agents, whose goal is to separate attribution of a model's response to visible adversarial context from compromise caused by the client, server or transport outside the model's observation boundary.
- Problem and design: The agent loop, orchestration, tool environment, execution budget and scoring conditions are fixed, and only the tool-selection model is changed; each of 25 attack classes has five variants, forming 125 scenarios across four entry points.
- Judging method: 10 attack classes use deterministic trajectory checks and 15 use Claude Haiku 4.5 semantic review; input, context and combined scanning are also implemented, and ReAct and Reflexion are compared under matched conditions.
- Main results: Across 3,375 trials over nine models, the macro-average ASR over the 25 attack classes is 64.4%; Opus-4.7 is 44.3%, Grok-4.3 is 81.6%, and the four entry-point means range from 58.3% to 71.4% (Table 3).
- Scoring effect: In a matched study with four models and six attacks, the macro-average ASR under deterministic checks and semantic review is 76.7% and 83.3% respectively; the authors therefore argue for reporting the scoring method for each attack class rather than mixing the two kinds of results (Table 4).
- Defense boundary: On the eight-attack subset, combined scanning lowers average ASR from 80.6% to 41.2%, a relative reduction of 48.8%; MCP rebinding remains 100% under all models and defense configurations (Tables 5, 9).
- Authors' conclusion: The authors argue that a single robustness ranking is insufficient to describe MCP security, and that defenses need to be placed at the entry points they can inspect; single-run secondary studies, LLM review and attack-variant coverage limit interpretation of the results, and ASR is also not equivalent to real-world exploitability.