mlsanityData to 14 Oct 2026

The Hidden Threat in Plain Text: Attacking RAG Data Loaders

arXiv 2507.05093 ↗First posted 7 Jul 2025cs.CR cs.AIcited by 8

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

  1. 2024Pandora: Jailbreak GPTs by Retrieval Augmented Generation Poisoning13 Feb

Other references · 15

  1. 2020Language Models are Few-Shot Learnerscited by 32,419
  2. 2023Judging LLM-as-a-Judge with MT-Bench and Chatbot Arenacited by 8,626
  3. 2020Extracting Training Data from Large Language Modelscited by 2,189
  4. 2023Jailbroken: How Does LLM Safety Training Fail?cited by 1,651
  5. 2023Tree of Attacks: Jailbreaking Black-Box LLMs Automaticallycited by 672
  6. 2020Recipes for building an open-domain chatbotcited by 593
  7. 2023A Survey on Large Language Model (LLM) Security and Privacy: The Good, the Bad, and the Uglycited by 387
  8. 2024Bridging Language and Items for Retrieval and Recommendation: Benchmarking LLMs as Semantic Encoderscited by 224
  9. 2023The science of fake newscited by 97
  10. 2025OverThink: Slowdown Attacks on Reasoning LLMscited by 96
  11. 2025Docling: An Efficient Open-Source Toolkit for AI-driven Document Conversioncited by 63
  12. 2018All You Need is "Love": Evading Hate-speech Detectioncited by 56
3 more
  1. 2021Fall of Giants: How popular text-based MLaaS fall against a simple evasion attackcited by 13
  2. 2017Security Risks in Deep Learning Implementationscited by 12
  3. 2023Boosting Big Brother: Attacking Search Engines with Encodingscited by 8

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2025: 1; 2026: 7.

8 papers.

Similar, not cited

Close in wording, no citation either way

  1. 2025RAG Security and Privacy: Formalizing the Threat Model and Attack Surface
  2. 2025Practical Poisoning Attacks against Retrieval-Augmented Generation
  3. 2025RAG Safety: Exploring Knowledge Poisoning Attacks to Retrieval-Augmented Generation
  4. 2024Backdoored Retrievers for Prompt Injection Attacks on Retrieval Augmented Generation of Large Language Models
  5. 2025RAGPart & RAGMask: Retrieval-Stage Defenses Against Corpus Poisoning in Retrieval-Augmented Generation
  6. 2025Secure Retrieval-Augmented Generation against Poisoning Attacks
  7. 2025One Shot Dominance: Knowledge Poisoning Attack on Retrieval-Augmented Generation Systems
  8. 2025Token-Level Precise Attack on RAG: Searching for the Best Alternatives to Mislead Generation