PromptLocate: Localizing Prompt Injection Attacks
Yuqi Jia, Yupei Liu, Zedian Shao, Jinyuan Jia, Neil Zhenqiang Gong
摘要
Prompt injection attacks deceive a large language model into completing an attacker-specified task instead of its intended task by contaminating its input data with an injected prompt, which consists of injected instruction(s) and data. Localizing the injected prompt within contaminated data is crucial for post-attack forensic analysis and data recovery. Despite its growing importance, prompt injection localization remains largely unexplored. In this work, we bridge this gap by proposing PromptLocate, the first method for localizing injected prompts. PromptLocate comprises three steps: (1) splitting the contaminated data into semantically coherent segments, (2) identifying segments contaminated by injected instructions, and (3) pinpointing segments contaminated by injected data. We show PromptLocate accurately localizes injected prompts across eight existing and eight adaptive attacks. Our code and data are available at: https://github. com/liu00222/Open-Prompt-Injection.
问 Lune
几分钟读透这篇 Paper,不用再花一下午。
Lune 能读完全文,也能读引用它的顶会 Paper,讲清它的结论、证据和局限,每一点都注明出自哪篇 Paper。不用硬啃,也不靠猜。
已有 7 篇顶会 Paper 引用了它。别等审稿人问起,先弄清它们发现了什么。
脉络
- LocalAlign: Enabling Generalizable Prompt Injection Defense via Generation of Near-Target Adversarial Examples for Alignment Training 引用了 Formalizing and Benchmarking Prompt Injection Attacks and Defenses
- RedVisor: Reasoning-Aware Prompt Injection Defense via Zero-Copy KV Cache Reuse 引用了 Optimization-based Prompt Injection Attack to LLM-as-a-Judge
- Measuring Real-World Prompt Injection Attacks in LLM-based Resume Screening 引用了 PLeak: Prompt Leaking Attacks against Large Language Model Applications
- Measuring Real-World Prompt Injection Attacks in LLM-based Resume Screening 引用了 Formalizing and Benchmarking Prompt Injection Attacks and Defenses
- Measuring Real-World Prompt Injection Attacks in LLM-based Resume Screening 引用了 Optimization-based Prompt Injection Attack to LLM-as-a-Judge
- Measuring Real-World Prompt Injection Attacks in LLM-based Resume Screening 引用了 Prompt Injection Attack to Tool Selection in LLM Agents
- Measuring Real-World Prompt Injection Attacks in LLM-based Resume Screening 引用了 ObliInjection: Order-Oblivious Prompt Injection Attack to LLM Agents with Multi-source Data
- AttnTrace: Contextual Attribution of Prompt Injection and Knowledge Corruption 引用了 Formalizing and Benchmarking Prompt Injection Attacks and Defenses
- PLeak: Prompt Leaking Attacks against Large Language Model Applications 引用了 Formalizing and Benchmarking Prompt Injection Attacks and Defenses
- Optimization-based Prompt Injection Attack to LLM-as-a-Judge 引用了 PLeak: Prompt Leaking Attacks against Large Language Model Applications
- Optimization-based Prompt Injection Attack to LLM-as-a-Judge 引用了 Formalizing and Benchmarking Prompt Injection Attacks and Defenses
- Prompt Injection Attack to Tool Selection in LLM Agents 引用了 PLeak: Prompt Leaking Attacks against Large Language Model Applications
- Prompt Injection Attack to Tool Selection in LLM Agents 引用了 Formalizing and Benchmarking Prompt Injection Attacks and Defenses
- Prompt Injection Attack to Tool Selection in LLM Agents 引用了 Optimization-based Prompt Injection Attack to LLM-as-a-Judge
- ObliInjection: Order-Oblivious Prompt Injection Attack to LLM Agents with Multi-source Data 引用了 PLeak: Prompt Leaking Attacks against Large Language Model Applications
- ObliInjection: Order-Oblivious Prompt Injection Attack to LLM Agents with Multi-source Data 引用了 Formalizing and Benchmarking Prompt Injection Attacks and Defenses
- ObliInjection: Order-Oblivious Prompt Injection Attack to LLM Agents with Multi-source Data 引用了 Optimization-based Prompt Injection Attack to LLM-as-a-Judge
- ObliInjection: Order-Oblivious Prompt Injection Attack to LLM Agents with Multi-source Data 引用了 Prompt Injection Attack to Tool Selection in LLM Agents
引用它的顶会 Paper7
- ObliInjection: Order-Oblivious Prompt Injection Attack to LLM Agents with Multi-source DataReachal Wang, Yuqi Jia, Neil Zhenqiang GongNDSS 2026 · 24 次引用
- AttnTrace: Contextual Attribution of Prompt Injection and Knowledge CorruptionYanting Wang, Runpeng Geng, Ying Chen, Jinyuan JiaS&P 2026 · 6 次引用
- Measuring Real-World Prompt Injection Attacks in LLM-based Resume ScreeningMohan Zhang, Yuqi Jia, Zhen Tan, Steven Jiang 等USENIX Security 2026 · 4 次引用
- RedVisor: Reasoning-Aware Prompt Injection Defense via Zero-Copy KV Cache ReuseMingrui Liu, Sixiao Zhang, Cheng Long, Kwok Yan LamICML 2026 · 2 次引用
- LocalAlign: Enabling Generalizable Prompt Injection Defense via Generation of Near-Target Adversarial Examples for Alignment TrainingYuyang Gong, Zihao Wang, Jiawei Liu, XiaoFeng WangCCS 2026 · 1 次引用
它引用的 Paper13
- Formalizing and Benchmarking Prompt Injection Attacks and DefensesYupei Liu, Yuqi Jia, Runpeng Geng, Jinyuan Jia 等USENIX Security 2024 · 308 次引用
- Prompt Injection Attack to Tool Selection in LLM AgentsJiawen Shi, Zenghui Yuan, Guiyao Tie, Pan Zhou 等NDSS 2026 · 181 次引用
- Making Monolingual Sentence Embeddings Multilingual using Knowledge DistillationNils Reimers, Iryna GurevychEMNLP 2020 · 54 次引用
- Optimization-based Prompt Injection Attack to LLM-as-a-JudgeJiawen Shi, Zenghui Yuan, Yinuo Liu, Yue Huang 等CCS 2024 · 33 次引用
- PLeak: Prompt Leaking Attacks against Large Language Model ApplicationsBo Hui, Haolin Yuan, Neil Gong, Philippe Burlina 等CCS 2024 · 28 次引用
相关 Paper
- Can Indirect Prompt Injection Attacks Be Detected and Removed?Yulin Chen, Haoran Li, Yuan Sui, Yufei He 等ACL 2025
- DataSentinel: A Game-Theoretic Detection of Prompt Injection AttacksYupei Liu, Yuqi Jia, Jinyuan Jia, Dawn Song 等S&P 2025
- Know Thy Enemy: Securing LLMs Against Prompt Injection via Diverse Data Synthesis and Instruction-Level Chain-of-Thought LearningZhiyuan Chang, Mingyang Li, Yuekai Huang, Ziyou Jiang 等ACL Findings 2026
- TopicAttack: An Indirect Prompt Injection Attack via Topic TransitionYulin Chen, Haoran Li, Yuexin Li, Yue Liu 等EMNLP 2025 · 1 次引用
- Tensor Trust: Interpretable Prompt Injection Attacks from an Online GameSam Toyer, Olivia Watkins, Ethan Adrian Mendes, Justin Svegliato 等ICLR 2024 · 123 次引用
