Prompt-injection CTF

A capture-the-flag challenge for the course 192.144 Privacy-Enhancing Technologies: can a prompt and a filter keep a language model from leaking a secret?

How it works

  1. Defend (team): write a defense prompt and, optionally, an LLM output filter that keep the model from revealing a secret, while it still answers normal questions. Test it in chats with your own test secret, then submit one defense for your team.
  2. Attack (team): chat with the other teams' submitted defenses and try to extract their secret. You have 10 guesses per secret.
  3. Score: the leaderboard ranks defenses that hold and attacks that succeed with few messages.

Current phase: preparation.

Practicalities

Based on the platform of the LLM CTF at IEEE SaTML 2024 by ETH Zurich SPY Lab and collaborators (code, MIT license; paper arXiv:2406.07954).