Repository navigation
[Proposal] Practical Security Testing Methodology for RAG Systems #193
Replies: 2 comments 2 replies
|
Hi. Thank you for this. Given how pervasive RAG systems have become, a focused testing approach AND a threat model is a very good idea. Regarding the threat model: that would fit in a sub section under Threats overview, at the same level as 'Agentic AI overview' and call it 'RAG systemss overview'. It serves as a coverage of threats for a typical architecture. Please make the threat model align with what would come out of owaspai.org/go/threatmodel/ Regarding the test: that should go in section 5 under security testing strategies, right below (not as a sub section) Agentic AI security testing: "RAG system security testing" and have it align with that Agentic AI security testing - and you are more than welcome to amend that agentic ai security testing section because I think you have the expertise. We are really looking forward to this. |
|
Hi @robvanderveer, Thanks for the pointers. I've drafted both pieces: A "RAG systems overview" subsection for Threats overview, sibling to Agentic AI overview. It walks through the five-stage RAG pipeline (ingestion / indexing / retrieval / augmentation / generation) and maps RAG-specific attack surface onto existing threat categories: indirect prompt injection, data poisoning of the corpus, augmentation data leak via retrieval-scope/ACL mismatch, output injection from retrieved content, and supply chain. It also extends the threat-model decision tree with RAG-specific questions. I kept it aligned with /go/threatmodel/ by not inventing new threat IDs; RAG maps cleanly onto the augmentation-data branch that's already there. A "RAG system security testing" subsection for section 5, placed right below Agentic AI security testing rather than nested under it, following the same methodology/red-teaming/layer-model structure. It covers testing the retrieval channel independently from the query channel, testing retrieval-scope enforcement directly against the index/retriever rather than only through the model, corpus poisoning, provenance/metadata spoofing, and a 5-layer pentest scope (ingestion / indexing / retrieval / augmentation / generation). Two open questions before I turn this into a PR: I used placeholder permalinks (/go/ragoverview/, /go/ragtesting/). Is there a process for registering new short-links, or should I pick slugs and you'll adjust in review ? Prefer I open the PR directly, or share the full diff here first for a pass ? Also flagging separately: none of the tools in the current tool-review tables (PyRIT, Garak, Promptfoo, etc.) test retrieval-scope enforcement directly against the vector store/index. That's a real gap in tooling coverage. Happy to open a separate issue for that rather than fold it into this PR. Looking forward to your take. |
Uh oh!
There was an error while loading. Please reload this page.
Hi, I would like to contribute a practical security testing guide for Retrieval-Augmented Generation (RAG) systems.
The proposed contribution would focus on knowledge-base poisoning, augmentation data manipulation, indirect prompt injection, unauthorized document retrieval, cross-tenant data leakage, and retrieval-ranking manipulation.
I plan to include a RAG threat model, reproducible security test cases, evaluation metrics such as attack success rate and poisoned-document retrieval rate, and procedures for validating defensive controls.
My background is in offensive security, AI/ML penetration testing, RAG based research project on guardrails, Technical AI Course background in Bluedot Impact, AI red teaming. I am also conducting research related to poisoning attacks against RAG systems.
Would this contribution fit the current roadmap, and which section of the AI Exchange would be the most appropriate place for it?
All reactions