protectai/rebuff
LLM Prompt Injection Detector observed · 2026-08-28
Health v2 · maintenance only
10/100
- Activity 0
- Release rhythm 8
- Longevity 87
Flags: archived
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-03. Adoption (stars, forks) is never an input.
- gap_med: n/a
- age_days: 1227
- days_rel: n/a
- days_push: 756
- n_releases_24m: 0
Adoption not part of the score
1521 stars · 144 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded
Rebuff is a self-hardening prompt injection detector that protects LLM-powered applications through multi-layered defenses: heuristics, a dedicated LLM-based detector, vector database attack signatures, and canary token leak detection. It ships as a Python SDK (pip install rebuff) and a JavaScript/TypeScript SDK for Node and the browser, with a self-hostable server.
Use cases
- detect prompt injection attacks in user input before sending it to an LLM
- protect my AI chatbot from jailbreak and injection attempts
- detect when an LLM leaks its system prompt instructions
- store embeddings of past attacks to block similar future attacks
- add canary tokens to prompts to detect instruction leakage
- add a security layer to my LLM application pipeline
When to choose
- you are building an LLM application that accepts untrusted user input and need layered prompt injection defense
- you want canary-token-based detection of system prompt leakage
- you want a detector that learns from previously seen attacks via a vector database
When to avoid
- you need guaranteed protection - the project itself warns it is a prototype that cannot block all attacks
- you need a fully local/offline solution - local-only mode is not yet implemented
- you need Python/TypeScript feature parity - the Python SDK still lacks full parity with the TS SDK
Facets
library · maturity experimental
security llm-inference prompt-engineering sdk security large-language-models developer-tools python browser cross-platform prompt-injection llm-security canary-tokens vector-database self-hardening ai-agents nodejs
2 sources
- readme: https://github.com/protectai/rebuff · fetched 2026-08-28 · a66f2d1dc2f5
- registry_npm: https://registry.npmjs.org/rebuff · fetched 2026-08-29 · 870b6069e790
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| protectai/rebuff | main | 10 |
For agents
markdown · JSON · MCP: product_card(name="protectai/rebuff")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem