Rebuff's Pioneering Four-Layer Defense for LLMs
Rebuff established a foundational multi-layered approach to prompt injection, integrating heuristics, LLM-based classification, vector similarity search against known attacks, and innovative canary tokens for robust protection.
The top 3
- Rebuff's Four Pillars: Key Mechanisms Against Prompt Attacks: Rebuff employs a four-layered defense: Heuristics filter malicious input patterns, a dedicated LLM-based detector analyzes prompts for attacks, a VectorDB identifies similar known attacks, and Canary Tokens detect successful data leakage post-response.
- Canary Tokens: Rebuff's Unique Post-Response Leakage Detection: Rebuff's most distinctive layer, canary tokens, involves injecting an invisible, unique string into the LLM's prompt. If this token appears in the model's output, it signals a successful prompt injection or data leakage, acting as a crucial 'tripwire.'
- Rebuff's Open-Source 'Defense-in-Depth' Philosophy: As an open-source framework, Rebuff advocates a 'defense-in-depth' strategy, combining multiple detection layers because no single solution can fully prevent prompt injection attacks. This approach aims to provide robust protection, despite inherent limitations in fully securing LLMs.
Sources
Open the full topic