Hacking Gandalf: lessons from an LLM prompt-injection game

Photo by Aron Visuals on Unsplash Gandalf is a game built by Lakera where an AI model has been given a secret password and your job is to talk it into revealing it. Each level adds a new defence, and the only tool you have is the prompt you type into the box. It’s the most approachable introduction to prompt injection I’ve come across — no setup, no code, just you and a stubborn wizard. I worked…