Promptfoo vs Garak for Red Teaming LLM Apps
Updated
Short answer: Both tools run adversarial tests against an LLM and score the output. Per their own pages, Garak describes itself as a vulnerability scanner that targets model endpoints with probes and detectors, while Promptfoo describes plugin-based red teaming for applications. Neither page, as opened, says it covers failures after launch.
| Aspect | Promptfoo | Garak |
|---|---|---|
| What it calls itself | Open-source software for red teaming LLM applications | An LLM vulnerability scanner, a Generative AI Red-teaming and Assessment Kit |
| Test building blocks | Plugins: adversarial testers for LLM failure modes such as harmful content, BOLA and BFLA | Probes generate interactions with the model; detectors decide whether a failure showed up |
| What it points at | Applications; separate guides for RAG systems, agents and chatbots | Generators: plugins for model endpoints such as Hugging Face, OpenAI, AWS Bedrock and REST endpoints |
| License | Page says open source; license not named on the page opened | Apache-2.0 |
| Names the failure pattern after launch | No, per the pages opened | No, per the pages opened |
The short answer
Promptfoo and Garak both send adversarial inputs to a language model and check the replies. In the pages we opened on 2026-10-22, the main difference is the target: Garak describes scanning model endpoints, while Promptfoo describes testing the application built around a model.
How each one tests
The Promptfoo red teaming page says it breaks LLM failure modes into adversarial testers called plugins, with examples such as harmful content, broken object-level authorization (BOLA), broken function-level authorization (BFLA) and competitor endorsement. It links to separate guides for RAG systems, agents and chatbots. The Garak repository describes probes that generate interactions with a model and detectors that decide whether a failure occurred, with probe families such as encoding, dan and promptinject. It lists failures it checks for, including hallucination, data leakage, prompt injection, toxicity and jailbreaks.
Setup and license
Garak installs from PyPI with python -m pip install -U garak, runs from the command line against a named target, and writes a log, a JSONL report and a hit log. The repository lists the license as Apache-2.0. The Promptfoo page we opened calls Promptfoo open source but does not name the license, and it points to a separate Quickstart for setup, which we did not open. We did not run either tool and compared no speed, cost or detection rates.
What neither page does
Both tools test before release or on a schedule. Neither page we opened says it watches live conversations, so a blind spot in observability after launch is a separate job. A passing scan also does not show that an agent with too many permissions is safe (excessive agency), or that private data stays private (data leakage) under real traffic.
Which to pick
Pick by what you need to test. If your question is about a model endpoint, Garak’s description fits. If it is about a full application with retrieval or tools, Promptfoo’s description fits. For where pre-release testing stops, see evals vs production monitoring and AI agent security failures.
Sources opened 2026-10-22 (read through fetch summaries): the two pages linked above. Vendor pages change; check them before deciding. Promptfoo and Garak are trademarks of their owners and are used here only to name the products.
Related topics
Failure patterns behind this comparison
Prompt Injection
Malicious Input Hijacks Agent Behavior
Data Leakage
Agent Exposes Sensitive Information
Excessive Agency
Agent Takes Actions Beyond Expected Scope
Blind Spots in Observability
Critical Failures Occur in Unmonitored Agent Code Paths
More comparisons
- AI Agent Memory vs Context Window: What Is the Difference?
- Retries vs Fallbacks for AI Agents: When to Use Each
- AI Agent vs Chatbot: How Their Failures Differ
- Braintrust vs Langfuse for Evals and Tracing Agents
- Containment Rate vs Resolution Rate for AI Support Agents
- Does Temperature 0 Make LLM Output Deterministic?
- AI Guardrails vs Evals: What Each One Catches
- Human-in-the-Loop vs Human-on-the-Loop for AI Agents
- Lakera Guard vs Guardrails AI: LLM Guardrails Compared
- Langfuse vs LangSmith for Tracing AI Agents
- Prompt Injection vs Jailbreak: Differences for AI Agents
- RAG vs Fine-Tuning for Reducing AI Hallucinations
- Single-Agent vs Multi-Agent Systems: Failure Modes Compared