ObliInjection: Order-Oblivious Prompt Injection Attack to LLM Agents with Multi-source Data
Reachal Wang, Yuqi Jia, Neil Zhenqiang Gong
Abstract
Prompt injection attacks aim to contaminate the input data of an LLM to mislead it into completing an attacker-chosen task instead of the intended task. In many applications and agents, the input data originates from multiple sources, with each source contributing a segment of the overall input. In these multi-source scenarios, an attacker may control only a subset of the sources and contaminate the corresponding segments, but typically does not know the order in which the segments are arranged within the input. Existing prompt injection attacks either assume that the entire input data comes from a single source under the attacker’s control or ignore the uncertainty in the ordering of segments from different sources. As a result, their success is limited in domains involving multi-source data. In this work, we propose ObliInjection , the first prompt injection attack targeting LLM applications and agents with multisource input data. ObliInjection introduces two key technical innovations: the order-oblivious loss , which quantifies the likelihood that the LLM will complete the attacker-chosen task regardless of how the clean and contaminated segments are ordered; and the orderGCG algorithm , which is tailored to minimize the order-oblivious loss and optimize the contaminated segments. Comprehensive experiments across three datasets spanning diverse application domains and twelve LLMs demonstrate that ObliInjection is highly effective, even when only one out of 6–100 segments in the input data is contaminated. Our code and data are available at: https://github.com/ReachalWang/ObliInjection.
Ask Lune
Know this paper in minutes, not an afternoon.
Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.
5 top-tier papers have cited it since. Know what they found before your reviewers do.
Lune can draw on
the full paper · the top-tier papers that cite it · related work
Free to start. No credit card required.
Lineage
- PromptLocate: Localizing Prompt Injection Attacks cites PLeak: Prompt Leaking Attacks against Large Language Model Applications
- PromptLocate: Localizing Prompt Injection Attacks cites Formalizing and Benchmarking Prompt Injection Attacks and Defenses
- PromptLocate: Localizing Prompt Injection Attacks cites Optimization-based Prompt Injection Attack to LLM-as-a-Judge
- PromptLocate: Localizing Prompt Injection Attacks cites Prompt Injection Attack to Tool Selection in LLM Agents
- Safeguarding LLM Agents against Long-Horizon Threats via Shadow Memory cites PromptLocate: Localizing Prompt Injection Attacks
- Safeguarding LLM Agents against Long-Horizon Threats via Shadow Memory cites Formalizing and Benchmarking Prompt Injection Attacks and Defenses
- Safeguarding LLM Agents against Long-Horizon Threats via Shadow Memory cites Prompt Injection Attack to Tool Selection in LLM Agents
- Measuring Real-World Prompt Injection Attacks in LLM-based Resume Screening cites PromptLocate: Localizing Prompt Injection Attacks
- Measuring Real-World Prompt Injection Attacks in LLM-based Resume Screening cites PLeak: Prompt Leaking Attacks against Large Language Model Applications
- Measuring Real-World Prompt Injection Attacks in LLM-based Resume Screening cites Formalizing and Benchmarking Prompt Injection Attacks and Defenses
- Measuring Real-World Prompt Injection Attacks in LLM-based Resume Screening cites Optimization-based Prompt Injection Attack to LLM-as-a-Judge
- Measuring Real-World Prompt Injection Attacks in LLM-based Resume Screening cites Prompt Injection Attack to Tool Selection in LLM Agents
- Context Contamination in LLM Analysis of Network Security Logs: Poison with Passive Prompt Injection and Mitigation Evaluation cites Formalizing and Benchmarking Prompt Injection Attacks and Defenses
- Context Contamination in LLM Analysis of Network Security Logs: Poison with Passive Prompt Injection and Mitigation Evaluation cites Optimization-based Prompt Injection Attack to LLM-as-a-Judge
- PLeak: Prompt Leaking Attacks against Large Language Model Applications cites Formalizing and Benchmarking Prompt Injection Attacks and Defenses
- A Large-scale Measurement of In-Page Prompt Injections Against LLM Web Agents cites Formalizing and Benchmarking Prompt Injection Attacks and Defenses
- A Large-scale Measurement of In-Page Prompt Injections Against LLM Web Agents cites Prompt Injection Attack to Tool Selection in LLM Agents
- Optimization-based Prompt Injection Attack to LLM-as-a-Judge cites PLeak: Prompt Leaking Attacks against Large Language Model Applications
- Optimization-based Prompt Injection Attack to LLM-as-a-Judge cites Formalizing and Benchmarking Prompt Injection Attacks and Defenses
- Prompt Injection Attack to Tool Selection in LLM Agents cites PLeak: Prompt Leaking Attacks against Large Language Model Applications
- Prompt Injection Attack to Tool Selection in LLM Agents cites Formalizing and Benchmarking Prompt Injection Attacks and Defenses
- Prompt Injection Attack to Tool Selection in LLM Agents cites Optimization-based Prompt Injection Attack to LLM-as-a-Judge
Cited by top-tier papers5
- Parasites in the Toolchain: A Large-Scale Analysis of Attacks on the MCP EcosystemShuli Zhao, Qinsheng Hou, Zihan Zhan, Yanhao Wang et al.S&P 2026 · 20 citations
- Measuring Real-World Prompt Injection Attacks in LLM-based Resume ScreeningMohan Zhang, Yuqi Jia, Zhen Tan, Steven Jiang et al.USENIX Security 2026 · 4 citations
- Context Contamination in LLM Analysis of Network Security Logs: Poison with Passive Prompt Injection and Mitigation EvaluationRabimba Karanjai, Yang Lu, Hemanth Hegadehalli Madhavarao, Lei Xu et al.USENIX Security 2026 · 4 citations
- Safeguarding LLM Agents against Long-Horizon Threats via Shadow MemoryYuhui Wang, Tanqiu Jiang, Jiacheng Liang, Charles Fleming et al.CCS 2026
- A Large-scale Measurement of In-Page Prompt Injections Against LLM Web AgentsSoheil Khodayari, Xuenan Zhang, Bhupendra Acharya, Giancarlo PellegrinoCCS 2026
Builds on12
- Formalizing and Benchmarking Prompt Injection Attacks and DefensesYupei Liu, Yuqi Jia, Runpeng Geng, Jinyuan Jia et al.USENIX Security 2024 · 308 citations
- Prompt Injection Attack to Tool Selection in LLM AgentsJiawen Shi, Zenghui Yuan, Guiyao Tie, Pan Zhou et al.NDSS 2026 · 181 citations
- PromptLocate: Localizing Prompt Injection AttacksYuqi Jia, Yupei Liu, Zedian Shao, Jinyuan Jia et al.S&P 2026 · 35 citations
- Optimization-based Prompt Injection Attack to LLM-as-a-JudgeJiawen Shi, Zenghui Yuan, Yinuo Liu, Yue Huang et al.CCS 2024 · 33 citations
- PLeak: Prompt Leaking Attacks against Large Language Model ApplicationsBo Hui, Haolin Yuan, Neil Gong, Philippe Burlina et al.CCS 2024 · 28 citations
Related papers
- DataSentinel: A Game-Theoretic Detection of Prompt Injection AttacksYupei Liu, Yuqi Jia, Jinyuan Jia, Dawn Song et al.S&P 2025
- SecAlign: Defending Against Prompt Injection with Preference OptimizationSizhe Chen, Arman Zharmagambetov, Saeed Mahloujifar, Kamalika Chaudhuri et al.CCS 2025 · 1 citation
- WebInject: Prompt Injection Attack to Web AgentsXilong Wang, John Bloch, Zedian Shao, Yuepeng Hu et al.EMNLP 2025 · 1 citation
- Can Indirect Prompt Injection Attacks Be Detected and Removed?Yulin Chen, Haoran Li, Yuan Sui, Yufei He et al.ACL 2025
- Tensor Trust: Interpretable Prompt Injection Attacks from an Online GameSam Toyer, Olivia Watkins, Ethan Adrian Mendes, Justin Svegliato et al.ICLR 2024 · 123 citations
