The retrieval layer decides what the model sees; without access control, poisoned or cross-tenant documents can be retrieved, and embeddings can sometimes be inverted to recover their source text.
- Enforce tenant and user permissions in the retrieval query itself, not after the model answers.
- Validate documents and record their source before embedding them.
- Protect vector stores like any database that holds the original data, with access control, encryption and logging.
Guides on this site
Practice
References
- LLM08:2025 Vector and Embedding Weaknesses (OWASP, 2025 edition)
- OWASP Top 10 for LLM Applications 2026 (OWASP GenAI Security Project resource page)
List data from the publisher. A guide is listed as the main subject when the weakness or risk is what the guide is about, and as covering it when a dedicated section or worked example addresses it.