ContextLure: Exploiting Benign Conversation History for Indirect Prompt Injection

Yi Han, Zhen Sun, Zhijie Deng, Yini Huang, Yangyang Zheng +2 more
11/23/2026
cs.AI

No confident code implementation found for this paper.

Abstract

As LLMs become more capable, agents can perform more complex tasks with tools and maintain longer interactions with users. These benign conversations contain evidence on task results, user concerns, and operational constraints.

Show full abstract

The risk is that attackers who can observe benign conversations (evidence) may construct stronger indirect prompt injections without increasing the attackers' control over prior turns or the later injection. However, we still lack a clear study of how effectively attackers can select and use this evidence. To address this gap, we introduce ContextLure, a red-teaming framework in which an attacker silently observes an existing benign conversation, extracts evidence, and constructs an injection. The challenges are twofold: (a) selecting useful evidence and (b) presenting it as reasons for an unauthorized action, without changing the prior benign conversation. To efficiently exploit (a) the effect of evidence on attack success, our framework selects evidence across 2 dimensions: User/System Preferences with 3 selection policies. And to enhance (b) the process of turning the selected information into the malicious request, we introduce an Urgency/Priority matrix with 4 rewriting strategies. Across the evaluated conditions, we reach 67.4% ASR on AgentDojo and 87.3% on InjecAgent. These results show that attackers can use benign interaction evidence in later attacks without first poisoning the benign conversation.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{han2026contextlure,
  title  = {ContextLure: Exploiting Benign Conversation History for Indirect Prompt Injection},
  author = {Yi Han and Zhen Sun and Zhijie Deng and Yini Huang and Yangyang Zheng and Dongyi Zhang and Xinlei He},
  year   = {2026},
  eprint = {2611.31424},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2611.31424v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2611.31424.svg)](https://codeofpaper.com/paper/2611.31424)

Discussion