Guide

Prompt injection detection tools: how they differ and where they stop

  • By AI Defense Stack team
  • Published
  • Last reviewed

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.

Prompt injection detection tools compared by type, deployment, pricing model, OWASP risks and Coverage Score
Tool Type Deployment Pricing model OWASP risks Coverage Score
Llama Protections Meta Open, custom license
  • Library
  • Self-hosted
Free
  • LLM01 Prompt Injection
  • LLM05 Improper Output Handling
  • LLM06 Excessive Agency
Coverage Score 56 out of 100
Lakera Guard Check Point (Lakera) Now Check Point AI Guardrails Commercial
  • SaaS
  • Self-hosted
  • API
Not published
  • LLM01 Prompt Injection
  • LLM02 Sensitive Information Disclosure
  • LLM06 Excessive Agency
  • LLM07 System Prompt Leakage
Coverage Score 57 out of 100
Azure AI Content Safety Microsoft Renamed Commercial
  • API
  • Cloud-native
  • Managed service
Freemium
  • LLM01 Prompt Injection
  • LLM06 Excessive Agency
  • LLM09 Misinformation
Coverage Score 55 out of 100
Model Armor Google Cloud Commercial
  • API
  • Cloud-native
  • Managed service
Usage-based
  • LLM01 Prompt Injection
  • LLM02 Sensitive Information Disclosure
Coverage Score 44 out of 100
Bedrock Guardrails Amazon Web Services Commercial
  • API
  • Cloud-native
  • Managed service
Usage-based
  • LLM01 Prompt Injection
  • LLM02 Sensitive Information Disclosure
  • LLM05 Improper Output Handling
  • LLM09 Misinformation
Coverage Score 60 out of 100
Pangea AI Guard CrowdStrike (Pangea) Commercial
  • SaaS
  • Self-hosted
  • API
Not published
  • LLM01 Prompt Injection
  • LLM02 Sensitive Information Disclosure
  • LLM06 Excessive Agency
  • LLM08 Vector and Embedding Weaknesses
Coverage Score 48 out of 100
Prompt Security SentinelOne (Prompt Security) Commercial
  • Browser extension
  • API
Not published
  • LLM01 Prompt Injection
  • LLM02 Sensitive Information Disclosure
  • LLM06 Excessive Agency
Coverage Score 29 out of 100
Lasso Security Lasso Security Commercial
  • API
  • Self-hosted
Not published
  • LLM01 Prompt Injection
  • LLM02 Sensitive Information Disclosure
Coverage Score 39 out of 100
Radware LLM Firewall Radware Commercial
  • SaaS
Not published
  • LLM01 Prompt Injection
  • LLM02 Sensitive Information Disclosure
  • LLM05 Improper Output Handling
  • LLM10 Unbounded Consumption
Coverage Score 41 out of 100
Spikee Reversec Open sourceApache-2.0
  • CLI
  • Self-hosted
Free
  • LLM01 Prompt Injection
  • LLM02 Sensitive Information Disclosure
  • LLM07 System Prompt Leakage
Coverage Score 69 out of 100
Promptfoo OpenAI (Promptfoo) Open sourceMIT
  • CLI
  • Library
  • Self-hosted
  • SaaS
  • On-prem
Freemium
  • LLM01 Prompt Injection
  • LLM02 Sensitive Information Disclosure
  • LLM09 Misinformation
Coverage Score 80 out of 100
b3 benchmark Check Point (Lakera) and UK AI Security Institute Open sourceMIT
  • CLI
  • Library
Free
  • LLM01 Prompt Injection
  • LLM02 Sensitive Information Disclosure
  • LLM06 Excessive Agency
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 Llama Protections

Meta · open suite of LLM safety models and tools

Open, custom license

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.

Azure AI Content Safety

Microsoft · cloud API for harmful content and prompt attacks

Commercial Freemium Renamed

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 Model Armor

Google Cloud · managed screening service for LLM traffic

Commercial

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 Bedrock Guardrails

Amazon Web Services · managed AWS guardrail service for generative AI

Commercial

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.

Lakera Guard

Check Point (Lakera) · hosted guardrail API for prompt and data risks

Commercial Now Check Point AI Guardrails

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.

Pangea AI Guard

CrowdStrike (Pangea) · hosted guardrail API for prompts and responses

Commercial

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.

Prompt Security

SentinelOne (Prompt Security) · AI firewall and usage control platform

Commercial

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

Lasso Security · runtime security layer for LLM apps and agents

Commercial

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 LLM Firewall

Radware · inline prompt-level LLM firewall

Commercial

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.

Spikee

Reversec · open-source prompt injection testing toolkit

Open sourceApache-2.0

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.

Promptfoo

OpenAI (Promptfoo) · open-source LLM eval and red teaming tool

Open sourceMIT Freemium

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

Open sourceMIT

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:

  1. Constrain model behavior. Define the model’s role and limits in the system prompt.
  2. Define and validate output formats. Check responses with deterministic code instead of trusting free text, which also covers improper output handling.
  3. Filter inputs and outputs. The tools in this guide sit here.
  4. Enforce least privilege. Keep API tokens and function calls in application code and give the model only the access it needs.
  5. Require human approval for high-risk actions. A person confirms anything privileged, such as sending data out or changing records.
  6. Segregate and label external content. Mark untrusted content so it carries less weight in the prompt.
  7. Run adversarial testing. Repeat it whenever the prompt, the model or the tools change.

How to choose

The checklist is our analysis.

  1. 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.
  2. Ask which inputs it inspects. User prompts only, or also retrieved documents, tool output and images.
  3. Check license and pricing model. The table shows both, linked to the vendor page that states each.
  4. Check maintenance. Tool pages show the latest release and any ownership change.
  5. 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.

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

Sources & last reviewed

Last reviewed . We compile from the vendors' own public pages and repositories and we do not run the products. Source links open in a new tab. Found a mistake? Report a correction.

Drafted with AI assistance; facts checked against primary sources on October 21, 2026.

Standards and references (2 sources)
Meta Llama Protections (6 sources)
Lakera Guard (10 sources)
Azure AI Content Safety (7 sources)
Google Cloud Model Armor (4 sources)
Amazon Bedrock Guardrails (4 sources)
Pangea AI Guard (6 sources)
Prompt Security (4 sources)
Lasso Security (7 sources)
Radware LLM Firewall (4 sources)
Spikee (6 sources)
Promptfoo (14 sources)
b3: Backbone Breaker Benchmark (7 sources)