Canary's Critical Role in Rebuff's Four-Layer Defense
The Canary token functions as the fourth and final layer in Rebuff's multi-faceted defense, specifically designed to catch prompt leakage post-attack, complementing earlier preventative measures like heuristic checks, LLM-based detection, and vector database comparisons.
The top 3
- Canary's Edge: Post-Injection Tripwire vs. Pre-Checks: Unlike Rebuff's initial three layers (heuristics, LLM-based, vector similarity) that attempt to block injections pre-response, the Canary token acts as a unique post-response "tripwire," detecting successful context leakage after the LLM has processed the prompt.
- Canary's Top Defense Against Context Leakage: Rebuff's Canary token excels at reliably catching successful prompt extraction attacks and instances where the LLM is induced to output its raw system context verbatim, providing a crucial last line of defense.
- The "Canary in a Coal Mine" Origin Story: The term "canary" in security, including Rebuff's use, originates from miners who used actual canaries as early warning systems for toxic gases, signaling a critical, otherwise undetectable, breach in system integrity.
Sources
Open the full topic