Continuous Learning: Rebuff's Attack Embedding Strategy

Rebuff's system was designed to store embeddings of detected prompt injection attempts in a vector database, enabling it to recognize and prevent similar malicious inputs in subsequent interactions.

The top 3

  1. VectorDB: Rebuff's Attack Embedding Repository: Rebuff's continuous learning relies on storing embeddings of previously detected malicious prompts in a VectorDB, allowing it to recognize and prevent similar future attacks.
  2. Canary Token Leakage Drives Attack Learning: When a canary token, secretly embedded in a prompt, leaks in an LLM's response, Rebuff uses this as a signal to capture and store the malicious prompt's embeddings for future defense.
  3. Cosine Similarity: Key to Detecting Known Attacks: Rebuff's vector similarity layer employs cosine similarity to compare new user inputs against its database of known attack embeddings, flagging inputs that exceed a predefined similarity threshold.

Sources

Open the full topic