Can It Reach the Generator? Investigating the Survival of Prompt-Injection Attacks in Realistic RAG Settings
About
Recent generative engine optimisation (GEO) research has shown that prompt-injection attacks can push a target product to the top of an LLM's recommendation list, with the strongest attacks reporting around $80\%$ success and raising serious security concerns about RAG-based recommendation. However, these results assume the attacked document is always fed directly to the generator, bypassing the retriever and reranker. This is unrealistic: in deployed RAG systems, the attack modifies the document content, which can in turn change whether the document is retrieved and reranked highly enough to reach the generator at all. In this paper, we re-evaluate seven GEO attacks under a realistic three-stage pipeline (retriever\,$\to$\,LLM reranker\,$\to$\,LLM generator). We find that prior protocols substantially overstate attack effectiveness: gradient-based and instruction override attacks largely collapse before reaching the generator, and only LLM-driven prompt injections remain effective end-to-end. Our analysis further reveals that current GEO attacks are easily detectable: a lightweight prompt-injection guard finetuned on a small attack dataset already detects every attack. Our code and data are available at https://github.com/ielab/geo_injection_rag_survival.
Related benchmarks
| Task | Dataset | Result | Rank | |
|---|---|---|---|---|
| GEO Attack Detection | ESCI Balanced (1:1) (test) | FDR2.7 | 28 | |
| GEO Attack Detection | ESCI Pipeline (≈1:9) (test) | FDR25.2 | 28 | |
| Adversarial Attack Effectiveness in RAG Pipeline | ESCI position 6 (test) | -- | 28 | |
| GenAI Search Optimization Attack Effectiveness | Amazon ESCI | -- | 28 |