Plausible is not proven: tool identity, patch coverage and latent handoffs in AI agents
Three papers posted on 2026-11-16 examine places where an AI agent system accepts something because it looks right: a tool whose name and description match the task, a framework release whose advisory says the bug is fixed, and a cache of internal state handed from one agent to the next. Each shows that the plausible signal is not the security property, and each proposes a check that binds the property to something an attacker cannot simply imitate.
A tool's name is not its identity
The first paper studies the Model Context Protocol, which lets one client compose tools advertised by several independently operated servers. A tool is advertised by a name, a natural-language description and an input schema, and the model picks among tools using that metadata. The protocol requires names to be unique within one server, but the authors note it provides no mandatory host-wide identity binding a tool to the provider authorized to offer it. They call the resulting failure tool-provider misbinding: a request meant for a legitimate provider resolves to an attacker's tool. The attacker compromises none of the host, the model, the legitimate server or the network. It only runs another server visible to the same client and chooses what its tools advertise.
The experiment pairs one legitimate server, exposing a dataset-fetching tool, with one attacker server whose tool varies in a full factorial design: an unrelated or exactly copied name; an unrelated, copied or authority-enhanced description, the last adding cues such as enterprise-approved or officially verified; and an incompatible or compatible schema. That gives twelve conditions. Each was run with ten phrasings of the same benign request, five times each, for 50 trials per condition on each of five model-backed clients, against a local mock dataset with no external side effects.
What made clients pick the wrong provider
Low-alignment controls stayed near zero, and an exact name collision on its own rarely caused attacker selection, which rules out the explanation that merely adding a second server confuses the client. Failures came from alignment across fields. With an exact name and a copied description, switching only the attacker's schema from incompatible to compatible raised the average violation rate from 0 to about 0.78, with three clients jumping by about 1.00. Name collision was not required: an unrelated name combined with an authority-enhanced description and a compatible schema still produced wrong-provider execution for four of the five clients, and the fifth asked for clarification instead. Adding more attacker tools, up to ten, mainly pushed borderline conditions further; for most clients the strongest conditions were already near their ceiling with one.
The clients failed in different ways. Some resolved the ambiguity by silently selecting the attacker's tool; one mostly asked the user which tool to use; one did both. The authors treat clarification as security-relevant but not as a fix, since the client still cannot tell which provider is legitimate, and conclude that model-side caution reduces silent misbinding without creating provider identity. They propose binding each tool to a verified provider through signed tool manifests, stable provider-bound tool identifiers, schema hashes and client-side enforcement, as a complement to authorization, sandboxing and user consent, which govern what a tool may do after it has been selected. The study covers one task type and five clients, so the rates are specific to that setup.
A blocked exploit is not a restored invariant
The second paper asks what a security patch in an agent framework actually proves. An advisory names fixed versions, and replaying the published proof of concept shows whether the reported trigger still fires. The author argues that neither shows the boundary's underlying rule holds on every path that reaches it, because agent frameworks often reach the same boundary several ways, such as a local tool loader and a template-override loader. The method replays the original trigger and separately probes a distinct path to the same boundary, using benign probes only: an in-memory flag, a uniquely named marker file, or a check that a dangerous builtin is reachable without calling it. Each run must also pass a positive control, an authorized action at the same boundary, or the verdict is inconclusive rather than clean, so a boundary that simply breaks everything cannot pass as fixed. Fourteen fault-injection scenarios all produced the expected verdicts.
The central case is PraisonAI. The fix for CVE-2026-40287 gated local tool loading in two code paths but missed an equivalent loader in the template-override path. At version 4.6.31, replaying the original trigger reported no violation while the sibling path still executed a planted inert module; that residual was later assigned CVE-2026-44334, cataloged as a patch bypass of the earlier CVE, and closed in 4.6.32. Five further before-and-after reconstructions across Langroid, Agno and CrewAI covered expression evaluation, file-path confinement and spoofed-sender tool dispatch. In one, the CVE record describes crewai-tools 1.10.2rc1 and earlier as affected and links a fixing commit but names no fixed version, and third-party databases inferred that every later release was fixed; the author observed the path-traversal write still succeeding in crewai-tools 1.11.0 and confined in 1.11.1. The paper is explicit about scope: one same-version divergence, a direct call into the loader rather than the full HTTP request chain for the central case, author-run reproductions only, and a clean verdict meaning only that no violation was observed under that probe.
Watermarking what agents hand each other
The third paper addresses multi-agent pipelines that skip text entirely. When agents share one model architecture, an agent can pass its key-value cache, the attention state it computed, directly to the next agent. Prior work cited by the authors showed this channel can be tampered with in transit, and that perturbing only the value cache barely changes accuracy, so output checks miss it; transport signatures catch substitution after the handoff but not a compromised agent that signs malicious state itself. KVMark embeds a fragile, keyed, zero-bit watermark into both key and value caches at each handoff: secret-selected dimensions, pseudorandom signs that vary by position and attention head so averaging and simple statistics cannot locate the signal, a strength schedule tuned by layer depth, and keys bound to the input query so a valid cache cannot be replayed for a different question.
On a four-agent pipeline (planner, critic, refiner, judge), the scheme detected all 1,500 handoffs with no false positives, identified all 17 attacked layers with no false alarms on 19 clean ones, and showed no statistically significant accuracy change on four benchmarks. Content-bound keys cut replay success from 100% to 0.2%. Because the cache is append-only, an upstream watermark that goes missing downstream reveals an agent that discarded its input, detected in 500 of 500 cases at three hops. Embedding and detection took about 224 ms and 154 ms per handoff at a 14-token sequence in a largely Python implementation the authors expect can be made much faster, growing linearly with length. The limits matter: all agents must share an architecture, cache compression or token eviction breaks position alignment and triggers false alarms, the strength schedule needs calibration per model family, and a compromised agent that reads its input and watermarks correctly but reasons maliciously is out of scope.
Bind the property, not the appearance
In all three cases the system trusted a signal an attacker or an incomplete fix could reproduce: matching metadata, a passing replay, a well-formed tensor. The proposed checks each tie trust to something harder to imitate, a verified provider, a per-path invariant with a control, a secret-keyed mark tied to the query.
- Pin tool provenance: In multi-server agent deployments, bind each tool to its provider through signatures or pinned identifiers and schema hashes, and reject or flag look-alike tools from other servers instead of leaving the choice to the model.
- Test invariants per path: When validating a framework patch, probe every path that reaches the patched boundary with a benign probe and a positive control, and verify fixed versions against the shipped package rather than the advisory alone.
- Integrity-check latent channels: If agents exchange internal state rather than text, add keyed integrity checks and cascade verification, and keep transport signatures, which cover a different failure.
- Keep the residual risk visible: None of these checks addresses an agent that is authorized and well-formed but wrong; behavioral review stays necessary.
Sources
- When Tool Names Are Not Identities: Measuring Provider Misbinding in MCP-Based AI Agents · arXiv · 2026-11-16
- Beyond the Patch: Reconstructing an Incomplete-Fix Patch Bypass in LLM Agent Frameworks with Control-Gated, Benign Probes · arXiv · 2026-11-16
- KVMARK: Fragile Watermarking for KV-Cache Integrity in Latent Multi-Agent Systems · arXiv · 2026-11-16