← All repos

rebuff

LLM Prompt Injection Detector

llmllmopsprompt-engineeringprompt-injectionpromptssecurity
Browse cluster: Claude AI Agent Frameworks & MCP Tools
345commits
12contributors
7languages

Tech stack & purpose

Rebuff is a self-hardening prompt injection detector designed to protect AI applications from prompt injection attacks through a multi-layered defense system. The project offers four layers of defense: heuristics to filter potentially malicious input, LLM-based detection using a dedicated language model to analyze prompts, a vector database to store and recognize attack embeddings, and canary tokens to detect prompt leakages. Rebuff is built with Python and JavaScript/TypeScript SDKs, uses OpenAI's language models for detection, and integrates with vector databases like Pinecone and Chroma as well as Supabase for data storage; the frontend is built with Next.js and Tailwind CSS.

Community & reference links

Languages

TypeScript
75.3%
Python
17.2%
CSS
4.8%
Jupyter Notebook
1.6%
JavaScript
0.6%
Makefile
0.3%
Shell
0.2%

Contributors