A Multi-Layer Security Framework for Prompt Injection and Knowledge Poisoning Mitigation in Agentic Retrieval-Augmented Generation Systems
Retrieval-Augmented Generation (RAG) improves the factual usefulness of Large Language Models (LLMs) by grounding generation in external knowledge. When RAG is combined with autonomous agents, the system can plan multi-step tasks, retrieve information, and invoke external tools, but the additional autonomy also creates new attack surfaces. This paper proposes a Multi-Layer Security Framework (MLSF) for agentic RAG systems that combines input inspection, retrieved-context security, provenance verification, tool authorization, and output verification. The framework is designed around a practical Python technology stack consisting of LangChain, LangGraph, Mistral Small, embeddings, ChromaDB, FastAPI, and Docker. A controlled evaluation environment is defined with five attack categories: direct prompt injection, indirect prompt injection, knowledge poisoning, tool misuse, and context manipulation.
Authors
- Rohan Mehra
Institutions
- CT Group Of Institutions (IN)
Publication Details
- Journal
- Zenodo (CERN European Organization for Nuclear Research)
- Published
- 2026-09-06
- DOI
- https://doi.org/10.5281/zenodo.22541784
- Primary Topic
- Scientific Computing and Data Management
- Type
- preprint