Originally published on Securityelites — AI Red Team Education , where the full and current version of this course lesson lives.
Picture a tester who has a RAG assistant in scope. They upload a document, ask a question they know it answers, and get a vague reply that ignores it. Later a different query pulls that same document up perfectly. Nothing is broken. The retrieval layer simply decided, by arithmetic, that one chunk was closer than another.
Every attack in this course depends on that arithmetic. To plant a document that gets retrieved, or to prove a leak, you must be able to predict what comes back.…