UniC-RAG: Universal Knowledge Corruption Attacks to Retrieval-Augmented Generation
On the map: Retrieval-augmented generation → Privacy and security of RAG
Abstract (arXiv)
Retrieval-augmented generation (RAG) systems are widely deployed in real-world applications in diverse domains such as finance, healthcare, and cybersecurity. However, many studies showed that they are vulnerable to knowledge corruption attacks, where an attacker can inject adversarial texts into the knowledge database of a RAG system to induce the LLM to generate attacker-desired outputs. Existing studies mainly focus on attacking specific queries or queries with similar topics (or keywords). In this work, we propose UniC-RAG, a universal knowledge corruption attack against RAG systems. Unlike prior work, UniC-RAG jointly optimizes a small number of adversarial texts that can simultaneously attack a large number of user queries with diverse topics and domains, enabling an attacker to achieve various malicious objectives, such as directing users to malicious websites, triggering harmful command execution, or launching denial-of-service attacks. We formulate UniC-RAG as an optimization problem and further design an effective solution to solve it, including a balanced similarity-based clustering method to enhance the attack's effectiveness. Our extensive evaluations demonstrate that UniC-RAG is highly effective and significantly outperforms baselines. For instance, UniC-RAG could achieve over 90% attack success rate by injecting 100 adversarial texts into a knowledge database with millions of texts to simultaneously attack a large set of user queries (e.g., 2,000). Additionally, we evaluate existing defenses and show that they are insufficient to defend against UniC-RAG, highlighting the need for new defense mechanisms in RAG systems.
Key facts. Cited by 3 papers in the map (data through 14 Oct 2026). Placed in Privacy and security of RAG, one of 15 directions in Retrieval-augmented generation. Builds on 56 of its 79 references that are in the map. First posted on arXiv 26 Aug 2025.
Builds on
56 of 79 references.
Closest ancestors · 15
Same direction, newest first
- 2025CPA-RAG:Covert Poisoning Attacks on Retrieval-Augmented Generation in Large Language Models26 May
- 2025The Silent Saboteur: Imperceptible Adversarial Attacks against Black-Box Retrieval-Augmented Generation Systems24 May
- 2025Practical Poisoning Attacks against Retrieval-Augmented Generation4 Apr
- 2025Poisoned-MRAG: Knowledge Poisoning Attacks to Multimodal Retrieval Augmented Generation8 Mar
- 2025Topic-FlipRAG: Topic-Orientated Adversarial Opinion Manipulation Attacks to Retrieval-Augmented Generation Models3 Feb
- 2025GraphRAG under Fire23 Jan
- 2025FlippedRAG: Black-Box Opinion Manipulation Adversarial Attacks to Retrieval-Augmented Generation Models6 Jan
- 2024GASLITEing the Retrieval: Exploring Vulnerabilities in Dense Embedding-based Search30 Dec
- 2024"Glue pizza and eat rocks" -- Exploiting Vulnerabilities in Retrieval-Augmented Generative Models26 Jun
- 2024Machine Against the RAG: Jamming Retrieval-Augmented Generation with Blocker Documents9 Jun
- 2024BadRAG: Identifying Vulnerabilities in Retrieval Augmented Generation of Large Language Models3 Jun
- 2024Phantom: General Backdoor Attacks on Retrieval Augmented Language Generation30 May
3 more
Other references · 41
- 2020Language Models are Few-Shot Learnerscited by 32,419
- 2024The Llama 3 Herd of Modelscited by 14,715
- 2023Llama 2: Open Foundation and Fine-Tuned Chat Modelscited by 13,028
- 2020Retrieval-Augmented Generation for Knowledge-Intensive NLP Taskscited by 9,297
- 2022ReAct: Synergizing Reasoning and Acting in Language Modelscited by 8,695
- 2024GPT-4o System Cardcited by 4,588
- 2023Reflexion: Language Agents with Verbal Reinforcement Learningcited by 4,276
- 2020Dense Passage Retrieval for Open-Domain Question Answeringcited by 3,824
- 2018HotpotQA: A Dataset for Diverse, Explainable Multi-hop Question Answeringcited by 3,754
- 2023Universal and Transferable Adversarial Attacks on Aligned Language Modelscited by 3,104
- 2023Self-RAG: Learning to Retrieve, Generate, and Critique through Self-Reflectioncited by 1,839
- 2016MS MARCO: A Human Generated MAchine Reading COmprehension Datasetcited by 1,605
29 more
- 2023Not what you've signed up for: Compromising Real-World LLM-Integrated Applications with Indirect Prompt Injectioncited by 1,443
- 2021BEIR: A Heterogenous Benchmark for Zero-shot Evaluation of Information Retrieval Modelscited by 1,252
- 2021Unsupervised Dense Information Retrieval with Contrastive Learningcited by 1,216
- 2020Approximate Nearest Neighbor Negative Contrastive Learning for Dense Text Retrievalcited by 849
- 2022Ignore Previous Prompt: Attack Techniques For Language Modelscited by 832
- 2023AutoDAN: Generating Stealthy Jailbreak Prompts on Aligned Large Language Modelscited by 785
- 2019Is BERT Really Robust? A Strong Baseline for Natural Language Attack on Text Classification and Entailmentcited by 671
- 2023Baseline Defenses for Adversarial Attacks Against Aligned Language Modelscited by 651
- 2023Prompt Injection attack against LLM-integrated Applicationscited by 605
- 2024Executable Code Actions Elicit Better LLM Agentscited by 564
- 2020BERT-ATTACK: Adversarial Attack Against BERT Using BERTcited by 491
- 2023Catastrophic Jailbreak of Open-source LLMs via Exploiting Generationcited by 451
- 2024AgentPoison: Red-teaming LLM Agents via Poisoning Memory or Knowledge Basescited by 429
- 2018TextBugger: Generating Adversarial Text Against Real-world Applicationscited by 381
- 2023Formalizing and Benchmarking Prompt Injection Attacks and Defensescited by 364
- 2018Black-box Generation of Adversarial Text Sequences to Evade Deep Learning Classifierscited by 345
- 2023Poisoning Web-Scale Training Datasets is Practicalcited by 290
- 2024Corrective Retrieval Augmented Generationcited by 197
- 2023Poisoning Retrieval Corpora by Injecting Adversarial Passagescited by 159
- 2024Automatic and Universal Prompt Injection Attacks against Large Language Modelscited by 119
- 2024InstructRAG: Instructing Retrieval-Augmented Generation via Self-Synthesized Rationalescited by 101
- 2024Neural Exec: Learning (and Learning from) Execution Triggers for Prompt Injection Attackscited by 85
- 2023BOLAA: Benchmarking and Orchestrating LLM-augmented Autonomous Agentscited by 84
- 2024Improving Retrieval for RAG based Question Answering Models on Financial Documentscited by 49
- 2023Making LLMs Worth Every Penny: Resource-Limited Text Classification in Bankingcited by 37
- 2024The Chronicles of RAG: The Retriever, the Chunk and the Generatorcited by 34
- 2023QASiNa: Religious Domain Question Answering using Sirah Nabawiyahcited by 15
- 2021AutoLAW: Augmented Legal Reasoning through Legal Precedent Predictioncited by 14
- 2024Introducing a new hyper-parameter for RAG: Context Window Utilizationcited by 8
Built on by
Citing papers per year: 2026: 3.
3 papers.
- 2026A Wolf in Sheep's Clothing: Targeted Routing Hijacking in Federated RAGcited by 1
- 2026DiscourseFlip: An Oblique Discourse-Level Opinion Manipulation Attack against Black-box Retrieval-Augmented Generationcited by 1
- 2026ImageAuditor: Membership Inference Attack against Image-based Retrieval-Augmented Generationcited by 0
- 2026ImageAuditor: Membership Inference Attack against Image-based Retrieval-Augmented Generation2 Jun 2026
- 2026DiscourseFlip: An Oblique Discourse-Level Opinion Manipulation Attack against Black-box Retrieval-Augmented Generation31 May 2026
- 2026A Wolf in Sheep's Clothing: Targeted Routing Hijacking in Federated RAG27 May 2026
Similar, not cited
Close in wording, no citation either way
- 2025Rescuing the Unpoisoned: Efficient Defense against Knowledge Corruption Attacks on RAG Systems
- 2025RAG Safety: Exploring Knowledge Poisoning Attacks to Retrieval-Augmented Generation
- 2024PoisonedRAG: Knowledge Corruption Attacks to Retrieval-Augmented Generation of Large Language Models
- 2024On the Vulnerability of Applying Retrieval-Augmented Generation within Knowledge-Intensive Application Domains
- 2026Towards Secure Retrieval-Augmented Generation: A Comprehensive Review of Threats, Defenses and Benchmarks
- 2026Benchmarking Knowledge-Extraction Attack and Defense on Retrieval-Augmented Generation
- 2025Token-Level Precise Attack on RAG: Searching for the Best Alternatives to Mislead Generation
- 2025One Shot Dominance: Knowledge Poisoning Attack on Retrieval-Augmented Generation Systems