Day 5 of 1460 minExploit ArchitectHands-on lab
Day 5: RAG Security: Vector Database Attacks and Data Leakage — Day 5: Authorization Failures in
Taught by Mr Elite Updated
By the end of today you can
- Explain why authorization must be enforced when retrieving documents, not only when documents are ingested.
- Distinguish authentication from authorization in a RAG application.
- Test document and chunk identifiers for insecure direct object reference using two accounts you control in the lab.
- Assess whether client-supplied tenant, owner or access filters are trusted without server-side validation.
- Check whether citations, source links, previews or download endpoints expose documents outside the caller's permissions.
A RAG application can have excellent embeddings, a carefully tuned retriever and a well-designed prompt—and still have a serious security flaw if it returns the wrong person's documents.
Today we are testing an authorization boundary. Imagine two accounts in a training workspace: Account A owns a private document, and Account B should not be able to retrieve it. If B can change a document ID, request a chunk directly, alter a filter or follow a source link and see A's content, the problem is not the vector search algorithm. It is an access-control failure.
We will use two accounts that you own or that the lab explicitly provides. We will create a known document in Account A, then make controlled requests as Account B. We will never test against another student's account, production customer data or a system outside the lab scope.
In this lesson
- Authentication, ingestion-time controls and query-time authorization
- Document and chunk IDOR — test object references with two accounts
- Client-supplied filters and metadata trust
- Citations, source links and secondary retrieval paths
- Evidence, severity and responsible reporting
Premium course
$27 one-time, lifetime access
This day is part of the full course. Unlock it to read every lesson, do every mission and track your progress to the end.
Privileged members get every paid course included. See the plans