Guide
Prompt injection detection tools: how they differ and where they stop
Executive summary
- What it is
- Prompt injection detectors inspect prompts, retrieved content or model output for text that tries to override an application's instructions. They come as classifier models you host, cloud provider APIs and hosted firewalls, with open-source kits to test them.
- The risk
- An instruction planted in a web page, file or tool result can turn a chatbot or agent against its own rules, leaking data or triggering actions. A detector that only sees what the user types misses these indirect attacks.
- What to buy or do
- Deploy a detector that inspects every input the model reads, not only the user prompt. Pair it with least privilege and human approval for risky actions, and run an attack dataset against it before launch and after each change.
Short answer
A web page or PDF that your assistant reads can carry instructions that override your system prompt, and a prompt injection detector is the control that looks for them before the model acts. None is complete: OWASP says it is unclear whether fool-proof prevention exists, so pair a detector with least privilege, output validation and human approval for risky actions. Pick by where the detector runs (a classifier you host, a cloud API or a hosted firewall) and by whether it inspects retrieved content and tool output as well as the user prompt.
Direct and indirect injection
OWASP defines a direct injection as a user’s prompt changing the model’s behavior, on purpose or by accident, and an indirect injection as the model accepting input from outside sources, such as websites or files, that carries instructions. It adds that multimodal models raise the risk, because instructions can hide in an image next to harmless text. The full mitigation list is on our page for OWASP LLM01 prompt injection, and the glossary has entries for prompt injection and indirect prompt injection.
The split decides which tool fits. A detector that only sees what the user types will miss an instruction buried in a retrieved document. Ask each vendor which inputs the check sees: the user prompt, retrieved context, tool output, or all three.
Detectors belong to the runtime guardrails layer for live AI traffic in our AI Security Layers model. What an agent may do once an injection gets through is decided in the agent and tool access layer.
Plan for a bypass
OWASP describes its prompt injection mitigations as ways to reduce impact. Assume some attacks will reach the model, and limit what the model can do when they do.
How detection approaches differ
This is our explanation of common approaches, not a claim about how any one product works. Each tool page links to the vendor page that describes its method.
- A classifier model, often called a safety classifier, labels each prompt as benign or an attack. It is fast and can be self-hosted, but it only knows the attacks it was trained on.
- Similarity search and pattern rules compare a prompt with a library of known attacks or phrases. They are easy to read and edit, and easy to evade with new wording.
- An LLM judge is a second model that reads the input and decides whether it contains an attack. It copes better with odd phrasing, costs more per request and can itself be targeted.
- Canary tokens are hidden markers placed in a prompt; if one shows up in the output, prompt content has leaked. They catch leakage after the fact, so they complement the other methods.
Most products combine several. For your choice, the useful questions are which traffic they inspect, how you tune them and where the data goes.
Comparison table
We kept tools from our guardrails and red teaming categories whose files record a sourced capability for prompt injection detection or testing, as our methodology describes. We do not run the products, so the groups below sort by shape and are not a ranking.
| Tool | Type | Deployment | Pricing model | OWASP risks | Coverage Score |
|---|---|---|---|---|---|
| Llama Protections Meta | Open, custom license |
| Free |
| Coverage Score 56 out of 100 |
| Lakera Guard Check Point (Lakera) Now Check Point AI Guardrails | Commercial |
| Not published |
| Coverage Score 57 out of 100 |
| Azure AI Content Safety Microsoft Renamed | Commercial |
| Freemium |
| Coverage Score 55 out of 100 |
| Model Armor Google Cloud | Commercial |
| Usage-based |
| Coverage Score 44 out of 100 |
| Bedrock Guardrails Amazon Web Services | Commercial |
| Usage-based |
| Coverage Score 60 out of 100 |
| Pangea AI Guard CrowdStrike (Pangea) | Commercial |
| Not published |
| Coverage Score 48 out of 100 |
| Prompt Security SentinelOne (Prompt Security) | Commercial |
| Not published |
| Coverage Score 29 out of 100 |
| Lasso Security Lasso Security | Commercial |
| Not published |
| Coverage Score 39 out of 100 |
| Radware LLM Firewall Radware | Commercial |
| Not published |
| Coverage Score 41 out of 100 |
| Spikee Reversec | Open sourceApache-2.0 |
| Free |
| Coverage Score 69 out of 100 |
| Promptfoo OpenAI (Promptfoo) | Open sourceMIT |
| Freemium |
| Coverage Score 80 out of 100 |
| b3 benchmark Check Point (Lakera) and UK AI Security Institute | Open sourceMIT |
| Free |
| Coverage Score 53 out of 100 |
Coverage Score measures what each vendor documents publicly, within one category. What this measures. Pricing models are as stated on each vendor's page; check the vendor for current pricing.
Classifier models you host
Meta · open suite of LLM safety models and tools
The Meta Llama protections suite detects prompt injections and jailbreaks with the Prompt Guard 2 classifiers Source, checked October 21, 2026: dev.meta.ai (opens in a new tab) . Its license is a Custom license Source, checked October 21, 2026: github.com (opens in a new tab) , not a standard open-source license, so read the terms before you build on it. Best for teams that want open-weight safety classifiers and an agent guardrail framework on their own infrastructure.
Cloud provider guardrail APIs
These run next to your model endpoint and are the shortest path if you already build on that provider.
Microsoft · cloud API for harmful content and prompt attacks
Azure AI Content Safety detects user prompt attacks that try to bypass system instructions or safety training Source, checked October 21, 2026: learn.microsoft.com (opens in a new tab) . It is closed source Source, checked October 21, 2026: learn.microsoft.com (opens in a new tab) . Best for teams on Azure or Foundry that want managed content moderation and prompt attack detection.
Google Cloud · managed screening service for LLM traffic
Google Cloud Model Armor detects prompt injection attempts that try to bypass system guardrails Source, checked October 21, 2026: docs.cloud.google.com (opens in a new tab) . It is closed source Source, checked October 21, 2026: docs.cloud.google.com (opens in a new tab) . Best for teams on Google Cloud that want managed prompt and response screening in front of Vertex AI or their own model endpoints.
Amazon Web Services · managed AWS guardrail service for generative AI
Amazon Bedrock Guardrails helps protect against prompt injection through the prompt attack content filter Source, checked October 21, 2026: aws.amazon.com (opens in a new tab) . It is closed source Source, checked October 21, 2026: aws.amazon.com (opens in a new tab) . Best for AWS teams that want managed filters for Bedrock models, or for other models through an API call.
Hosted firewalls and platforms
The vendor runs these in your request path. Check where prompts are processed before you send production traffic.
Check Point (Lakera) · hosted guardrail API for prompt and data risks
Lakera Guard detects direct and indirect prompt injection Source, checked October 21, 2026: docs.lakera.ai (opens in a new tab) . It is closed source Source, checked October 21, 2026: docs.lakera.ai (opens in a new tab) , and its status is renamed Source, checked October 21, 2026: docs.lakera.ai (opens in a new tab) because the vendor documentation now uses the name Check Point AI Guardrails. On ownership, Check Point completed its acquisition of Lakera in the fourth quarter of 2025. Source, checked October 21, 2026: checkpoint.com (opens in a new tab) Best for teams that want a hosted screening API, with a self-hosted option for stricter environments.
CrowdStrike (Pangea) · hosted guardrail API for prompts and responses
Pangea AI Guard blocks prompt injection with a Malicious Prompt detector Source, checked October 21, 2026: pangea.cloud (opens in a new tab) . On ownership, CrowdStrike's fiscal 2026 Form 10-K states that it acquired 100% of the equity interest of Pangea Cyber Corporation on September 26, 2025. Source, checked October 21, 2026: sec.gov (opens in a new tab) Best for teams that want a hosted guardrail API with configurable recipes.
SentinelOne (Prompt Security) · AI firewall and usage control platform
Prompt Security blocks adversarial prompts with a real-time AI firewall Source, checked October 21, 2026: sentinelone.com (opens in a new tab) . It is closed source Source, checked October 21, 2026: prompt.security (opens in a new tab) . On ownership, SentinelOne reported in a Form 8-K dated September 8, 2025 that its acquisition of Prompt Security was completed on September 5, 2025. Source, checked October 21, 2026: sec.gov (opens in a new tab) Best for security teams that already run SentinelOne and want AI usage controls and agent governance in the same console.
Lasso Security · runtime security layer for LLM apps and agents
Lasso Security flags direct and indirect prompt injection in AI gateway traffic Source, checked October 21, 2026: lasso.security (opens in a new tab) . It is closed source Source, checked October 21, 2026: github.com (opens in a new tab) . Best for teams that already route LLM traffic through an AI gateway and want inline detection and blocking without code changes.
Radware · inline prompt-level LLM firewall
Radware LLM Firewall inspects prompts for prompt injection and resource abuse before they reach the LLM Source, checked October 21, 2026: jp.radware.com (opens in a new tab) , and it blocks jailbreak attempts at the prompt level Source, checked October 21, 2026: jp.radware.com (opens in a new tab) . It is closed source Source, checked October 21, 2026: jp.radware.com (opens in a new tab) . Best for teams that want a vendor-run firewall that screens prompts before they reach the model.
Testing your detector
Measure a detector on your own traffic before you rely on it. OWASP lists adversarial testing and attack simulations among its prompt injection mitigations. The tools below generate that evidence, and the testing and red teaming layer lists more.
Reversec · open-source prompt injection testing toolkit
Spikee tests LLMs, guardrails and applications for resistance to prompt injection Source, checked October 21, 2026: github.com (opens in a new tab) . It is released under the Apache-2.0 license Source, checked October 21, 2026: github.com (opens in a new tab) . Best for security teams that want a free toolkit to build and run prompt injection datasets against an LLM app or a guardrail.
OpenAI (Promptfoo) · open-source LLM eval and red teaming tool
Promptfoo scans for injections among more than 50 vulnerability types Source, checked October 21, 2026: promptfoo.dev (opens in a new tab) , and it runs evals on pull requests through a documented GitHub Action Source, checked October 21, 2026: promptfoo.dev (opens in a new tab) . It is released under the MIT license Source, checked October 21, 2026: github.com (opens in a new tab) . On ownership, Promptfoo announced on March 9, 2026 that it had agreed to be acquired by OpenAI. OpenAI's developer documentation now says Promptfoo is part of OpenAI; we found no published closing date. Source, checked October 21, 2026: promptfoo.dev (opens in a new tab) Best for developer teams that want one open-source CLI for prompt evals and red teaming.
b3: Backbone Breaker Benchmark
Check Point (Lakera) and UK AI Security Institute · agent backbone LLM security benchmark
The b3 benchmark provides crowdsourced attacks from the Gandalf Agent Breaker game, each placed in an AI application context Source, checked October 21, 2026: github.com (opens in a new tab) . Its attack types include direct and indirect instruction override Source, checked October 21, 2026: github.com (opens in a new tab) . It is released under the MIT license Source, checked October 21, 2026: github.com (opens in a new tab) . Best for teams choosing the model behind an agent, who want to compare how backbone models hold up against indirect attacks.
For wider attack tooling, see open-source AI red teaming tools, and for the question-and-answer version of this topic, prompt injection: questions and answers.
Archived and experimental projects
LLM Guard is archived Source, checked October 21, 2026: github.com (opens in a new tab) and Rebuff is archived Source, checked October 21, 2026: api.github.com (opens in a new tab) , so we do not recommend starting a new project on either. Vigil is listed as an experimental prompt injection scanner, so check its repository activity before you depend on it. Rebuff’s design is still worth reading for how layered detection and canary tokens fit together. The LLM Guard, Rebuff and Vigil pages list the facts we checked.
Design controls beyond detection
OWASP’s mitigation list reaches past filters, and each item limits the damage when a detector misses:
- Constrain model behavior. Define the model’s role and limits in the system prompt.
- Define and validate output formats. Check responses with deterministic code instead of trusting free text, which also covers improper output handling.
- Filter inputs and outputs. The tools in this guide sit here.
- Enforce least privilege. Keep API tokens and function calls in application code and give the model only the access it needs.
- Require human approval for high-risk actions. A person confirms anything privileged, such as sending data out or changing records.
- Segregate and label external content. Mark untrusted content so it carries less weight in the prompt.
- Run adversarial testing. Repeat it whenever the prompt, the model or the tools change.
How to choose
The checklist is our analysis.
- Decide where the detector must run. If prompts cannot leave your environment, shortlist classifier models and self-hosted options. If you build on one cloud, start with that provider’s API.
- Ask which inputs it inspects. User prompts only, or also retrieved documents, tool output and images.
- Check license and pricing model. The table shows both, linked to the vendor page that states each.
- Check maintenance. Tool pages show the latest release and any ownership change.
- Measure on your own traffic. Run an attack dataset and a sample of normal requests, and record what the detector blocks and misses.
Choose a model or library you host if
Our analysis- Prompts and documents must stay inside your environment.
- You want to inspect and tune the detector yourself.
- Your team can run and monitor another component.
See Llama Protections, Spikee.
Choose a managed API or firewall if
Our analysis- You already build on that provider or want one vendor to run the control.
- You would rather set policy than operate a service.
- You accept sending traffic to a hosted API.
For the wider set of runtime controls, read our guide to the best LLM guardrails.
Frequently asked questions
Can a prompt injection detector stop every attack?
No. OWASP says it is unclear whether fool-proof prevention of prompt injection exists, because of how models work. A detector lowers the number of attacks that get through, and you still need least privilege, output validation and human approval for high-risk actions.
What is the difference between direct and indirect prompt injection?
In a direct injection, the user's own input changes the model's behavior. In an indirect injection, the model reads outside content such as a web page or a file that carries instructions. Indirect attacks are harder to spot because the user may never see the hidden text.
Is a prompt injection detector the same as a jailbreak detector?
Not always. Several products document both in one filter, and others list them as separate checks. Read each tool page for the capability the vendor documents, and see our glossary entry on prompt injection for how the terms relate.
How do I test a prompt injection detector before I rely on it?
Run attack datasets against it and measure what slips through and what it blocks wrongly on your own traffic. Open-source kits such as Spikee and Promptfoo exist for this, and OWASP lists regular adversarial testing among its mitigations.
Does the Coverage Score tell me which detector is most accurate?
No. The Coverage Score measures how much a vendor documents publicly. We do not run these products, so it says nothing about detection accuracy, false positives or latency.
Key facts you can cite
-
Llama Protections is released under the Custom license.
Source Source, checked October 21, 2026: github.com (opens in a new tab) Checked
-
Check Point completed its acquisition of Lakera in the fourth quarter of 2025.
Source Source, checked October 21, 2026: checkpoint.com (opens in a new tab) Checked
-
Microsoft's Azure blog banner says Azure AI Content Safety is now Content Safety in Foundry Control Plane, and the Azure product page uses the new name. Microsoft Learn docs still say Azure AI Content Safety.
Source Source, checked October 21, 2026: azure.microsoft.com (opens in a new tab) Checked
-
Model Armor is offered as: API, Cloud-native, Managed service.
Source Source, checked October 21, 2026: docs.cloud.google.com (opens in a new tab) Checked
-
Bedrock Guardrails is offered as: API, Cloud-native, Managed service.
Source Source, checked October 21, 2026: docs.aws.amazon.com (opens in a new tab) Checked
Sources & last reviewed
Standards and references (2 sources)
Meta Llama Protections (6 sources)
- meta-llama.github.io/PurpleLlama/LlamaFirewall checked
- api.github.com/repos/meta-llama/PurpleLlama checked
- github.com/meta-llama/PurpleLlama/tree/main/LlamaFirewall checked
- github.com/meta-llama/PurpleLlama checked
- github.com/meta-llama/PurpleLlama/blob/main/LICENSE checked
- dev.meta.ai/llama/llama-protections checked
Lakera Guard (10 sources)
- checkpoint.com/press-releases/check-point-software-reports-2025-thi... checked
- checkpoint.com/press-releases/check-point-software-reports-fourth-q... checked
- docs.lakera.ai/docs/quickstart checked
- docs.lakera.ai/guard checked
- docs.lakera.ai/docs/platform checked
- docs.lakera.ai/docs/defenses checked
- docs.lakera.ai/docs/integration checked
- lakera.ai/lakera-guard checked
- docs.lakera.ai checked
- docs.lakera.ai/api-reference checked
Azure AI Content Safety (7 sources)
- learn.microsoft.com/en-us/azure/ai-services/content-safety/overview checked
- azure.microsoft.com/en-us/blog/enhance-ai-security-with-azure-promp... checked
- azure.microsoft.com/en-us/products/ai-services/ai-content-safety checked
- learn.microsoft.com/en-us/azure/ai-services/content-safety/quicksta... checked
- azure.microsoft.com/en-us/pricing/details/cognitive-services/conten... checked
- learn.microsoft.com/en-us/azure/ai-services/content-safety/concepts... checked
- learn.microsoft.com/en-us/rest/api/contentsafety/text-operations/de... checked
Google Cloud Model Armor (4 sources)
Amazon Bedrock Guardrails (4 sources)
Pangea AI Guard (6 sources)
Prompt Security (4 sources)
Lasso Security (7 sources)
- lasso.security checked
- lasso.security/resources/lasso-security-announces-future-of-ai-secu... checked
- github.com/lasso-security checked
- lasso.security/use-cases/ai-gateway-security checked
- lasso.security/platform/ai-agents-security checked
- lasso.security/platform/discovery-ai-bom checked
- lasso.security/information-security-policy checked
Radware LLM Firewall (4 sources)
Spikee (6 sources)
- github.com/ReversecLabs/spikee checked
- reversec.com/articles/introducing-reversec-shaping-the-future-of-of... checked
- api.github.com/repos/ReversecLabs/spikee checked
- github.com/ReversecLabs/spikee/blob/main/LICENSE.txt checked
- spikee.ai checked
- github.com/ReversecLabs/spikee/blob/main/docs/README.md checked
Promptfoo (14 sources)
- developers.openai.com/api/docs/guides/promptfoo-codex checked
- promptfoo.dev/blog/promptfoo-joining-openai checked
- api.github.com/repos/promptfoo/promptfoo checked
- promptfoo.dev/pricing checked
- github.com/promptfoo/promptfoo/blob/main/LICENSE checked
- promptfoo.dev/docs/red-team/quickstart checked
- promptfoo.dev/docs/red-team/configuration checked
- promptfoo.dev/docs/red-team/owasp-llm-top-10 checked
- promptfoo.dev/docs/integrations/github-action checked
- github.com/promptfoo/promptfoo checked
- promptfoo.dev/docs/intro checked
- promptfoo.dev checked
- github.com/promptfoo/promptfoo/blob/main/SECURITY.md checked
- api.github.com/repos/promptfoo/promptfoo/releases checked
b3: Backbone Breaker Benchmark (7 sources)
- arxiv.org/html/2510.22620v2 checked
- checkpoint.com/press-releases/check-point-software-reports-fourth-q... checked
- github.com/UKGovernmentBEIS/inspect_evals/tree/main/src/inspect_eva... checked
- github.com/UKGovernmentBEIS/inspect_evals/blob/main/LICENSE checked
- huggingface.co/datasets/Lakera/b3-agent-security-benchmark-weak checked
- arxiv.org/abs/2510.22620 checked
- aisi.gov.uk/research/breaking-agent-backbones-evaluating-the-securi... checked