NEWPractise supported commands in browser simulations, alongside the lesson.Try a browser practice exercise.Try a lab♥ Codelivly is 100% free, no paywall. If it helped you, chip in to keep it running.100% free. Help keep it so.Support us
Master the unique security risks of Retrieval-Augmented Generation (RAG) and vector databases. Learn to exploit and defend against data leakage, indirect injection, and metadata manipulation.
A free account saves your place, private work and verified progress.
RAG and Vector Database Attacks is a free intermediate learning path with 5 rooms and 14 lessons. The curriculum begins with What is RAG and Why It Introduces New Risk.
Start with What is RAG and Why It Introduces New Risk
In the AI Red Teaming and Adversarial ML career path this one comes after 12 paths, ending with:
rag security, vector database attacks, data extraction, indirect prompt injection, retriever rbac, llm06, ai red teaming
Final assessment with a 70% pass mark, 60 minutes, 3 attempts.
// about
This learning path dives deep into the security vulnerabilities inherent in Retrieval-Augmented Generation (RAG) architectures and the vector databases that power them. You will explore how attackers bypass traditional access controls to extract sensitive data, poison knowledge bases, and manipulate retrieval contexts. We break down the anatomy of a RAG pipeline, highlighting exactly where trust boundaries break during ingestion, embedding, and retrieval. You will learn the mechanics of vector databases, including similarity search and the security models of platforms like Pinecone, Chroma, and Weaviate. A major focus is placed on RAG poisoning and cross-tenant data leakage, teaching you how to craft malicious documents and exploit metadata isolation failures. Through hands-on methodologies and defensive countermeasures, you will learn to secure the entire AI data pipeline from ingestion to retrieval.
Prerequisites have not been specified for this path. Preview the first room before enrolling.
Practise only in simulated labs or systems you are explicitly authorized to test. Use the security glossary for unfamiliar terms.
Report a content or lab issue with the room URL and steps to reproduce.
// THE JOURNEY · 5 rooms
Understand the core components of Retrieval-Augmented Generation and why it fundamentally expands the AI attack surface.
Understand the mechanics of vector databases, semantic search, and the unique security models of platforms like Pinecone, Chroma, and Weaviate.
Learn how attackers craft and inject malicious documents into RAG pipelines to manipulate model outputs and compromise future users.
Understand how multi-tenant RAG architectures leak data across user boundaries and how to test for metadata isolation failures.
A hands-on, end-to-end lab where you craft, ingest, and trigger a poisoned document in a simulated RAG environment.
Open the exam page to check your saved requirements and assessment availability.
Check exam requirements