Rebuff's Four Core Defense Layers Against Prompt Attacks
Rebuff pioneered LLM prompt injection defense with a multi-layered approach, combining heuristics, a dedicated LLM for attack analysis, a VectorDB of known attacks, and canary tokens to detect data leakage and self-harden over time.
The top 3
- Rebuff's Unique Post-Response Tripwire: The canary token layer stands out by injecting a secret string into the prompt and checking if the LLM leaks it in its response, acting as a crucial post-injection success detector even if initial checks miss the attack.
- Layer Effectiveness: Pre-LLM vs. Post-LLM Detection: Rebuff's heuristics, LLM-based detection, and vector similarity layers perform pre-response checks to filter malicious input before it reaches the LLM, while the canary token layer serves as a final post-response validation to detect successful information leakage.
- How Rebuff Self-Hardens Defenses Over Time: Rebuff features a "self-hardening" mechanism primarily through its VectorDB layer, which stores embeddings of detected attacks to continuously learn and improve its ability to recognize and prevent similar prompt injection attempts in the future.
Sources
Open the full topic