TRANSMISSION // 2611.34278v1
When AI agents pass hidden context, safety can slip
Source published
Cross-model transfers of language-model cache states may save computation, but tests across three model families found that handoffs could weaken refusals and prompt-injection defenses.

A language model can pass another model an internal record of a conversation instead of sending the words themselves. This may save computation—but does the receiving model’s safety training still work when another model, through a learned translator, prepared that record? A new preprint tests this question and finds weaknesses in the systems studied.
In a multi-agent AI system, one model may handle part of a task and pass context to another. Instead of sending a written summary, the first model can transfer its key-value (KV) cache: internal information formed while processing the input. A learned mapper translates that cache into a representation the receiving model can use. This can avoid processing the same context again, but it also means the receiver may answer from a representation it did not create itself.
That distinction matters for safety. Refusal training and prompt-injection defenses rely partly on how a model represents what it reads. If a different model encodes the prompt—or a mapper changes that representation—the receiver’s safeguards may not behave as expected.
Testing the handoff
The authors introduce CHASM, a framework for examining attacks at three points in the transfer: the source model that reads the input, the mapper that translates its cache, and the handoff process, including repeated transfers between models.
They tested three model families—Qwen3, Llama 3 and Ministral 3—with four types of mapper and two mapper-calibration datasets, covering 24 settings. Tests included harmful requests and jailbreak prompts, as well as indirect prompt injection: instructions planted in external material, such as a web page, that an agent is asked to read. The team compared responses after cache transfer with responses when the target model processed the text itself. Automated evaluators assessed whether outputs met benchmark criteria for harmful compliance or following an injected instruction.
The attacks assumed different levels of access. Some required only a published jailbreak template; others assumed an attacker could supply an untrusted source model or optimize an attack through the mapper with access to model weights. These are distinct threat scenarios, not a claim that every attacker can do all of them.
Refusals did not reliably travel with the cache
Transfer alone increased harmful compliance in some tests. The size—and sometimes the direction—of the change varied by model and mapper. Some handoffs made a model safer on a particular measure, while others made it less safe. The results therefore do not show that every cache transfer always weakens safety.
A striking result came from the indirect-injection test. The target model followed only 0.4% of the benchmark’s planted instructions when it processed the material itself. When a smaller source model read the content and returned its cache through a mapper, the target followed as many as 44.2%. The authors argue that the target’s defense depended on how it encoded the untrusted material, and that protection was not reliably preserved when another model supplied the representation.
The strongest jailbreak result involved an attacker able to optimize a suffix through the source, mapper and target together. In one tested setting, that attack succeeded on 92.5% of behaviors, compared with 37.5% for ordinary optimization against the same target alone. This is a result for a particular setup, not an estimate of real-world attack rates.
A guard with important limits
The researchers also tested Handoff Guard, a receiver-side correction intended to restore the target model’s usual responses from transferred caches. Its p1 version brought harmful-response rates to within 4.5 percentage points of native rates across three tested model pairs when facing the de-aligned source models used in training. The authors report little capability loss for p1 in their checks. A stronger p2 version reduced attack success further, but caused over-refusal on some benign requests.
The protection was not universal. The guard was trained against specific de-aligned sources, and the authors make no claim that it will handle unseen ones. A white-box attacker who knew the guard’s weights could fine-tune a source model to bypass it; the authors say the weights therefore need to remain private. In the prompt-injection test, the guard reduced successful injections partly by refusing more often, rather than restoring the target’s original ability to ignore injected instructions.
This is a red-team evaluation of open models, specific mappers and benchmark tasks—not evidence that every deployed multi-agent system is vulnerable to the same degree. The model-switching test remapped caches without generating text between switches, unlike many real sessions. The injection experiment used a particular defended model and mappers calibrated for its undefended base model. Automated judges also stand in for human assessment, although the authors report checking results with a second judge.
The paper is an arXiv preprint, so its findings are research claims awaiting independent scrutiny, not settled consensus. It nevertheless points to a practical security concern: a model’s safety should not be assumed to survive a change in how its context is produced. Systems using cross-model cache transfer need to test the whole handoff—including the source and mapper—not only the receiving model in isolation.
- AI security
- large language models
- multi-agent systems
- KV cache
- prompt injection
- jailbreaks
- preprint
Related reading
Automatically matched by shared topic keywords. These links do not imply that the sources agree or establish a consensus.
When Chatbots Learn Mid-Conversation, Could Queries Weaken Their Guardrails?
Source published
Shared keywords: ai security, large language models
How MCP Tool Metadata Can Suggest Prompt-Injection Risks
Source published
Shared keywords: ai security, large language models
A CAPTCHA-style test can fingerprint an AI agent’s model
Source published
Shared keywords: ai security, large language models
How an Insider AI Agent Can Sway a Group
Source published
Shared keywords: ai security, large language models
Keeping AI Agents’ Knowledge Private—and Harder to Poison
Source published
Shared keywords: ai security, multi agent systems