atlas

Research map / Multi-agent systems and games / LLM agents

ChatInject: Abusing Chat Templates for Prompt Injection in LLM Agents

ICLR 2026 · Multi-agent systems and games › LLM agents · approach: Agent safety and attack benchmarks

Read the paperCheck your idea against 108,967 papers

AI-extracted summary. Written by AI from the paper's full text. Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.

Proposes ChatInject, which forges native chat-template role tags inside tool outputs (plus a multi-turn variant with synthetic persuasive dialogues) to raise indirect prompt injection success across agents and models.

Problem

Indirect prompt injection against LLM agents has been studied mainly as plain-text injection; the paper asks whether forged chat-template tokens and persuasive multi-turn dialogues embedded in tool outputs can bypass role-based instruction hierarchies.

Approach

Wrap the injected payload (or a synthesized 7-turn persuasive dialogue) in the target model's own chat-template role tags so that the agent treats the tool-output content as higher-priority system/user/assistant turns; also show cross-model transfer via template similarity and mixture-of-templates wrappers.

Key results

Surprising findings

Limitations

Experimental setup

Datasets: InjecAgent AgentDojo multi-turn jailbreak dataset (adapted)

Benchmarks: InjecAgent AgentDojo

Metrics: Attack Success Rate Utility under Attack benign utility embedding cosine similarity

Baselines: Default InjecPrompt Default Multi-turn PI detector Lakera Guard Instructional Prevention Data Delimiters User Instruction Repetition

Builds on: InjecAgent AgentDojo InjecPrompt ChatBug

Closest papers by meaning

Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.

Open scime draft

Get the next scime Dispatch and a monthly field update

Free. We send a confirmation link first; every email has a one-click unsubscribe. Privacy