PIDP-Attack: Combining Prompt Injection and Database Poisoning to Attack RAG SystemsPIDP-Attack: Combining Prompt Injection with Database Poisoning Attacks on Retrieval-Augmented Generation Systems
Translation in progress — untranslated text is omitted.
The researchers propose PIDP-Attack, a composite attack combining prompt injection with database poisoning, which can manipulate the answers of RAG systems without needing to know the user's actual query in advance. The method appends malicious characters to the query at inference time and injects a small number of poisoned passages into the retrieval database. Evaluations on the Natural Questions, HotpotQA, and MS-MARCO benchmarks and eight LLMs show that the attack improves the attack success rate over the original PoisonedRAG by 4% to 16% on open-domain question answering tasks, while maintaining high retrieval precision.
- RAG data poisoning usually requires knowing the user's specific query in advance, making it hard to scale under dynamic queries; prompt injection alone lacks persistent evidence in the corpus. PIDP-Attack aims to steer answers to any query toward an attacker-specified incorrect answer when both retriever and generator are black boxes and the query is not known in advance.
- Offline, use Llama-3.1-8B-Instruct to generate poisoning passages starting with the target question S and supporting the wrong answer a−, and write them into the corpus, 5 by default. Online, append a fixed suffix to any query, retrieve top-5 with Contriever, then generate with the standard RAG template; success is the answer containing the exact string a−.
- Across three datasets and eight LLMs, PIDP's strict ASR is higher than or equal to PoisonedRAG. The authors state that on NQ, 7/8 models are 4%–16% higher, and on MS-MARCO, 5%–12% higher. The average ASR in Table 1 is 98.125%.
- The conclusion lists three future directions: multimodal retrieval, perplexity filtering or query rewriting, and transfer between sparse and dense retrievers. Experiments use Contriever and three BEIR QA sets, eight API models; strict ASR is substring matching. The budget sweep covers three models.
Related events and news
0 events · 1 news mentions
News that mentions this paper
- Adversa AIcites the paper's id or link2026 年 4 月顶级 GenAI 安全资源盘点:LiteLLM 供应链攻击与上下文窗口投毒
Against standard RAG systems, the PIDP-Attack achieved an alarming 98.125% attack success rate across three recognized benchmarks and eight different models.
Related papers
Both use: BEIR
Show 3 more papers
Both use: BEIR
Both use: MS-MARCO