← all repositories

protectai/rebuff

Self-hardening prompt injection detector that protects AI applications from malicious prompt attacks.

1.5k stars TypeScript LLMOps · Eval
rebuff
Velocity · 7d
+1.3
★ / day
Trend
steady
star history

Rebuff is a security framework designed to protect AI applications from prompt injection attacks through multiple defensive layers. It uses heuristics to filter malicious input before it reaches the LLM, employs a dedicated LLM to analyze incoming prompts and identify potential attacks, stores embeddings of previous attacks in a vector database to recognize and prevent similar threats, and uses canary tokens to detect prompt leakages. Available as TypeScript and Python SDKs with self-hosting options.

heatdrop uses Google Analytics to see which pages get read — nothing else. Your call. How we handle data.