The Hidden Threat in Plain Text: Attacking RAG Data Loaders
On the map: Retrieval-augmented generation → Privacy and security of RAG
Abstract (arXiv)
Large Language Models (LLMs) have transformed human-machine interaction since ChatGPT's 2022 debut, with Retrieval-Augmented Generation (RAG) emerging as a key framework that enhances LLM outputs by integrating external knowledge. However, RAG's reliance on ingesting external documents introduces new vulnerabilities. This paper exposes a critical security gap at the data loading stage, where malicious actors can stealthily corrupt RAG pipelines by exploiting document ingestion. We propose a taxonomy of 9 knowledge-based poisoning attacks and introduce two novel threat vectors -- Content Obfuscation and Content Injection -- targeting common formats (DOCX, HTML, PDF). Using an automated toolkit implementing 19 stealthy injection techniques, we test five popular data loaders, finding a 74.4% attack success rate across 357 scenarios. We further validate these threats on six end-to-end RAG systems -- including white-box pipelines and black-box services like NotebookLM and OpenAI Assistants -- demonstrating high success rates and critical vulnerabilities that bypass filters and silently compromise output integrity. Our results emphasize the urgent need to secure the document ingestion process in RAG systems against covert content manipulations.
Key facts. Cited by 8 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 16 of its 29 references that are in the map. First posted on arXiv 7 Jul 2025.
Builds on
16 of 29 references.
Closest ancestors · 1
Same direction, newest first
Other references · 15
- 2020Language Models are Few-Shot Learnerscited by 32,419
- 2023Judging LLM-as-a-Judge with MT-Bench and Chatbot Arenacited by 8,626
- 2020Extracting Training Data from Large Language Modelscited by 2,189
- 2023Jailbroken: How Does LLM Safety Training Fail?cited by 1,651
- 2023Tree of Attacks: Jailbreaking Black-Box LLMs Automaticallycited by 672
- 2020Recipes for building an open-domain chatbotcited by 593
- 2023A Survey on Large Language Model (LLM) Security and Privacy: The Good, the Bad, and the Uglycited by 387
- 2024Bridging Language and Items for Retrieval and Recommendation: Benchmarking LLMs as Semantic Encoderscited by 224
- 2023The science of fake newscited by 97
- 2025OverThink: Slowdown Attacks on Reasoning LLMscited by 96
- 2025Docling: An Efficient Open-Source Toolkit for AI-driven Document Conversioncited by 63
- 2018All You Need is "Love": Evading Hate-speech Detectioncited by 56
3 more
Built on by
Citing papers per year: 2025: 1; 2026: 7.
8 papers.
- 2025RAG-Pull: Turning Retrieval into a Code-Injection Channel via Invisible Unicode Perturbationscited by 4
- 2026Securing Retrieval-Augmented Generation: A Taxonomy of Attacks, Defenses, and Future Directionscited by 2
- 2026RAGShield: Detecting Numerical Claim Manipulation in Government RAG Systemscited by 1
- 2026Security and Privacy in Retrieval-Augmented Generation: Architectures, Threats, Defenses, and Future Directions for Building Trustworthy Systemscited by 0
- 2026Occluded Oculus: Operationalizing Stylistic Obscurementcited by 0
- 2026Beyond the Editing Canvas: Evidence Divergence in OOXML-to-LLM Ingestioncited by 0
- 2026Micro-Collaborative Poisoning: A Distributed Attack on RAG Systemscited by 0
- 2026On the security and privacy of LLMs in Mobilitycited by 0
- 2026On the security and privacy of LLMs in Mobility22 Sep 2026
- 2026Micro-Collaborative Poisoning: A Distributed Attack on RAG Systems18 Sep 2026
- 2026Beyond the Editing Canvas: Evidence Divergence in OOXML-to-LLM Ingestion26 Aug 2026
- 2026Occluded Oculus: Operationalizing Stylistic Obscurement27 Jul 2026
- 2026Security and Privacy in Retrieval-Augmented Generation: Architectures, Threats, Defenses, and Future Directions for Building Trustworthy Systems24 Jun 2026
- 2026Securing Retrieval-Augmented Generation: A Taxonomy of Attacks, Defenses, and Future Directions9 Apr 2026
- 2026RAGShield: Detecting Numerical Claim Manipulation in Government RAG Systems1 Apr 2026
- 2025RAG-Pull: Turning Retrieval into a Code-Injection Channel via Invisible Unicode Perturbations13 Oct 2025
Similar, not cited
Close in wording, no citation either way
- 2025RAG Security and Privacy: Formalizing the Threat Model and Attack Surface
- 2025Practical Poisoning Attacks against Retrieval-Augmented Generation
- 2025RAG Safety: Exploring Knowledge Poisoning Attacks to Retrieval-Augmented Generation
- 2024Backdoored Retrievers for Prompt Injection Attacks on Retrieval Augmented Generation of Large Language Models
- 2025RAGPart & RAGMask: Retrieval-Stage Defenses Against Corpus Poisoning in Retrieval-Augmented Generation
- 2025Secure Retrieval-Augmented Generation against Poisoning Attacks
- 2025One Shot Dominance: Knowledge Poisoning Attack on Retrieval-Augmented Generation Systems
- 2025Token-Level Precise Attack on RAG: Searching for the Best Alternatives to Mislead Generation