HackPath Academy

AI & LLM Security

RAG & Vector Database Attacks

Poison the knowledge base and exploit retrieval-augmented pipelines.

Advanced · 13 min

Open the interactive lesson →

Retrieval-Augmented Generation (RAG) gives an LLM external knowledge: user query → embed → search a vector database → stuff results into the prompt → generate. Every stage is attackable.

Take the quiz →