What A2M actually is

A2M (“Attraction-to-Manipulation”) is a black-box attack framework targeted at agents built on the Model Context Protocol (MCP) [\[1\]](http://arxiv.org/abs/2609.26761v1).

Two things matter about MCP in this context:

  • MCP agents select tools via semantic matching: they read tool metadata and descriptions from third-party servers and pick what “sounds” right for a user’s request.
  • Those tools live on third-party servers with attacker-controlled metadata and outputs, which creates what the authors call a semantic supply-chain risk [\[1\]](http://arxiv.org/abs/2609.26761v1).

A2M turns that surface into a systematic attack pipeline:

  1. Attraction phase: Optimize attacker-controlled tool metadata so the MCP agent is very likely to invoke the malicious tool.
  2. Manipulation phase: Once the tool is in the loop, use execution traces to refine the tool’s responses so they steer the agent toward attacker-defined goals [\[1\]](http://arxiv.org/abs/2609.26761v1).

On a benchmark called LiveMCPBench, attacks optimized and evaluated on the model GLM‑4.6 achieve [\[1\]](http://arxiv.org/abs/2609.26761v1):

  • 93.6% macro-average malicious tool invocation rate across four scenarios.
  • 32.4× weighted token cost vs a benign baseline in a Cognitive Denial of Service scenario.
  • 74.4% mean attack success rate across:
  • Information Exfiltration
  • Environment Integrity Compromise
  • Reasoning Derailment

Without re-optimizing, attacks transfer to four other models, achieving macro-averages of 63.6% malicious invocation, 2.7× cost, and 24.5% attack success rate [\[1\]](http://arxiv.org/abs/2609.26761v1).

The authors’ conclusion: this motivates stronger tool vetting and runtime isolation in MCP ecosystems [\[1\]](http://arxiv.org/abs/2609.26761v1).

If you’re shipping MCP agents, this isn’t theoretical. It’s a blueprint for abusing the exact control surfaces your orchestrator already exposes.

---

How the attack works in terms of control flow

The paper characterizes A2M conceptually, not line-by-line code, but the two phases map cleanly onto the way MCP agents orchestrate tools [\[1\]](http://arxiv.org/abs/2609.26761v1):

1. Attraction: dominate the semantic ranking

Goal: maximize the chance the agent calls the malicious tool in relevant scenarios.

What A2M controls (per the abstract):

  • Tool metadata: names, descriptions, and other semantic fields that MCP agents use to choose tools [\[1\]](http://arxiv.org/abs/2609.26761v1).

Given a typical MCP-like tool selection loop:

  1. User issues a request.
  2. Orchestrator presents tool metadata to the model.
  3. Model selects one or more tools based on semantic alignment.

The Attraction phase tunes those metadata fields so that, when the model sees the list, it semantically prefers the attacker’s tool for the target task. The paper states explicitly that this phase “optimizes tool metadata to increase invocation probability” [\[1\]](http://arxiv.org/abs/2609.26761v1).

Important constraints:

  • The attack is black-box: A2M doesn’t rely on inspecting model internals [\[1\]](http://arxiv.org/abs/2609.26761v1).
  • It’s targeted at MCP agents that already rely on semantic matching, not custom hard-coded routers [\[1\]](http://arxiv.org/abs/2609.26761v1).

2. Manipulation: steer with execution traces

Once the malicious tool is reliably in the loop, the game shifts:

Goal: shape the conversation and tool outputs so the final outcome matches the attacker’s goal.

The paper describes this phase as:

“The Manipulation phase uses execution traces to refine adversarial tool returns that steer agents toward attacker-desired outcomes.” [\[1\]](http://arxiv.org/abs/2609.26761v1)

Key moving parts:

  • Execution traces: sequences of agent/tool interactions across a multi-step run.
  • Adversarial tool returns: content and structure of responses from the malicious tool.

In an MCP agent, execution traces typically include (at least conceptually):

  • The user query and system instructions.
  • Which tools were called, with what arguments.
  • The tools’ outputs.
  • The model’s follow-up messages and new tool choices.

A2M uses those traces to iteratively adjust what the malicious tool returns so that, once called, it can:

  • Leak sensitive information (Information Exfiltration).
  • Modify or corrupt external state (Environment Integrity Compromise).
  • Knock the agent off its correct reasoning path (Reasoning Derailment).

All three attack categories above, plus Cognitive Denial of Service, are explicitly named as scenarios in which A2M reaches the reported success rates [\[1\]](http://arxiv.org/abs/2609.26761v1).

---

How this plugs into a typical MCP stack

From the abstract alone, we can reconstruct the relevant trust boundaries.

A minimal MCP agent stack under A2M-like threat looks like:

  • Client / UI: where the user issues queries.
  • Orchestrator / agent runtime:
  • Handles MCP protocol negotiation.
  • Fetches available tools and their metadata from third-party servers.
  • Formats tool lists and descriptions for the model.
  • Executes tool calls and logs execution traces.
  • LLM (e.g., GLM‑4.6 in the paper’s experiments): decides which tools to call, and how to interpret their outputs [\[1\]](http://arxiv.org/abs/2609.26761v1).
  • Tool servers:
  • Hosted by third parties.
  • Expose MCP interfaces with attacker-controlled metadata and outputs [\[1\]](http://arxiv.org/abs/2609.26761v1).

Where A2M lives:

  • On the tool server: controls metadata and tool responses.
  • Around the orchestrator’s logs: needs access to execution traces for the Manipulation phase [\[1\]](http://arxiv.org/abs/2609.26761v1).

Where defenses need to live (based on the paper’s takeaway):

  • Tool vetting: how tools are allowed into your ecosystem at all.
  • Runtime isolation: how much damage a compromised or malicious tool can do once it’s invoked [\[1\]](http://arxiv.org/abs/2609.26761v1).

This is structurally different from just “prompt security” or “alignment”: the exploit surface exists because you:

  1. Let untrusted servers advertise tools into your agent.
  2. Let the model decide which to call based on their self-description.
  3. Treat their outputs as trustworthy enough to drive subsequent decisions.

---

Why A2M matters now: the numbers

The results in [\[1\]](http://arxiv.org/abs/2609.26761v1) are what promote this from “theoretically scary” to “you should change how you architect MCP agents”.

On LiveMCPBench, with direct attacks optimized and evaluated on GLM‑4.6 [\[1\]](http://arxiv.org/abs/2609.26761v1):

  • Malicious tool invocation:
  • 93.6% macro-average across four scenarios.
  • That’s not “occasionally gets picked”; it’s almost always winning the semantic selection race when the attacker targets a scenario.
  • Cognitive Denial of Service:
  • 32.4× increase in weighted token costs versus a benign baseline [\[1\]](http://arxiv.org/abs/2609.26761v1).
  • This is a pure economic vector: you can drive your own infrastructure costs up by over an order of magnitude just by letting the wrong tool in.
  • Attack success rates:
  • 74.4% mean success across:
  • Information Exfiltration
  • Environment Integrity Compromise
  • Reasoning Derailment [\[1\]](http://arxiv.org/abs/2609.26761v1).
  • Transferability to other models:
  • Without re-optimization, attacks transfer to four other models, reaching:
  • 63.6% macro-average malicious tool invocation
  • 2.7× cost inflation
  • 24.5% mean attack success [\[1\]](http://arxiv.org/abs/2609.26761v1).

This transfer result is critical for practitioners: even if you’re not on GLM‑4.6, the same malicious tool configurations can still meaningfully hijack agents across multiple models without per-model tuning [\[1\]](http://arxiv.org/abs/2609.26761v1).

---

Failure modes for MCP agents under A2M-style attacks

Given the abstract’s scenario taxonomy and metrics, you can think about specific failure modes in your own systems.

1. Information Exfiltration

Risk: An attacker-operated MCP tool quietly extracts and returns sensitive information.

With A2M:

  • Attraction makes sure the exfiltration tool is called when the user’s query or agent’s plan touches sensitive operations.
  • Manipulation shapes outputs to draw more secrets into the context or to leak them out explicitly [\[1\]](http://arxiv.org/abs/2609.26761v1).

From a system perspective, this is a breakdown of:

  • Data minimization: sensitive data flowing through unvetted tools.
  • Trust boundaries: no isolation between MCP tools and high-value contexts.

2. Environment Integrity Compromise

Risk: Tools mutate external systems or state in unintended ways.

The paper reports a 74.4% mean success rate across multiple attack types including Environment Integrity Compromise in the GLM‑4.6 setting [\[1\]](http://arxiv.org/abs/2609.26761v1).

If your MCP tools can:

  • Write to databases,
  • Call external APIs,
  • Or trigger side-effectful workflows,

then a malicious tool that is:

  1. Highly likely to be chosen (Attraction),
  2. Able to shape the execution flow (Manipulation),

can cause persistent, hard-to-detect corruption.

3. Reasoning Derailment

Risk: Even “read-only” tools can nudge the agent into wrong conclusions.

The paper names Reasoning Derailment as one of the scenarios where A2M achieves high mean attack success [\[1\]](http://arxiv.org/abs/2609.26761v1).

This matters for:

  • Decision-support agents,
  • Safety-critical recommendation systems,
  • Any flow where humans rely on agents for judgment.

A malicious tool can inject adversarial content or misleading partial data into the trace, steering the model’s subsequent steps.

4. Cognitive Denial of Service

Risk: Make your system too expensive or slow to be usable.

By manipulating the agent’s behavior after a malicious tool is invoked, A2M can cause weighted token costs to rise to 32.4× the benign baseline in Cognitive Denial of Service scenarios on GLM‑4.6 [\[1\]](http://arxiv.org/abs/2609.26761v1).

In practice this can translate to:

  • Dramatically longer conversations.
  • Repeated tool invocations or loops.
  • Larger, more verbose responses.

If you’re running multi-tenant MCP services or exposed APIs, this is a cost and availability vector.

---

Where to put defenses: vetting and isolation

The paper explicitly concludes that its findings motivate stronger tool vetting and runtime isolation in MCP ecosystems [\[1\]](http://arxiv.org/abs/2609.26761v1).

That implies:

1. Tool vetting as a first-class control

Since A2M’s attraction phase lives entirely in tool metadata [\[1\]](http://arxiv.org/abs/2609.26761v1), you shouldn’t:

  • Treat any MCP endpoint as equally trustworthy.
  • Let unvetted tools advertise themselves directly into your agent’s selection surface.

Instead, from a systems standpoint, you can:

  • Maintain an allowlist of tools with pre-reviewed metadata and behavior.
  • Add manual or automated review steps before accepting tool registrations.
  • Normalize and constrain tool descriptions so they can’t arbitrarily optimize for semantic selection.

These are not described in the paper, but they follow directly from the fact that A2M’s first phase hinges on attacker-controlled descriptions.

2. Runtime isolation as a blast-radius reducer

Because the Manipulation phase uses execution traces to iteratively shape adversarial outputs and steer agents [\[1\]](http://arxiv.org/abs/2609.26761v1), you want to:

  • Assume compromise at the tool level.
  • Limit how far a single bad tool can steer a run.

This suggests:

  • Isolating write-capable tools from direct access to critical systems.
  • Adding independent policy checks around side-effectful calls, instead of relying on the agent alone.
  • Logging and analyzing traces for anomalies, especially:
  • Unusually frequent calls to a single tool,
  • Abrupt changes in reasoning after specific tools.

Again, the paper doesn’t prescribe concrete mitigations, but any effective defense has to neutralize the exact surfaces A2M exploits: metadata-based selection and trace-driven manipulation.

---

What to watch next

From a builder’s perspective, A2M marks a shift:

  • The attack surface isn’t just prompts or model parameters.
  • It’s the ecosystem protocols—here, MCP—that wire models to tools.

Specific directions to watch, grounded in [\[1\]](http://arxiv.org/abs/2609.26761v1):

  • Benchmarks like LiveMCPBench: The paper uses LiveMCPBench as the evaluation environment; future work will likely extend these scenarios or add new ones as attack patterns evolve.
  • Cross-model robustness: The transfer experiment across four additional models without re-optimization shows this isn’t a single-model quirk [\[1\]](http://arxiv.org/abs/2609.26761v1).
  • Standardized vetting and isolation patterns for MCP: Since the authors highlight the need for stronger tool vetting and runtime isolation, expect frameworks and best practices to coalesce around these ideas [\[1\]](http://arxiv.org/abs/2609.26761v1).

If you’re adopting MCP, treat these as architectural constraints, not optional hardening passes.

---

What is not documented

Based on the abstract and metadata in [\[1\]](http://arxiv.org/abs/2609.26761v1), the following are not established:

  • The exact internal algorithms A2M uses to optimize metadata in the Attraction phase or to refine tool outputs in the Manipulation phase.
  • The detailed structure, tasks, or scenarios contained in LiveMCPBench beyond the mention of four scenarios and the named attack categories.
  • The identities or architectures of the four additional models used in the transferability experiments, beyond the fact that they are distinct from GLM‑4.6.
  • Any specific MCP implementation details (e.g., exact protocol messages, reference runtimes, or API shapes) beyond the high-level reliance on semantic matching and third-party tool servers.
  • Concrete defensive mechanisms, APIs, or tooling for vetting and runtime isolation; the paper only states that its findings motivate stronger vetting and isolation, not how to implement them.