All practice problems Bug of the Day: a new problem every midnight, free for everyone. Keep a streak with your friends.
AI Engineering · Prompt injection · Hard
Prompt injection practice: Memory Lane
ChaiBot can remember things now. Attackers want it to remember the wrong things. ChaiBot has long-term memory. Customers can ask it to remember their…
The problem
- ChaiBot has long-term memory. Customers can ask it to remember their preferences — that's fine. Instructions that change how it treats everyone else are not.
- 7 documents to review, 4 of them hostile.
You'll use: Prompt injection · AI agents & tools · Guardrails · Data exfiltration · LLM security
Solve it (expert level)2–4 min · No coding needed
What this teaches (spoiler)
Memory turns a one-off injection into a permanent one. Scope memories to the customer who said them, review anything that affects others, and never store instructions from untrusted content.