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.

The top 3

  1. Pre-LLM Defenses: Speed vs. Accuracy Showdown: Rebuff's three pre-LLM layers offer a trade-off: Heuristic detection is the fastest but least comprehensive, LLM-based classification provides high-quality detection with higher latency, and vector similarity balances both by learning from known attacks.
  2. Rebuff's Self-Hardening Edge: Vector Similarity's Role: The Vector Similarity pillar enables Rebuff to 'self-harden' by storing embeddings of past prompt injection attacks in a database. This allows it to recognize and prevent semantically similar future attacks, even with varied wording.
  3. LLM-Based Detection: The Secondary AI Guarding Prompts: Rebuff's LLM-based classification pillar utilizes a dedicated secondary LLM to analyze incoming user inputs, effectively detecting most explicit and paraphrased prompt injection attempts, including some non-English ones.

Sources

Open the full topic