# ShieldRAG: A Robust RAG Defense Framework Against Complex Corpus-Poisoning Attacks

arXiv: https://arxiv.org/abs/2611.36773 · HTML: https://mlsanity.com/paper/2611.36773/

## Key facts

- No citing papers in the map yet (data through 29 Nov 2026).
- Placed in Privacy and security of RAG, one of 15 directions in Retrieval-augmented generation.
- Submitted 27 Nov 2026, announced 30 Nov 2026.

## Placed in

- Retrieval-augmented generation / [Privacy and security of RAG](https://mlsanity.com/rag/privacy-and-security-of-rag/)

## Abstract (arXiv)

Retrieval-augmented generation (RAG) improves the factuality of language models by grounding their responses in external knowledge, but it also exposes them to corpus poisoning attacks. Existing defenses are mainly designed for individual poisoning methods. Because these defenses rely heavily on the initially retrieved documents, they remain vulnerable to complex poisoning that combines multiple attack methods. To systematically evaluate defenses against such complex poisoning, we introduce a mixed-poisoning evaluation framework that incorporates both retrieval-oriented and generation-oriented attack methods. We further propose ShieldRAG, a defense framework against complex corpus poisoning attacks. ShieldRAG first filters pseudo-relevant documents from the initially retrieved documents and generates candidate answers independently using each retained document as context. It then constructs candidate-specific queries from these answers and retrieves additional documents from different perspectives. Finally, ShieldRAG uses the language model to filter conflicting and unsupported information from the retrieved documents and construct verification evidence. The language model analyzes this evidence together with its internal knowledge to generate the final response. Extensive experiments demonstrate that ShieldRAG achieves competitive robustness against both single-method poisoning attacks and complex mixed poisoning involving multiple attack methods.
