Rebuff's Multi-Layered Strategy: Pre- and Post-LLM Protection
Rebuff's defense architecture uniquely combines pre-response mechanisms—heuristics, LLM-based classification, and vector similarity—with a post-response canary token check, forming a robust, multi-layered approach to mitigate prompt injection risks.
The top 3
- Rebuff's Three Pre-LLM Defense Pillars: Before an LLM generates a response, Rebuff employs heuristic detection against known patterns, an LLM-based classifier to analyze input, and vector similarity search against past attacks to preemptively flag malicious prompts.
- Canary Token's Post-LLM Leakage Detection: Rebuff's post-LLM defense injects a hidden, unique canary token into the system prompt. If this token appears in the LLM's response, it signals a successful prompt injection, indicating context leakage.
- Rebuff's Four Layers for Robust Prompt Security: Rebuff integrates four distinct defense layers: heuristic detection, LLM-based classification, vector similarity search, and canary token leakage detection, offering a comprehensive open-source approach to prompt injection defense.
Sources
Open the full topic