aigameatlas.com
Submit Game Sign in

Gandalf

Lakera · 2023

Gandalf is Lakera's free prompt-injection game: talk an AI wizard into revealing his secret password as each of the eight levels adds stronger defenses.

Play or get the game
Your rating
No ratings yet

How Gandalf uses AI

Every level of Gandalf starts with the same goal: the wizard knows a password and has been told not to share it. You type anything you like, from polite questions to role-play and riddles, and the language model replies in character. Get the password, enter it, and the next Gandalf arrives with tougher instructions and extra safeguards around what he is allowed to say.

Lakera, an AI security company, built the game after an internal hackathon, and it became one of the most widely played introductions to prompt injection, the attack that turns a chatbot against its own rules. Teachers use it to show students how language models can be manipulated, and security teams use it for training. The prompts players submit also feed Lakera’s research: its Gandalf the Red paper released a dataset of 279,000 prompt attacks collected through the game.

Gandalf runs in the browser with no sign-up for the main levels and is free. Clearing all eight levels takes at least twenty minutes and often much longer, and you can come back over several days. A newer mode, Agent Breaker, applies the same idea to AI agents and apps.

AI features

Sources

Gandalf: quick answers

How does Gandalf use AI?

Gandalf is Lakera's free prompt-injection game: talk an AI wizard into revealing his secret password as each of the eight levels adds stronger defenses. Its AI features: AI opponents / adaptive enemies, Generative NPC dialogue, Live-generated content.

What AI model does Gandalf use?

Gandalf uses GPT, according to the developer or published technical details.

Who made Gandalf and when was it released?

Gandalf is made by Lakera and was released in 2023.

What platforms is Gandalf on?

Gandalf is available on Web browser. Price: Free.