LongPIBench Prompt Injection Benchmark
LongPIBench: A Long-Context Benchmark for Prompt Injection
LongPIBench reveals that current prompt injection defenses are less effective than believed in long-context scenarios, affecting real-world applications across multiple industries.
LongPIBench is a new benchmark for prompt injection attacks in long-context settings.
It covers 4 scenarios: paper peer review, resume screening, code review, and email summary.The benchmark includes both synthetic and real-world datasets with context lengths from thousands to tens of thousands of tokens.
Evaluation results show that even simple heuristic attacks frequently bypass current defenses in long-context settings.
LongPIBench: A Long-Context Benchmark for Prompt Injection
Prompt injection attacks pose a serious security risk to large language models in real-world applications. However, existing prompt injection benchmarks primarily focus on short-context inputs, leaving the attacks and defenses in long-context settings largely unexplored. This gap leads to a substantial overestimation of the effectiveness of current defenses. In this paper, we bridge the gap by introducing LongPIBench, a long-context benchmark for prompt injection covering 4 realistic application scenarios: paper peer review, resume screening, code review, and email summary. For each scenario, we construct a synthetic dataset and a real-world dataset, with context lengths ranging from thousands to tens of thousands of tokens. The evaluation results on LongPIBench reveal significant vulnerabilities of prompt injection defenses under long-context settings: even simple heuristic prompt injection attacks achieve high success rates and frequently bypass state-of-the-art defenses. We hope LongPIBench can serve as a practical benchmark for systematically evaluating prompt injection defenses in realistic long-context scenarios.
This report is categorized under AITOP's "Papers" desk. Key entities and technical topics under continuous tracking include LongPIBench, prompt injection, long context, benchmarks.
Source attribution: curated from arXiv cs.AI (@Yupei Liu, Yuqi Jia, Neil Zhenqiang Gong, Jinyuan Jia).