Canary Token Leakage Drives Attack Learning

When a canary token, secretly embedded in a prompt, leaks in an LLM's response, Rebuff uses this as a signal to capture and store the malicious prompt's embeddings for future defense.

The top 3

  1. Top Mechanism: How LLM Canary Tokens Unmask Prompt Injections: Canary tokens are unique, unguessable strings embedded within an LLM's system prompt or context; their unexpected appearance in the model's output serves as a high-fidelity signal of a prompt injection attack.
  2. Cybersecurity Roots: The Original Canary Token Concept: The concept of canary tokens originated from traditional cybersecurity deception, inspired by coal mine canaries, with early documented use in the 1980s by Clifford Stoll to detect network intrusions.
  3. Detection vs. Prevention: Canary Tokens' Role in Attack Learning: Canary tokens primarily serve as a detection mechanism, not a preventative one; they signal that a prompt injection has occurred, allowing systems like Rebuff to learn from these incidents by storing attack embeddings for future defense.

Sources

Open the full topic