Multi-Layered Protection: Rebuff's Four Pillars of Detection

Rebuff's robust defense-in-depth strategy relies on four key layers: heuristic analysis against known patterns, a dedicated LLM for attack classification, vector similarity search comparing prompts to a database of past attacks, and canary tokens injected into prompts to detect context leakage.

The top 3

  1. Rebuff's Canary: The Unique Post-Injection Tripwire: Rebuff's fourth detection layer injects a secret 'canary token' into the LLM's system prompt; if this token is subsequently leaked in the model's response, it serves as a critical indicator of a successful prompt injection attack.
  2. Three Pre-Response Defenses Against Prompt Attacks: Before the LLM generates a response, Rebuff employs three distinct pre-response checks: heuristic rule-based matching, an LLM-based classifier for prompt analysis, and vector similarity search against known attack embeddings to identify malicious input.
  3. Why Single-Layer Prompt Injection Defense Fails: Rebuff's multi-layered approach highlights that no single detection technique can reliably prevent all prompt injection attacks, necessitating a 'defense-in-depth' strategy where varied methods collectively enhance LLM security.

Sources

Open the full topic