Last updated: April 29, 2026
RAG combines vector search + LLM. Security model is hybrid.
Threats specific to RAG
- Vector store data exposure — anyone with access reads embeddings (and retrieves originals)
- Indirect prompt injection via retrieved docs — adversary plants malicious doc; RAG retrieves and follows instructions
- IAM bypass via vector similarity — user query semantically matches private docs they shouldn’t see
- Hallucinated citations — LLM cites nonexistent sources
Defences
- Per-user vector index (filter retrieval by user permissions before semantic match)
- Sanitise retrieved content before inclusion in context
- Validate citations exist before returning
- System prompt explicitly distinguishes user input from retrieved content
- Audit trail of retrieved docs
Module Quiz · 4 questions
Pass with 80%+ to mark this module complete. Unlimited retries. Each question shows an explanation.
Custom team training + practitioner advisory
Beyond the free academy — we run private workshops, vCISO advisory, and red-team exercises tailored to your stack. For Indian SMBs scaling past their first hire.