Rebuff
Read the two badges separately: the first is whether this page is backed by evidence, the second is whether the product is still maintained. An archived product can have complete evidence; complete evidence does not mean the product is active.
30-second check: should it make your shortlist?
Upstream archivedProtect AI's open-source self-hardening prompt-injection detector: heuristics, a…
Local / self-hosted · Local app
Open licence
Read the original licence before commercial useNot checked · Not checked
These four cards help you rule things out, not decide for you. The real differences are in the eight questions and sources below.
Information not confirmed
- No official body text obtained on the day: docs.rebuff.ai and playground.rebuff.ai both returned no response, only the filenames inside the repository's docs directory were readable
- Whether LLM providers other than OpenAI can be used
- The concrete heuristic rule set and how far it can be customised ("User Defined Detection Strategies" is still unchecked on the official roadmap)
- Vector-store capacity, retention period and cleanup mechanism
- Data-processing and privacy terms, and whether any telemetry exists
- The real capability gap between the Python SDK and the TS SDK (badges show two test suites; not verified item by item)
- Mainland direct reachability and filing status (recorded as unknown in the cn block)
Protect AI's open-source self-hardening prompt-injection detector: heuristics, a dedicated LLM judge, a historical attack-vector library and canary-leak rechecks stacked together; one leak stores that embedding for the next detection. It is an SDK embedded in your app and a self-hostable service, not a gateway that runs your model.
When to use it, when not to
Fit: teams adding an injection alert to their own product input and doing leak self-checks along the way, and research reproductions that accumulate attack samples into a vector library. Not fit: production pipelines needing maintenance promises and compliance terms (the repo is archived), or fully offline deployment; the official roadmap's Local-only mode is still unchecked, and README SDK setup already needs OpenAI and Pinecone credentials.
China availability domestic / direct access / CAC filing · snapshot 2026-11-06
- Origin
- foreign-made Protect AI (GitHub organisation "Protect AI", a US-based company); not a domestic product.
- Direct access
- direct unknown GitHub and PyPI reachability were checked on the general network today; the docs domain returned no response. No mainland direct-access test was run.
- CAC filing
- filing unknown:The CAC public registry was not searched on the verification day, so filing status has no official basis; the product does not serve the mainland public.
Filing status is quoted from the CAC public registry (updated batch by batch; this site copies the number and does not interpret it). "Direct access" is this site's own reachability measurement from a mainland network, not a vendor promise. GitHub-hosted sites fluctuated on the measurement day — the note says so.
8 questions, one table
8 questions, each comparable item by item with its peers.
- Model & openness
One of the four layers the README declares is literally "use a dedicated LLM to analyse incoming prompts", so the model is an explicit configuration item:
RebuffSdk(openai_apikey, pinecone_apikey, pinecone_index, openai_model), where openai_model is optional and defaults to gpt-3.5-turbo. On the vector side the official text gives Pinecone, with Chroma allowed in the self-hosting section. LLM providers other than OpenAI are not stated officially.- Where it runs
Both paths sit on your side: the
pip install rebuffSDK runs inside your application process, and the self-hosted Playground/API server is a Node app — the README has you work inserver/, runnpm installthennpm run dev, and it comes up athttp://localhost:3000, after you stand up the SQL and vector databases via Supabase / Pinecone. No official text was reachable today for the hosted playground domain.- Local files
The object of processing in the official text is always prompt text and completion text; no ability to read workspace files, directories or attachments is declared. What the self-hosted form needs is database and vector-store connectivity rather than access to your repository. File-level capability is not stated officially.
- Tasks after shutdown
The SDK form lives and dies with the host application; the self-hosted server form is a resident service backed by Supabase and a vector database. Task queues, scheduled re-checks and continuation after shutdown are not stated officially.
- Tools & extensions
The four declared layers are Heuristics, LLM-based detection, VectorDB and Canary tokens; the SDK surface is three entry points —
detect_injection,add_canary_word,is_canaryword_leaked. The official roadmap checks off the JavaScript/TypeScript SDK and leaves "Python SDK parity" unchecked. MCP or other extension points are not stated officially.- Context & memory
Its "memory" is the vector store: the official description is embedding previous attacks in the VectorDB to recognise similar ones, and when a canary leaks, writing the embedding of that input prompt back — the roadmap calls this attack signature learning. Store capacity, retention period and cleanup policy are not stated officially.
- Permissions & limits
Licensed Apache-2.0 (see the license field). Data flow is determined by configuration: the official example requires an OpenAI key and a Pinecone key, meaning the text under inspection is handed to the external services you configure; no privacy or data-processing terms were found in the official text reached today. The self-hosting environment list also includes MASTER_API_KEY, MASTER_CREDIT_AMOUNT and BILLING_RATE_INT_10K, i.e. the server ships with a credit and per-request deduction concept (the README states an integer conversion rule for it). Compliance certifications and training use are not stated officially.
- Best for
Fits research and engineering experiments that add an injection alert plus canary-leak self-check inside your own app and accumulate attack samples in a vector store. Does not fit production pipelines that need a maintenance commitment or explicit data-processing terms — the repository is archived — nor fully offline deployments: "Local-only mode" is still an unchecked roadmap item and the documented SDK needs OpenAI and Pinecone credentials.
Licence and terms of use
Apache-2.0 (the official LICENSE file is the full Apache License Version 2.0 text; the PyPI classifier says the same). Open source, but the documented usage requires bring-your-own credentials: the SDK is initialised with an OpenAI key and a Pinecone key plus index name, and the self-hosted server additionally needs Supabase — the library is free, the services and keys are on you.
Top misconception
- 把四层防御理解成保障承诺。README 的 Disclaimer 自述仍是原型,不能提供完全防护
- 以为可以纯本地跑:Local-only mode 至今是官方路线图未勾选项,检测层默认要外部 LLM
- 以为 Python SDK 与 TS SDK 对等。官方路线图把 Python 对等项列为未完成
Evidence sources
Checked 2026-11-06,Content updated 2026-11-06。This is the date of the entry, not a claim that every field was rechecked that day.
| Type | Name | Link |
|---|---|---|
| changelog | Rebuff · repository commit history (last commit 2024-01-25; no standalone changelog page) | https://github.com/protectai/rebuff/commits/main |
| changelog | PyPI · rebuff (0.1.1, released 2024-01-20; release records stand in for a changelog) | https://pypi.org/project/rebuff/ |
| repo | Rebuff · repository README (four detection layers, SDK usage and self-hosting configuration) | https://github.com/protectai/rebuff |
| docs | Rebuff · repository docs directory (how-it-works / quickstart / self-hosting) | https://github.com/protectai/rebuff/tree/main/docs |
| docs | Rebuff · official LICENSE (full Apache-2.0 text) | https://github.com/protectai/rebuff/blob/main/LICENSE |
Test notes
This site has not run end-to-end tests: the SDK was not installed, the self-hosted server was not started, and no canary-leak sample was constructed. Conclusions come only from the official README, the LICENSE, the file listing of the repository's docs directory and PyPI / GitHub metadata (all 2026-11-06). The documentation-site domain returned no response that day, so docs.rebuff.ai content is not included.
Capability surface as declared officially
The README (fetched 2026-11-06) describes the four layers as: Heuristics filter suspicious input before it reaches the LLM; LLM-based detection uses a dedicated LLM to analyse prompts and identify possible attacks; VectorDB stores embeddings of previous attacks to block similar ones; Canary tokens are added to prompts to detect leakage, which lets the framework store the embedding of the incoming prompt and prevent future attacks.
The Disclaimer, original wording:
Rebuff is still a prototype and cannot provide 100% protection against prompt injection attacks!
This sentence is the first thing to read when choosing: it is the vendor's own qualitative statement about its capability boundary. This site quotes no detection or bypass figures.
Deployment prerequisites (official self-hosting terms)
The self-hosting section requires Supabase, OpenAI and a vector database (Pinecone, or Chroma per the docs) set up first; then a .env.local in server/ carrying OPENAI_API_KEY, MASTER_API_KEY, BILLING_RATE_INT_10K, MASTER_CREDIT_AMOUNT, the Supabase anon key and URL, the Pinecone key / environment / index name, SUPABASE_SERVICE_KEY and REBUFF_API; afterwards npm install and npm run dev, which serves at http://localhost:3000. The README explains BILLING_RATE_INT_10K as the credit amount deducted per request and states an integer conversion rule for it; this site does not carry the figure.
Archive status
The repository's archived flag is true; the last commit is 2024-01-25, the last push 2024-08-07, and PyPI stops at 0.1.1 (2024-01-20). The entry therefore records lifecycle archived with confidence capped at partial: what is described here is the capability surface as it froze, not a statement that it currently works.
Related entries
- LLM GuardSame line: LLM Guard (in guardrails and content filtering); this entry states only what its own official sources support.
- CanaryScanSame line: CanaryScan (in guardrails and content filtering); this entry states only what its own official sources support.
- NeMo GuardrailsSame line: NeMo Guardrails (in guardrails and content filtering); this entry states only what its own official sources support.
- LangChainOther layer · Frameworks & runtimes
Same-category peers
Look at these three before reading further
Selected by overlap in jobs, not ranked. Compare where it runs, licence and status first; if one of the three fails, skip it.
| Object | Where | Licence | Evidence / status | What it is for |
|---|---|---|---|---|
| Arize Phoenix | Local / self-hosted | Commercial terms | 8 questions checked Active | Phoenix is an open-licensed observability and evaluation platform that r |
| Langfuse | Local + cloud | Open licence | 8 questions checked Active | Langfuse is an open-source observability and evaluation platform. Its co |
| LiteLLM Proxy (AI Gateway) | Local + cloud | Open licence | 8 questions checked Active | It is a self-deployed unified entry point, with governance on keys and b |
Same vendor
More from Protect AI
One vendor’s products are often split across categories. This list puts them together so you do not have to assemble them across five sites.
This page is generated from the ai-handbook data layer (CC BY 4.0).
For the judging criteria and method notes, see METHODOLOGY.md.