Canary Tokens: Triggering Adaptive Defense
Rebuff employs canary tokens within prompts; if a token leaks, it signifies a successful injection, prompting the framework to record embeddings of that malicious prompt in its VectorDB to prevent future similar attacks.
The top 3
- Who Pioneered Canary Tokens: Deception's Cyber Roots: The concept of deception-based threat detection, foundational to canary tokens, traces back to Clifford Stoll's 1986 discovery of a network intruder, famously documented in 'The Cuckoo's Egg' (1989). Modern Canarytokens, turning this old concept into a novel detection system, were later developed by Thinkst Canary.
- Top 3 Canary Token Designs for LLM Prompt Attacks: Effective canary tokens for LLM prompt injection defense are typically unique, high-entropy strings or phrases embedded in system prompts or context windows. The top designs include cryptographic random tokens, unique marker strings, or specific keywords that are unlikely to appear in legitimate output, signaling a prompt leakage if detected.
- Canary Tokens vs. Traditional IDS: Adaptive Defense Advantage: Unlike traditional Intrusion Detection Systems (IDS) that often rely on static rules, canary tokens offer a deterministic, alert-on-access model, providing high-confidence signals of compromise. For LLMs, this immediate detection can trigger adaptive defenses, such as storing attack embeddings in a vector database for future prevention, making them superior for dynamic threat environments.
Sources
Open the full topic