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

Institutions

Publication Details

Journal
Zenodo (CERN European Organization for Nuclear Research)
Published
2026-09-06
DOI
https://doi.org/10.5281/zenodo.22541785
Primary Topic
Scientific Computing and Data Management
Type
preprint
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
preprint

A Multi-Layer Security Framework for Prompt Injection and Knowledge Poisoning Mitigation in Agentic Retrieval-Augmented Generation Systems

Rohan Mehra
Zenodo (CERN European Organization for Nuclear Research)
Scientific Computing and Data Management
preprint

A Multi-Layer Security Framework for Prompt Injection and Knowledge Poisoning Mitigation in Agentic Retrieval-Augmented Generation Systems

Rohan Mehra
preprint en

Abstract

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.

Zenodo (CERN European Organization for Nuclear Research)
CT Group Of Institutions (IN)
Peace, Justice and strong institutions
Scientific Computing and Data Management
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.