Day 14 of 1460 minExploit ArchitectHands-on lab
Day 14: RAG Security Day 14 — Chaining Retrieval Flaws into Exfiltration
Taught by Mr Elite Updated
By the end of today you can
- Map the stages of a RAG data-exposure chain: source poisoning, retrieval, instruction influence and output handling
- Explain how Markdown links and images can create outbound content or rendering risks
- Describe why tool-using agents can amplify the impact of untrusted retrieved content
- Distinguish evidence of retrieval from evidence of disclosure through an output channel
- Assess the chain safely using only synthetic canary data and lab-controlled destinations
A RAG-backed assistant can expose information through more than its final prose answer. It may retrieve documents, assemble context, call tools, render Markdown or create links and images. If untrusted content influences those stages, several individually small weaknesses can combine into a larger data-exposure path.
A useful way to analyse the risk is as a chain: a document enters the knowledge base, a query causes it to be retrieved, instruction-like content influences the assistant, and an output channel carries information beyond the intended boundary. Tool-using agents can increase the impact when they have permissions to browse, send messages, access files or call other services.
This lesson studies the chain as a defensive assessment problem. You will identify the trust boundaries, observe the designated simulator's behaviour and document where controls should break the chain. Use only synthetic canary values, the lab's own test accounts and destinations explicitly provided by the training environment. Do not attempt to extract real user data, secrets or credentials, and do not direct output to external systems.
In this lesson
- The chain — poison, retrieve, influence and disclose
- Markdown links, images and rendering channels
- Tool-using agents and documenting a multi-step chain
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