Latent-in-the-Middle: On the Security of Cross-Model Latent Communication in Multi-Agent Systems

arXiv:2611.34278 · cs.CR, cs.AI · Submitted 2026-11-25 · Read on arXiv

Listen

Radio episode about this paper

Transcript

Introduction to the show: ident: Security Radio. Generated commentary on the latest security and cryptography papers.

Nadia: We're looking at the paper: "Latent-in-the-Middle: On the Security of Cross-Model Latent Communication in Multi-Agent Systems".

Paper summary: Nadia: So we're looking at this paper called "Latent-in-the-Middle: On the Security of Cross-Model Latent Communication in Multi-Agent Systems". Essentially, they are saying that when large language models start working together—like in these multi-agent systems—they share internal stuff to save time, and that sharing can create new security problems.

Elias: Right. The core idea here is that one way agents communicate is through latent space communication, specifically cross-model Key–Value cache transfer, where a learned mapper translates one model's cache into another model's format.

Priya: So the big concern they are raising is this handoff process itself. Because the target model consumes context it didn't originally encode, it calls the question into question whether its safety alignment actually still holds up when that context comes from somewhere else.

Nadia: That’s right, and they introduce a framework called CHASM to characterize these different attack surfaces in cross-model handoffs. They break down the process into three parts: the source agent, running model S which makes its key value cache; a mapper M that changes that cache; and then the target agent T that makes the final response from that mapped cache.

Elias: And CHASM organizes attacks based on where they get in—through the input, through repeated handoffs, through the source itself, or through the mapper. They list four main jailbreaks: J1 Templates, J2 Model switching, J3 Untrusted source models, and J4 Mapper-aware Gradient Computation.

Priya: It’s interesting that they point out that most of these attacks are zero-shot; they don't require any training or searching from the attacker side to work. That suggests the vulnerability is in the mechanism of transfer itself, not necessarily in complex prompt engineering.

Nadia: Exactly, and when you look at those jailbreaks, J1 through J3 are zero-shot attacks that get stronger as they go. The mapper part, J4, that involves optimizing prompts with gradients end-to-end through the transfer path is different because it's a white-box attack.

Paper summary: Elias: That’s where things get really interesting for me because they show how the mapper itself can become an avenue for exploitation, which is something we haven't fully mapped before. The paper shows that these handoffs expand the attack surface in three model families and four mapper types without needing any optimization on their part.

Priya: So if we think about this from a data perspective, it means the pipeline isn't as robust as you might think; it’s only as strong as the agent that reads the content being handed over to it. That’s a big takeaway for anyone building these multi-agent systems.

Nadia: And they show concrete examples of how much success rates go up, for instance, zero-shot attacks raise the HarmBench attack success rate by up to sixty-nine point percent through the handoff without touching the target model or the deployed mapper.

Elias: That’s a significant jump in success rate when you look at models like Qwen3 and Llama three across those twenty-four different settings they test <ref:2611.34278#pg1>. I wonder what this means for how we secure these collaborations in practice.

Priya: From what I see, the data shows that injection defenses fail across the handoff, which is a critical finding when you're trying to trust the output of an agent you don't fully control. We see the injection success rate rise from zero point four percent natively to about thirty percent through some of those default mappers.

Nadia: And they provide a defense called HANDOFFGUARD, which is a lightweight target-side cache guard designed to correct those transferred caches and restore the target model's refusal. It’s trained so that the target model reproduces its own native reply.

Elias: They describe this guard by adding a low-rank residual to the keys and values of every mapped token across all key value heads and before RoPE, which is specifically designed to stop that de-aligned source it was trained against.

Priya: But they also show the effect of that defense, and it’s not a total fix; for example, one method brings HarmBench success rates within four point five points of native on all three pairs they tested.

Paper summary: Nadia: They found that over-refusing models like Qwen and Llama reject eighty seven point four percent of benign role-play requests on Llama, which is a strong outcome when you look at the metrics. HANDOFFGUARD makes the target model fail closed instead of just restoring its injection defense.

Elias: So it seems like this research highlights that cross-model latent communication introduces a new layer of risk where trust has to be established not just on the initial models, but on every single handoff in between. Where does this leave us regarding the security posture of these agent collaborations?

Priya: It means any time you delegate context or intermediate results across different AI systems, you have to treat that transferred cache as untrusted input and subject it to authentication at its source and red-teaming together with the system serving it. That’s the main practical implication they are driving home.

Nadia: Precisely, because a cache received from another agent is untrusted input, and it must be authenticated at its source, protected in transit, and red-teamed together with the system that serves it. The whole pipeline is only as robust as the agent that reads the content being handed over to it.

Elias: We also see how specific mappers can recover almost all tokens and all ten fields of those records when you use a default one like Qwen ridge fineweb, which shows how sensitive these transfer mechanisms are to certain configurations.

Priya: The paper also flags that the mapping process itself isn't safe; for instance, the guard-aware LoRA leaves the probe high at zero point seven one to zero point eight one and instead forces a compliant opener like sure here is through the cache, so the target model complies even though it registers harm.

Nadia: So what we’re seeing across this paper is that latent handoffs are an attack surface of their own, and mitigating them requires more than just tuning the final model; you have to secure the entire communication pathway between all those agents.

Conclusion: Nadia: So we're wrapping up this look at latent communication in multi-agent systems by talking about this paper called "Latent-in-the-Middle: On the Security of Cross-Model Latent Communication in Multi-Agent Systems."

Elias: Yeah, it really gets to the heart of how agents hand off information using those internal states, like KV caches between different models.

Nadia: Exactly. The main point is that this handoff mechanism itself creates a new security risk because the target model doesn't know where the context came from.

Elias: And they use a framework called CHASM to show all these attack surfaces, breaking down how an attacker can exploit the source model, the mapper, or even just by doing repeated handoffs.

Nadia: It really shows that you can get strong jailbreaks without needing any training or searching from the attacker side in most of these cases.

Elias: That’s a key finding because it means injection defenses often fail across that entire transfer path, which is worrying for how we build trust between different AI systems.

Nadia: The authors argue that this cross-model communication expands the attack surface significantly without requiring any special optimization from the mapper side.

Elias: It points to the fact that a cache received from another agent is treated as untrusted input and needs serious authentication at its source, which is a big shift in how we think about these collaborations.

Nadia: So, what does this mean for the future of building these complex multi-agent setups?

Elias: It means we have to stop treating those shared internal states as safe by default; they need explicit protection throughout the entire handoff process.

Manit Baser, Vyoman Jain, Rachel Yeo Hui Min, Xianglin Yang, Meenatchi Sundaram Muthu Selva Annamalai, Dinil Mon Divakaran

National University of Singapore · Singapore University of Technology and Design · University of Toronto · *A*STAR Institute of Advanced Intelligence and Computing (A*STAR IAIC)

cs.CR, cs.AI

Submitted: 2026-11-25

Updated: 2026-11-25

Code: https://github.com/vllm-project/production-stack

License: http://creativecommons.org/licenses/by/4.0/

Importance score: 90/100

The gist: Latent handoffs substantially undermine safety alignment and prompt-injection defenses.<ref:2611.34278#pg5> Introduction to Latent Communication Large language models increasingly operate as…

Key concepts

Latent Communication
Agents communicate by exchanging internal representations, such as the Key-Value (KV) cache, instead of using natural language. This allows models to share intermediate processing states efficiently across different systems or agents.
Cross-Model Handoff
This occurs when a source model's KV cache is translated by a mapper into a format compatible with a target model. The target model then uses this transferred context, meaning its safety alignment is tested on data it did not generate internally.
CHASM Framework
A framework used to systematically characterize attacks on latent handoffs. It models the three components of a handoff—source agent, mapper, and target agent—and organizes attacks based on where they exploit the system (e.g., input, repeated handoffs, or the mapper).
HANDOFFGUARD
A proposed defense mechanism that acts as a lightweight guard on the target model's cache. It is trained to reproduce its own native reply and adds a low-rank residual to mapped tokens to stop de-aligned source models from injecting harmful content.

Terminology

Summary

Latent handoffs substantially undermine safety alignment and prompt-injection defenses. p. 0

Where the paper says it

In this work, we investigate the security implications of latent handoffs by introducing CHASM, a framework characterizing cross-model handoff attacks across three new attack surfaces: the source model, mapper, and handoff mechanism itself. Our experiments reveal that latent handoffs substantially undermine safety alignment and prompt-injection defenses.

<ref:2611.34278#pg5>

Introduction to Latent Communication

Large language models increasingly operate as heterogeneous agents that delegate tasks, exchange intermediate results, and coordinate to solve problems beyond the reach of a single model.<ref:2611.34278#pg1, "As large language models increasingly collaborate in heterogeneous multi-agent systems, latent communication has emerged as an efficient alternative to exchanging naturallanguage messages. p. 0

Where the paper says it

Latent-in-the-Middle: On the Security of Cross-Model Latent Communication in Multi-Agent Systems Manit Baser1* Vyoman Jain2* Rachel Yeo Hui Min1 Xianglin Yang1 Meenatchi Sundaram Muthu Selva Annamalai3 Dinil Mon Divakaran4 1National University of Singapore 2Singapore University of Technology and Design 3University of Toronto 4A*STAR Institute of Advanced Intelligence and Computing (A*STAR IAIC) Abstract—As large language models increasingly collaborate in heterogeneous multi-agent systems, latent communication has emerged as an efficient alternative to exchanging naturallanguage messages. By sharing internal representations, agents can avoid repeatedly processing the same context, reducing communication overhead and prefill computation.

" >. Context routinely crosses between models and trust boundaries across these deployments. p. 0
Where the paper says it

At the same time, agents are moving from private chats into shared workspaces such as Slack, Discord, and group chats, where persistent agents observe messages from multiple users as context [7]. Across these deployments, context routinely crosses between models and trust boundaries.

<ref:2611.34278#pg1, "Across these deployments, context routinely crosses between models and trust boundaries. p. 0
Where the paper says it

At the same time, agents are moving from private chats into shared workspaces such as Slack, Discord, and group chats, where persistent agents observe messages from multiple users as context [7]. Across these deployments, context routinely crosses between models and trust boundaries.

" >. This shift is underway as a 2026 KPMG survey reports that 25% of large U. p. 0
Where the paper says it

Introduction Large language models (LLMs) increasingly operate as heterogeneous agents that delegate tasks, exchange intermediate results, and coordinate to solve problems beyond the reach of a single model. This shift is underway: a 2026 KPMG survey reports that 25% of large U.

S. enterprises are developing multi-agent systems. p. 0
Where the paper says it

This shift is underway: a 2026 KPMG survey reports that 25% of large U. enterprises are developing multi-agent systems [1], while Gartner expects * Equal contribution that more than 60% of multi-agent systems will combine agents from different vendors by 2028 [2].

p. 0
Where the paper says it

This shift is underway: a 2026 KPMG survey reports that 25% of large U. enterprises are developing multi-agent systems [1], while Gartner expects * Equal contribution that more than 60% of multi-agent systems will combine agents from different vendors by 2028 [2].

<ref:2611.34278#pg1, "a 2026 KPMG survey reports that 25% of large U. p. 0
Where the paper says it

Introduction Large language models (LLMs) increasingly operate as heterogeneous agents that delegate tasks, exchange intermediate results, and coordinate to solve problems beyond the reach of a single model. This shift is underway: a 2026 KPMG survey reports that 25% of large U.

S. enterprises are developing multi-agent systems." >. Agents commonly communicate through natural-language messages or shared memory, requiring target agents to repeatedly process context that may already have been processed elsewhere. p. 0
Where the paper says it

In SwarmChat [8], eight agents exchanged 2,482 messages during a six-hour collaborative coding run. Agents commonly communicate through natural-language messages or shared memory, requiring target agents to repeatedly process context that may already have been processed elsewhere.

<ref:2611.34278#pg1, "Agents commonly communicate through natural-language messages or shared memory, requiring target agents to repeatedly process context that may already have been processed elsewhere. p. 0
Where the paper says it

In SwarmChat [8], eight agents exchanged 2,482 messages during a six-hour collaborative coding run. Agents commonly communicate through natural-language messages or shared memory, requiring target agents to repeatedly process context that may already have been processed elsewhere.

" >. This prefill computation accumulates over a long interaction. p. 0
Where the paper says it

Agents commonly communicate through natural-language messages or shared memory, requiring target agents to repeatedly process context that may already have been processed elsewhere. This prefill computation accumulates over a long interaction.

<ref:2611.34278#pg1, "This prefill computation accumulates over a long interaction. p. 0
Where the paper says it

Agents commonly communicate through natural-language messages or shared memory, requiring target agents to repeatedly process context that may already have been processed elsewhere. This prefill computation accumulates over a long interaction.

" >. Latent-space communication involves agents exchanging internal states rather than natural-language messages, such as the Key–Value (KV) cache. p. 0
Where the paper says it

These efficiency limitations have motivated latent-space communication, in which agents exchange internal states rather than natural-language messages. One such reusable latent state is the Key–Value (KV) cache.

<ref:2611.34278#pg1, "Beyond cost, natural-language communication can introduce ambiguity and information loss, contributing to coordination failures. p. 0
Where the paper says it

Anthropic reports that multi-agent implementations consume 3–10× more tokens than single-agent approaches on comparable tasks [9]. Beyond cost, natural-language communication can introduce ambiguity and information loss, contributing to coordination failures [10], [11].

" >. Cross-model KV-cache transfer uses a learned mapper to translate a source model’s KV cache into one a target model can use. p. 0
Where the paper says it

By sharing internal representations, agents can avoid repeatedly processing the same context, reducing communication overhead and prefill computation. One such mechanism is cross-model Key–Value (KV) cache transfer, which uses a learned mapper to translate a source model’s KV cache into one a target model can use.

<ref:2611.34278#pg1, "One such mechanism is cross-model Key–Value (KV) cache transfer, which uses a learned mapper to translate a source model’s KV cache into one a target model can use. p. 0
Where the paper says it

By sharing internal representations, agents can avoid repeatedly processing the same context, reducing communication overhead and prefill computation. One such mechanism is cross-model Key–Value (KV) cache transfer, which uses a learned mapper to translate a source model’s KV cache into one a target model can use.

" >. This handoff means the target model consumes context it did not encode itself, thus calling into question whether its safety alignment still holds. p. 0
Where the paper says it

One such mechanism is cross-model Key–Value (KV) cache transfer, which uses a learned mapper to translate a source model’s KV cache into one a target model can use. However, this handoff means the target model consumes context it did not encode itself, thus calling into question whether its safety alignment still holds.

<ref:2611.34278#pg1, "However, this handoff means the target model consumes context it did not encode itself, thus calling into question whether its safety alignment still holds. p. 0
Where the paper says it

One such mechanism is cross-model Key–Value (KV) cache transfer, which uses a learned mapper to translate a source model’s KV cache into one a target model can use. However, this handoff means the target model consumes context it did not encode itself, thus calling into question whether its safety alignment still holds.

" > CHASM is a framework characterizing cross-model handoff attacks across three new attack surfaces: the source model, mapper, and handoff mechanism. p. 0
Where the paper says it

However, this handoff means the target model consumes context it did not encode itself, thus calling into question whether its safety alignment still holds. In this work, we investigate the security implications of latent handoffs by introducing CHASM, a framework characterizing cross-model handoff attacks across three new attack surfaces: the source model, mapper, and handoff mechanism itself.

<ref:2611.34278#pg3>

The CHASM Framework for Attack Characterization

CHASM models each component of a latent handoff that lies between the user input and the system output.<ref:2611.34278#pg3> A handoff involves three components: (1) a source agent, running model S, which processes the context into its KV cache; (2) a mapper M, which transforms that cache into a representation compatible with the target model; and (3) a target agent, running model T, which generates the response from the mapped cache. p. 3

Where the paper says it

System Model We model communication in a multi-agent system as a set of handoffs, in which one agent passes its context to another through cross-model KV-cache transfer. A handoff involves three components: (1) a source agent, running model S, which processes the context into its KV cache; (2) a mapper M, which transforms that cache into a representation compatible with the target model; and (3) a target agent, running model T , which generates the response from the mapped cache.

<ref:2611.34278#pg3>. Handoffs can be chained, so the same context can be mapped more than once. p. 3
Where the paper says it

A handoff involves three components: (1) a source agent, running model S, which processes the context into its KV cache; (2) a mapper M, which transforms that cache into a representation compatible with the target model; and (3) a target agent, running model T , which generates the response from the mapped cache. Handoffs can be chained, so the same context can be mapped more than once.

<ref:2611.34278#pg3>. The handoff interposes a source that encodes the input and a mapper that converts its cache, and a session may chain multiple handoffs. p. 1
Where the paper says it

To study these risks systematically, we introduce CHASM (Cross-Model Handoff Attacks in Latent-Space Agent Communication), which models the components separating the input from the aligned answering agent. A handoff interposes a source that encodes the input and a mapper that converts its cache, and a session may chain multiple handoffs.

<ref:2611.34278#pg3> CHASM organizes attacks by the entry point they exploit (Fig. p. 2
Where the paper says it

an attack can succeed even if it fails against the standalone target model, and CHASM organizes attacks by the entry point they exploit (Fig. 1): through the input, a published jailbreak template (J1) or an instruction in fetched content (IPI) is encoded by a model other than the answering model; through repeated handoffs, a cache is remapped across successive model switches (J2); through the source, an attacker-controlled source model computes the cache (J3); and through the mapper, prompts are optimized with gradients end-to-end through the transfer path (J4).

1): through the input, a published jailbreak template (J1) or an instruction in fetched content (IPI) is encoded by a model other than the answering model; through repeated handoffs, a cache is remapped across successive model switches (J2); through the source, an attacker-controlled source model computes the cache (J3); and through the mapper, prompts are optimized with gradients end-to-end through the transfer path (J4). p. 2
Where the paper says it

an attack can succeed even if it fails against the standalone target model, and CHASM organizes attacks by the entry point they exploit (Fig. 1): through the input, a published jailbreak template (J1) or an instruction in fetched content (IPI) is encoded by a model other than the answering model; through repeated handoffs, a cache is remapped across successive model switches (J2); through the source, an attacker-controlled source model computes the cache (J3); and through the mapper, prompts are optimized with gradients end-to-end through the transfer path (J4).

p. 2
Where the paper says it

an attack can succeed even if it fails against the standalone target model, and CHASM organizes attacks by the entry point they exploit (Fig. 1): through the input, a published jailbreak template (J1) or an instruction in fetched content (IPI) is encoded by a model other than the answering model; through repeated handoffs, a cache is remapped across successive model switches (J2); through the source, an attacker-controlled source model computes the cache (J3); and through the mapper, prompts are optimized with gradients end-to-end through the transfer path (J4).

<ref:2611.34278#pg3, "CHASM organizes attacks by the entry point they exploit (Fig. p. 2
Where the paper says it

an attack can succeed even if it fails against the standalone target model, and CHASM organizes attacks by the entry point they exploit (Fig. 1): through the input, a published jailbreak template (J1) or an instruction in fetched content (IPI) is encoded by a model other than the answering model; through repeated handoffs, a cache is remapped across successive model switches (J2); through the source, an attacker-controlled source model computes the cache (J3); and through the mapper, prompts are optimized with gradients end-to-end through the transfer path (J4).

1): through the input, a published jailbreak template (J1) or an instruction in fetched content (IPI) is encoded by a model other than the answering model; through repeated handoffs, a cache is remapped across successive model switches (J2); through the source, an attacker-controlled source model computes the cache (J3); and through the mapper, prompts are optimized with gradients end-to-end through the transfer path (J4)." >

Attack Surfaces Characterized by CHASM

Table 1 summarizes the attacks on latent handoffs by entry point.<ref:2611.34278#pg4, "TABLE 1. p. 3

Where the paper says it

Below, we first describe the multi-agent system and its latent handoffs, then how a handoff expands the attack surface and which attacks we study on it (Section 3. Because these attacks pursue different goals by exploiting different components, CHASM yields not a single threat model but a family of them; Table 1 summarizes the attacks.

p. 3
Where the paper says it

Below, we first describe the multi-agent system and its latent handoffs, then how a handoff expands the attack surface and which attacks we study on it (Section 3. Because these attacks pursue different goals by exploiting different components, CHASM yields not a single threat model but a family of them; Table 1 summarizes the attacks.

CHASM COMPRISES CLASSICAL ATTACKS RUN THROUGH THE PARTS OF A LATENT HANDOFF: FOUR JAILBREAKS (J1–J4) AND INDIRECT PROMPT INJECTION (IPI). p. 3
Where the paper says it

CHASM COMPRISES CLASSICAL ATTACKS RUN THROUGH THE PARTS OF A LATENT HANDOFF: FOUR JAILBREAKS (J1–J4) AND INDIRECT PROMPT INJECTION (IPI). Attack surface: THE PART OF THE HANDOFF THE ATTACK EXPLOITS (SECTION 3.

p. 3
Where the paper says it

CHASM COMPRISES CLASSICAL ATTACKS RUN THROUGH THE PARTS OF A LATENT HANDOFF: FOUR JAILBREAKS (J1–J4) AND INDIRECT PROMPT INJECTION (IPI). Attack surface: THE PART OF THE HANDOFF THE ATTACK EXPLOITS (SECTION 3.

" >. The four jailbreaks are J1 Templates, J2 Model switching, J3 Untrusted source, and J4 Mapper-aware GCG. p. 3
Where the paper says it

BEYOND THE TARGET MODEL’S NATIVE SAFETY, WHICH THESE ATTACKS AND A BACKDOORED MAPPER (APPENDIX B) TARGET, WE ALSO EXAMINE THE CONFIDENTIALITY OF THE PROMPT (APPENDIX A) AND THE AVAILABILITY OF THE TARGET MODEL (APPENDIX C). # Attack Attack surface What the attack does Jailbreaks – No attack – Sends plain harmful requests through an aligned pipeline J1 Templates Input Wraps requests in published jailbreak templates J2 Model switching Repeated handoffs Maps the cache back and forth between models before the answer J3 Untrusted source Source Controls the source model J4 Mapper-aware GCG Mapper Optimizes suffixes through source model, mapper, and target model Indirect prompt injection IPI Planted content Input Plants an instruction in content the source fetches, e.

<ref:2611.34278#pg4, "TABLE 1. CHASM COMPRISES CLASSICAL ATTACKS RUN THROUGH THE PARTS OF A LATENT HANDOFF: FOUR JAILBREAKS (J1–J4) AND INDIRECT PROMPT INJECTION (IPI)." >. All attacks except J4 are zero-shot, requiring no training, gradients, or search. p. 2
Where the paper says it

1): through the input, a published jailbreak template (J1) or an instruction in fetched content (IPI) is encoded by a model other than the answering model; through repeated handoffs, a cache is remapped across successive model switches (J2); through the source, an attacker-controlled source model computes the cache (J3); and through the mapper, prompts are optimized with gradients end-to-end through the transfer path (J4). All attacks except J4 are zero-shot, requiring no training, gradients, or search.

<ref:2611.34278#pg3, "All attacks except J4 are zero-shot, requiring no training, gradients, or search. p. 2
Where the paper says it

1): through the input, a published jailbreak template (J1) or an instruction in fetched content (IPI) is encoded by a model other than the answering model; through repeated handoffs, a cache is remapped across successive model switches (J2); through the source, an attacker-controlled source model computes the cache (J3); and through the mapper, prompts are optimized with gradients end-to-end through the transfer path (J4). All attacks except J4 are zero-shot, requiring no training, gradients, or search.

" >. The mapper hands the attacker a stronger white-box attack (J4). p. 2
Where the paper says it

2 percentage points (pp) without touching the target model or the deployed mapper, and an untrusted source succeeds in all 24 settings (Section 5). → The mapper hands the attacker a stronger white-box attack (J4).

p. 2
Where the paper says it

2 percentage points (pp) without touching the target model or the deployed mapper, and an untrusted source succeeds in all 24 settings (Section 5). → The mapper hands the attacker a stronger white-box attack (J4).

<ref:2611.34278#pg5>. Injection defenses fail across the handoff (IPI). p. 2
Where the paper says it

0% (Section 5. p. 2

Where the paper says it

→ A framework for handoff attacks. CHASM organizes attacks on latent handoffs by the entry point they exploit (Section 3).

→ Injection defenses fail across the handoff (IPI).

<ref:2611.34278#pg5>. The pipeline is only as robust as the agent that reads the content. p. 2
Where the paper says it

2% through SwaT (Chat), when a 3B subagent encodes the content. The pipeline is only as robust as the agent that reads the content (Section 6).

p. 2
Where the paper says it

2% through SwaT (Chat), when a 3B subagent encodes the content. The pipeline is only as robust as the agent that reads the content (Section 6).

<ref:2611.34278#pg5>

Jailbreak Vulnerabilities

Zero-shot jailbreaks get stronger (J1–J3).<ref:2611.34278#pg5>. Through the handoff, zero-shot attacks raise the HarmBench attack success rate (ASR) by up to +69. p. 2

Where the paper says it

→ Zero-shot jailbreaks get stronger (J1–J3). Through the handoff, zero-shot attacks raise the HarmBench attack success rate (ASR) by up to +69.

2 percentage points (pp) without touching the target model or the deployed mapper. p. 2
Where the paper says it

Through the handoff, zero-shot attacks raise the HarmBench attack success rate (ASR) by up to +69. 2 percentage points (pp) without touching the target model or the deployed mapper, and an untrusted source succeeds in all 24 settings (Section 5).

<ref:2611.34278#pg5>. An untrusted source succeeds in all 24 settings. p. 2
Where the paper says it

Through the handoff, zero-shot attacks raise the HarmBench attack success rate (ASR) by up to +69. 2 percentage points (pp) without touching the target model or the deployed mapper, and an untrusted source succeeds in all 24 settings (Section 5).

<ref:2611.34278#pg5>. The mapper hands the attacker a stronger white-box attack (J4).<ref:2611.34278#pg5>. Suffixes optimized through the mapper cross 90% ASR on every target model through the SwaT (Chat) renderers, whereas ordinary GCG on a standalone target model reaches at most 65. p. 2
Where the paper says it

→ The mapper hands the attacker a stronger white-box attack (J4). Suffixes optimized through the mapper cross 90% ASR on every target model through the SwaT (Chat) renderers, whereas ordinary GCG on a standalone target model reaches at most 65.

0% (Section 5.5).<ref:2611.34278#pg6>

Indirect Prompt Injection Failures

Injection defenses fail across the handoff (IPI).<ref:2611.34278#pg6>. In the first evaluation of indirect prompt injection across a latent handoff, the injection ASR of Meta-SecAlign-8B on AlpacaFarm rises from 0. p. 2

Where the paper says it

→ Injection defenses fail across the handoff (IPI). In the first evaluation of indirect prompt injection across a latent handoff, the injection ASR of Meta-SecAlign-8B on AlpacaFarm rises from 0.

4% natively to about 30% through the four default FineWeb-calibrated mappers, and to as much as 44. p. 2
Where the paper says it

In the first evaluation of indirect prompt injection across a latent handoff, the injection ASR of Meta-SecAlign-8B on AlpacaFarm rises from 0. 4% natively to about 30% through the four default FineWeb-calibrated mappers, and to as much as 44.

2% through SwaT (Chat), when a 3B subagent encodes the content. p. 2
Where the paper says it

4% natively to about 30% through the four default FineWeb-calibrated mappers, and to as much as 44. 2% through SwaT (Chat), when a 3B subagent encodes the content.

<ref:2611.34278#pg6>. The pipeline is only as robust as the agent that reads the content.<ref:2611.34278#pg6>

Proposed Defense Mechanisms

We propose HANDOFFGUARD, a lightweight target-side cache guard that corrects transferred caches to restore the target model’s refusal, considerably mitigating these attacks.<ref:2611.34278#pg5> HANDOFFGUARD is trained so that the target model reproduces its own native reply. p. 9

Where the paper says it

6% through Llama (SwaT, FineWeb)). Both defenses still rely on benign cache-matching fidelity rather than adversarial training: D1 aligns what target cache the mapper reproduces, and D2 pulls the mapped cache toward the target model’s own, so neither is trained against an attacker.

<ref:2611.34278#pg11, "HANDOFFGUARD is trained so that the target model reproduces its own native reply. p. 9
Where the paper says it

6% through Llama (SwaT, FineWeb)). Both defenses still rely on benign cache-matching fidelity rather than adversarial training: D1 aligns what target cache the mapper reproduces, and D2 pulls the mapped cache toward the target model’s own, so neither is trained against an attacker.

p. 9
Where the paper says it

6% through Llama (SwaT, FineWeb)). Both defenses still rely on benign cache-matching fidelity rather than adversarial training: D1 aligns what target cache the mapper reproduces, and D2 pulls the mapped cache toward the target model’s own, so neither is trained against an attacker.

" >. The guard adds a low-rank residual to the keys and values of every mapped token, across all KV heads and before RoPE. p. 9
Where the paper says it

HANDOFFGUARD moves this idea to the receiver and trains against a behavioural adversary instead. For each target layer, it adds a low-rank residual to the keys and values of every mapped token, across all KV heads and before RoPE, [k; v] ← [k; v] + r U GELUD [k/∥k∥; v/∥v∥] , (3

<ref:2611.34278#pg11>. The guard minimizes Ex, S′ X t≤32 KL PT (· x, y⋆ <ref:2611. p. 0
Where the paper says it

5% for ordinary GCG on the same target. To address these vulnerabilities, we propose a lightweight target-side cache guard that corrects transferred caches to restore the target model’s refusal, considerably mitigating these attacks.

34278#pg11, "HANDOFFGUARD is trained so that the target model reproduces its own native reply." > HANDOFFGUARD stops the de-aligned source it was trained against (Table 6). p. 9
Where the paper says it

HANDOFFGUARD (D3) Design. LCGuard [61] protects the privacy of shared caches with a learned transform at the sender, trained against input reconstruction.

<ref:2611.34278#pg5>

Effect of Defenses on Attacks

P1 brings HarmBench ASR within 4.5 points of native on all three pairs. p. 8

Where the paper says it

evaluate SwaT on three cross-family pairs, namely Llama3. 2-3B to Qwen3-4B, Qwen3-8B to Llama-3.

<ref:2611.34278#pg12> P2 over-refuses on Qwen and Llama, rejecting 87. p. 9
Where the paper says it

Transfer also changes the undefended model’s ASR, raising it on AlpacaFarm through six of the eight mappers, by up to +19. The low ASR through Llama (MLP, Chat) does not reflect resistance, as the target model refuses the whole request on 46–69% of the completion-attack prompts.

4% of benign role-play requests on Llama. p. 6
Where the paper says it

We find that using jailbreak templates results in a substantially higher increase in ASR than when simply submitting harmful requests to the system. Specifically, through Qwen (ridge, FineWeb), role-play more than doubles HarmBench ASR from 26.

p. 6
Where the paper says it

We find that using jailbreak templates results in a substantially higher increase in ASR than when simply submitting harmful requests to the system. Specifically, through Qwen (ridge, FineWeb), role-play more than doubles HarmBench ASR from 26.

<ref:2611.34278#pg12, "p2 over-refuses on Qwen and Llama, rejecting 87. p. 9
Where the paper says it

Transfer also changes the undefended model’s ASR, raising it on AlpacaFarm through six of the eight mappers, by up to +19. The low ASR through Llama (MLP, Chat) does not reflect resistance, as the target model refuses the whole request on 46–69% of the completion-attack prompts.

4% of benign role-play requests on Llama." > HANDOFFGUARD thus makes the target model fail closed rather than restoring its injection defense. p. 4
Where the paper says it

For prompt injection, we fix the target model to be the hardened Meta-SecAlign-8B model [46]. We evaluate four mapper types, namely NVIDIA’s closed-form ridge mapper [17], its gradienttrained MLP variant [17], CacheBridge [15], and the SwaT renderer [16].

<ref:2611.34278#pg10>

Conclusion on Latent Handoff Security

Cross-model latent communication lets agents hand context to each other as a mapped cache, but it changes who computes the representation that a model’s safety alignment and its injection defenses act on.<ref:2611.34278#pg10>. With CHASM, we showed that latent handoffs expand the attack surface in three model families and four mapper types, mostly without any optimization. p. 1

Where the paper says it

As a result, latent handoffs expand the attack surface for threats such as jailbreaks, where a user seeks harmful answers, and indirect prompt injection (IPI), where a third party plants instructions in external content [25]. To study these risks systematically, we introduce CHASM (Cross-Model Handoff Attacks in Latent-Space Agent Communication), which models the components separating the input from the aligned answering agent.

<ref:2611.34278#pg10>. Zero-shot jailbreaks get substantially stronger through the handoff, and an untrusted source succeeds in every setting without touching the target model or the deployed mapper. p. 2
Where the paper says it

Through the handoff, zero-shot attacks raise the HarmBench attack success rate (ASR) by up to +69. 2 percentage points (pp) without touching the target model or the deployed mapper, and an untrusted source succeeds in all 24 settings (Section 5).

<ref:2611.34278#pg5> A cache received from another agent is untrusted input, and it must be authenticated at its source, protected in transit, and red-teamed together with the system that serves it. p. 3
Where the paper says it

System Model We model communication in a multi-agent system as a set of handoffs, in which one agent passes its context to another through cross-model KV-cache transfer. A handoff involves three components: (1) a source agent, running model S, which processes the context into its KV cache; (2) a mapper M, which transforms that cache into a representation compatible with the target model; and (3) a target agent, running model T , which generates the response from the mapped cache.

p. 3
Where the paper says it

System Model We model communication in a multi-agent system as a set of handoffs, in which one agent passes its context to another through cross-model KV-cache transfer. A handoff involves three components: (1) a source agent, running model S, which processes the context into its KV cache; (2) a mapper M, which transforms that cache into a representation compatible with the target model; and (3) a target agent, running model T , which generates the response from the mapped cache.

<ref:2611.34278#pg14, "Latent handoffs are therefore an attack surface of their own. p. 1
Where the paper says it

In the coding-assistant example above, a jailbreak in the user’s request is first encoded by the cheaper session model, and an instruction planted in the linked page is encoded only by the subagent—so the hardened main agent never sees either input in the form it was trained to handle. As a result, latent handoffs expand the attack surface for threats such as jailbreaks, where a user seeks harmful answers, and indirect prompt injection (IPI), where a third party plants instructions in external content [25].

p. 1
Where the paper says it

In the coding-assistant example above, a jailbreak in the user’s request is first encoded by the cheaper session model, and an instruction planted in the linked page is encoded only by the subagent—so the hardened main agent never sees either input in the form it was trained to handle. As a result, latent handoffs expand the attack surface for threats such as jailbreaks, where a user seeks harmful answers, and indirect prompt injection (IPI), where a third party plants instructions in external content [25].

A cache received from another agent is untrusted input, and it must be authenticated at its source, protected in transit, and red-teamed together with the system that serves it." >

Appendix Details on Leakage and Backdoors

Through the default Qwen (ridge, FineWeb) mapper, the attack recovers 94.6% of tokens and all ten fields of all 500 records. p. 5

Where the paper says it

5) logit-distillation run through the target model for every pair, direction, and training corpus, amounting to multiple H200 GPU-days across our setting. We train each type with its official recipe on 500 FineWeb-Edu sequences of 1,024 tokens [47] and on chat-templated UltraChat conversations [48] (Appendix D).

<ref:2611.34278#pg18>. Through the default Qwen (ridge, FineWeb) mapper, the trigger raises HarmBench ASR from 20. p. 6
Where the paper says it

Jailbreaks Through Latent Handoffs We evaluate the robustness of the latent handoff against four jailbreak attacks, with results summarized in Table 3. As an example to read the table, consider the Qwen (ridge, FineWeb) row: transfer raises the HarmBench ASR of Qwen3-32B by 1.

8% through the clean mapper with the trigger to 38. p. 1
Where the paper says it

⃝2 Under model cascading, source agent S encodes the prompt, and mapper M converts its KV cache for target agent T . Subsequent model switches or relays trigger further mappings.

3–49.2% as the poison weight grows from 1 to 16. p. 2
Where the paper says it

During decode, each newly generated token attends to cached states and appends its own keys and values. Since prefill cost grows with prompt length, serving systems reuse, offload, and move caches across requests and hosts.

<ref:2611.34278#pg18>. CacheBridge is most resistant, as each of its head-local regressions has too few features to absorb the poison without moving the clean fit. p. 1
Where the paper says it

Dashed boxes enclose the computation between input and answer. head-local variants [15], and distillation-trained linear translators [18], and we are starting to see mapped prefill offered as a hosted service [19].

<ref:2611.34278#pg18, "CacheBridge is most resistant, as each of its head-local regressions has too few features to absorb the poison without moving the clean fit. p. 1
Where the paper says it

Dashed boxes enclose the computation between input and answer. head-local variants [15], and distillation-trained linear translators [18], and we are starting to see mapped prefill offered as a hosted service [19].

" >. The guard-aware LoRA leaves the probe high (0. p. 0
Where the paper says it

5% for ordinary GCG on the same target. To address these vulnerabilities, we propose a lightweight target-side cache guard that corrects transferred caches to restore the target model’s refusal, considerably mitigating these attacks.

p. 0
Where the paper says it

5% for ordinary GCG on the same target. To address these vulnerabilities, we propose a lightweight target-side cache guard that corrects transferred caches to restore the target model’s refusal, considerably mitigating these attacks.

71–0.81) and instead forces a compliant opener (“Sure, here is”) through the cache, so the target model complies even though it registers the harm. p. 7
Where the paper says it

Let x be a harmful behaviour, s a suffix of 20 tokens appended to the user turn, and y ⋆ HarmBench’s affirmative target string (“Sure, here is. The transfer loss is the cross-entropy of y ⋆ when the target model decodes from the mapped cache, and the native loss is ordinary GCG’s objective on the standalone target model, Ltr(s) = − log PT y ⋆ | M(S(chat(x∥s))<n), xn , (1) Lnat(s) = − log PT y ⋆ | chat(x∥s) .

p. 7
Where the paper says it

Let x be a harmful behaviour, s a suffix of 20 tokens appended to the user turn, and y ⋆ HarmBench’s affirmative target string (“Sure, here is. The transfer loss is the cross-entropy of y ⋆ when the target model decodes from the mapped cache, and the native loss is ordinary GCG’s objective on the standalone target model, Ltr(s) = − log PT y ⋆ | M(S(chat(x∥s))<n), xn , (1) Lnat(s) = − log PT y ⋆ | chat(x∥s) .

p. 7
Where the paper says it

Let x be a harmful behaviour, s a suffix of 20 tokens appended to the user turn, and y ⋆ HarmBench’s affirmative target string (“Sure, here is. The transfer loss is the cross-entropy of y ⋆ when the target model decodes from the mapped cache, and the native loss is ordinary GCG’s objective on the standalone target model, Ltr(s) = − log PT y ⋆ | M(S(chat(x∥s))<n), xn , (1) Lnat(s) = − log PT y ⋆ | chat(x∥s) .

<ref:2611.34278#pg12, "The guard-aware LoRA leaves the probe high (0.71–0.81) and instead forces a compliant opener (“Sure, here is”) through the cache, so the target model complies even though it registers the harm." >

Related Work Context

All these assume homogeneous agents sharing one base model and omit jailbreaks, prompt injection, and crossmodel mappers.<ref:2611.34278#pg13> CHASM shows that accuracy-fitted mappers shift refusals even benignly and turn the handoff into an attack surface (templates, model switching, compromised sources, suffix optimization, and calibration poisoning) without direct tensor writes.<ref:2611.34278#pg8>. Cross-model mappers build on representation alignment, including layer stitching [93] and relative representations [94]. p. 1

Where the paper says it

Although cross-model KV-cache transfer aims to preserve accuracy while reducing latency, delegating representation introduces security risks by making an agent’s behaviour depend on computation performed elsewhere. A model’s refusal decision is read from its internal representation of the prompt [22], and the first few answer tokens— where safety alignment does most of its work [23]—are generated from that representation.

<ref:2611.34278#pg8, Cross-model mappers build on representation alignment, including layer stitching [93] and relative representations [94]. >

Limitations and Future Directions

Switching with generation maps the cache back and forth with no tokens generated in between, which isolates the effect of repeated mapping.<ref:2611.34278#pg9>. Measuring this requires multi-turn sessions with realistic switching policies, and their effect on capability and latency must be studied together with safety.<ref:2611.34278#pg9>. Mappers for defended models may need to be refit on the target model, but such a refit needs calibration data that covers the input role. p. 9

Where the paper says it

An operator can instead align the mapper toward refusal by adding refusal conversations to its calibration corpus. We refit Qwen (ridge, FineWeb) on 300 or 500 FineWeb-Edu sequences together with 500 refusal conversations, built from 300 HarmBench and 200 SORRYBench [60] requests, each paired with a refusal.

<ref:2611.34278#pg9> HANDOFFGUARD currently stops injections only by refusing (Section 7. p. 2
Where the paper says it

We propose HANDOFFGUARD, a lowrank correction of the mapped cache that brings attackercontrolled sources within 4. 5 points of native HarmBench ASR across all families at negligible utility loss, though a costly adaptive attack that fine-tunes the source still succeeds (Section 7).

2), and a guard trained against injection, as well as VReparo applied to the defended model, remain to be evaluated. p. 9
Where the paper says it

Because VReparo is a fixed differentiable map, suffixes optimized through it reach 36% on Qwen and 31–54% on Llama, whereas the same suffixes succeed on only 5% and 7–18% when the target model reads the prompt itself (averaged over greedy and three sampled decodings). Against injection on the undefended Llama-3.

<ref:2611.34278#pg9>. The guard-aware LoRA leaves the probe high (0.71–0.81) and instead forces a compliant opener (“Sure, here is”) through the cache, so the target model complies even though it registers the harm.<ref:2611.34278#pg5>

Final Takeaway on Latent Handoffs

Latent handoffs are therefore an attack surface of their own.<ref:2611.34278#pg14, "Latent handoffs are therefore an attack surface of their own." > A cache received from another agent is untrusted input, and it must be authenticated at its source, protected in transit, and red-teamed together with the system that serves it. p. 3

Where the paper says it

System Model We model communication in a multi-agent system as a set of handoffs, in which one agent passes its context to another through cross-model KV-cache transfer. A handoff involves three components: (1) a source agent, running model S, which processes the context into its KV cache; (2) a mapper M, which transforms that cache into a representation compatible with the target model; and (3) a target agent, running model T , which generates the response from the mapped cache.

<ref:2611.34278#pg14, "A cache received from another agent is untrusted input, and it must be authenticated at its source, protected in transit, and red-teamed together with the system that serves it.

Green — the paper says it, and the page is printed. Red — no passage carries it, so treat that sentence as unverified. The same check runs on your own text: check a summary against its source, $5.

Improvements for AI systems

  1. Create a lightweight target-side cache guard that corrects transferred caches to restore the target model’s refusal, which considerably mitigates latent handoff attacks like J3 (Untrusted source).

  2. Implement mapper alignment by training mappers on refusal conversations and adding them to calibration corpora, which lowers HarmBench ASR on harmful requests.

  3. Apply VReparo [59] after every mapper to pull the mapped values toward the target model’s own, which removes much of what transfer adds without an attacker.

  4. Design HANDOFFGUARD (D3) by adding a learned low-rank residual to the mapped keys and values, trained against a de-aligned source and perturbed inputs to reproduce the target model’s native reply.

  5. Use HANDOFFGUARD (P2) as a stronger setting at utility loss because it stops the de-aligned source it was trained against, bringing HarmBench ASR within 4.5 points of native on all three pairs while maintaining capability in many cases.

Abstract

As large language models increasingly collaborate in heterogeneous multi-agent systems, latent communication has emerged as an efficient alternative to exchanging natural-language messages. By sharing internal representations, agents can avoid repeatedly processing the same context, reducing communication overhead and prefill computation. One such mechanism is cross-model Key-Value (KV) cache transfer, which uses a learned mapper to translate a source model's KV cache into one a target model can use. However, this handoff means the target model consumes context it did not encode itself, thus calling into question whether its safety alignment still holds. In this work, we investigate the security implications of latent handoffs by introducing Chasm, a framework characterizing cross-model handoff attacks across three new attack surfaces: the source model, mapper, and handoff mechanism itself. Our experiments reveal that latent handoffs substantially undermine safety alignment and prompt-injection defenses. Notably, a target model that follows only 0.4% of benchmark prompt injections natively, follows up to 44.2% when transferred through a mapper from a source model. On the other hand, for jailbreak attacks, transfer alone raises attack success by up to 24.6 pp within a model family and zero-shot attacks by up to 69.2 pp, whereas white-box optimization through the mapper boosts the attack success rate to 92.5%, against 37.5% for ordinary GCG on the same target. To address these vulnerabilities, we propose a lightweight target-side cache guard that corrects transferred caches to restore the target model's refusal, considerably mitigating these attacks.

Sources

Related papers