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.

Promptfoo compared with Garak
AspectPromptfooGarak
What it calls itselfOpen-source software for red teaming LLM applicationsAn LLM vulnerability scanner, a Generative AI Red-teaming and Assessment Kit
Test building blocksPlugins: adversarial testers for LLM failure modes such as harmful content, BOLA and BFLAProbes generate interactions with the model; detectors decide whether a failure showed up
What it points atApplications; separate guides for RAG systems, agents and chatbotsGenerators: plugins for model endpoints such as Hugging Face, OpenAI, AWS Bedrock and REST endpoints
LicensePage says open source; license not named on the page openedApache-2.0
Names the failure pattern after launchNo, per the pages openedNo, 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

ai-agent-securityAI Agent Evaluation

Failure patterns behind this comparison

More comparisons