Back to index
Other1 to 3 hours for the main levels·Free

Gandalf by Lakera (Prompt Injection Game and Agent Breaker)

4.2

The fastest way to understand in your gut why prompt injection is hard to fix. It teaches by letting you win, then watching the defences fail anyway. It is a game, not a course, and every prompt you type becomes data for a commercial product.

What We Liked

  • Free, no signup needed for the classic levels, playable in minutes
  • Each level adds a defence, so you see input filters, output checks and system prompts fail one by one
  • Agent Breaker extends the idea to tool-using agents, which is where the real risk now sits
  • Great for showing managers and non-technical colleagues why guardrails are not a fix

What Could Be Better

  • No explanation of theory, defences or architecture, you infer lessons yourself
  • Your attempts feed Lakera's attack dataset, which now serves Check Point's commercial product
  • Can teach the wrong lesson that security is about clever prompts rather than permissions
  • No path onward to structured learning

Detailed review

Gandalf launched in 2023 and became the most widely played prompt injection exercise on the internet. The idea is simple. An LLM knows a password and has been told not to reveal it. You try to get it out.

Level one gives it away if you ask. Each level after that adds another defence: a stricter system prompt, a filter on your input, a second model checking the output, and so on. By the later levels you are asking for the password spelled backwards, as a poem, or one letter at a time in a story. It works as teaching because of what happens by the end. You watch every defence layer get beaten by people with no special skills, and you understand why prompt injection is described as an unsolved problem rather than a bug.

I have used it with non-technical colleagues and it lands faster than any slide deck. The newer Agent Breaker challenges move the game onto agents that can call tools, which matters more now, since an agent that can send email or query a database is a much bigger prize than a password. There are two caveats I want to be clear about. The first is that Gandalf is a game. It never explains what the defences were, what the right architecture looks like, or how to limit damage when injection succeeds.

Played alone it can even teach the wrong lesson, that security is a contest of clever prompts. The real fix is limiting what the model can do and reach, which you learn from PortSwigger's Web LLM attacks labs or OWASP's LLM Top 10. The second is what happens to your prompts. Lakera has described Gandalf as one of the largest red teaming efforts around, with tens of millions of attack data points, and that data informs its commercial prompt protection product. Check Point agreed to acquire Lakera in September 2025 in a deal reported at around $300 million.

That is not sinister, and it is disclosed, but players should know they are contributing free labour to a commercial dataset. My take: a brilliant hour of learning and the best demo I know for why AI security is hard. Treat it as the hook, not the lesson.

[ final ]

The verdict.

Play it once, ideally with your team, then go and do PortSwigger's free LLM labs to learn what to do about it. Just know you are also doing unpaid red teaming for a security vendor.