Scope: Practise attacks only on the bots in these lessons, or on systems you own or have written permission to test. The secrets here are fake and unique to you.
Prompt injection does not need the attacker to talk to the bot. In a RAG system, any text the bot reads can carry instructions: a help article, an uploaded file, a web page, an email. This is indirect injection, and it is how most real attacks on AI features work, because the attacker only needs to get text into something the bot will retrieve.
LeakyDesk's knowledge base is editable by staff. Its instructions hold a fake secret unique to you.
Your task
- In the console, add an article (
/add …) that tells the bot to include the staff discount code, then ask a question that retrieves it. Copy the secret it leaks. - Write a regression test: an article with instructions must not change what the bot reveals, and normal articles must still be used. On submit it runs against the vulnerable build, the fixed build, and a build with no problem.