この記事は英語で公開されています。

By UNST33R

Choosing between promptfoo, PyRIT, and garak: an AI red-teaming tool selection guide

Search demand says the question is real: Google Ads Keyword Planner logged 6,600 monthly US searches for promptfoo, 1,300 for 'ai red teaming', and 880 for PyRIT as of November 2026, and the three names get used interchangeably. They cover three different jobs: regression evaluation, adaptive attack orchestration, and vulnerability scanning. Repo-verified specs as of November 25, a decision matrix by workload, wiring all three against one OpenAI-compatible endpoint, and the scan-cost math per model tier.

Practitioners keep arriving at this question through search, and the query mix tells you what they are actually trying to do. Our Google Ads Keyword Planner data for the US market, pulled November 2026, shows 6,600 monthly searches for "promptfoo", 1,300 for "ai red teaming", 880 for "pyrit", 140 for "llm red teaming", and 40 for "garak llm". The "ai red teaming" cluster carries the highest advertiser competition in our keyword set (49 of 100) with top-of-page bids from $10.12 to $45.06, which is the ad market saying this is procurement-adjacent intent, at money behind it.

The problem is that the three tools that dominate those searches get discussed as substitutes. They are complements with overlapping edges. promptfoo is an evaluation harness with red-team modes. PyRIT is an attack orchestration framework. garak is a vulnerability scanner. Picking the wrong one for your job costs you weeks, and we have run all three against our own OpenAI-compatible endpoints long enough to write down the selection rules.

What the repos say, verified November 25

Everything in this table comes from the GitHub API on November 25, 2026, and the projects' own release pages. Stars are a rough health signal, so the release cadence and license columns matter more for a purchase decision than raw popularity.

ToolRepositoryLicenseStars (Nov 25)Latest releaseLanguage, first commit
promptfoopromptfoo/promptfooMIT27,6390.126.0, November 18, 2026TypeScript, April 2023
garakNVIDIA/garakApache-2.010,166v0.17.1, October 16, 2026Python, May 2023
PyRITmicrosoft/PyRITMIT5,057v1.2.1, November 18, 2026Python, December 2023

All three shipped releases within the last six weeks at the time of writing, so none of them is abandonware. All three are permissively licensed for commercial use. The differences that matter are architectural.

The three jobs, in one screen

promptfoo: evaluation-first. The repository's own description is "Test your prompts, agents, and RAGs. Red teaming/pentesting/vulnerability scanning for AI", and its red-team documentation describes plugin-driven adversarial strategies. The core object is a versioned, declarative test config: prompts, cases, providers, assertions, expected behaviors. Runs produce pass/fail results with diffs between runs, a web viewer for reviewing failures, and exit codes your CI can gate on. The provider matrix is its superpower: the same suite executes against multiple endpoints with one config, which is how you get an apples-to-apples comparison between model tiers or between a stock and a reduced-refusal route.

garak: probe-based vulnerability scanning. NVIDIA's scanner, self-described as doing for LLMs roughly what nmap and Metasploit do for hosts. It fires probe packs at a target and reports FAIL rates per probe. The repository's garak/probes directory held 45 probe modules at our November 25 count, covering jailbreaks, prompt injection, data leakage, encoding attacks, hallucination, misinformation, and toxicity. Generator support spans Hugging Face, Replicate, the OpenAI API, AWS Bedrock, LiteLLM, llama.cpp GGUF files, and plain REST, so nearly any target type you own can be scanned. There is also a paper (arXiv 2406.11036) if you need to cite the methodology rather than the tool. Our hands-on runbook for pointing it at a hosted OpenAI-compatible endpoint is here.

PyRIT: adaptive attack orchestration. Microsoft's toolkit for "automated scans, adaptive multi-turn attacks, and a web UI", per its repository description. Where promptfoo asserts against fixed cases and garak fires static probe packs, PyRIT's strength is the attack loop: an attacker model converses with the target across multiple turns, reads the responses, and adapts the next message. Scorers grade transcripts, and a memory layer keeps campaign state so multi-session attacks accumulate context. That makes it the right instrument when the vulnerability you are hunting is a conversation, the exact shape of multi-turn injection chains against agent harnesses, and the wrong instrument for a one-shot compliance sweep you want in CI.

The decision matrix

Your actual jobReach forWhy it wins
First-pass vulnerability profile of a new endpointgarakOne command, 45 probe modules, per-probe FAIL report; target wiring for custom endpoints is documented
Adaptive multi-turn attacks on an agent or chat productPyRITAttacker model adapts per turn; scorer and memory layers built for conversations
Regression gate in CI on prompt or harness changespromptfooDeclarative configs, deterministic seeds, exit codes, run diffs; the pattern from our PyRIT CI gate applies to promptfoo configs too
Side-by-side comparison of two model tiers on your own suitepromptfooThe provider matrix runs one case set against many endpoints
Measuring refusal behavior of a reduced-refusal routeany of them, plus your own judgeProbe corpora supply the prompts; scoring needs your own calibrated judge, because judge choice alone moved a published compliance number by 40 points this week
Continuous monitoring of a live endpointpromptfoo on a schedule, plus canariesDrift detection needs repetition and diffs; pair with endpoint canaries for silent weight swaps

Three worked scenarios

Scenario A: a new uncensored endpoint joins your stack. Run garak first, before anything else. A full default sweep with ten generations per probe prompt gives you a per-probe FAIL profile in one sitting, and the profile is your baseline artifact: file it, and re-scan after any provider-side change. Escalate to PyRIT only for the probe families where the FAIL rate is nonzero and the target is conversational. This is the sequence from our garak against hosted endpoints runbook, and it front-loads breadth.

Scenario B: an agent harness with tool calls is going to production. The risk surface is no longer single-turn. Wire PyRIT's multi-turn attacks against the agent's full loop, tool calls included, and let the attacker model hunt for chains. Once you know the failure patterns, encode them as fixed cases in promptfoo and let CI replay them on every harness commit. The corpus construction method is in our injection regression suite writeup. PyRIT finds the new failure; promptfoo makes sure it stays fixed.

Scenario C: you are choosing which model tier should back a security workflow. This is the provider matrix job. Write your eval as one promptfoo config with two or three provider entries, run it, and read the per-case diffs. When the quality column is close, the cost column breaks the tie, and the cost math is below.

One endpoint, three tools

All three speak the OpenAI-compatible chat protocol, so the same credentials and base URL drive all of them. Against a catalog endpoint this is a three-line change per tool.

promptfoo, provider entry:

targets:
  - id: openai:chat:unst33r-deepseek
    label: unst33r-deepseek-direct
    config:
      apiBaseUrl: https://api.unst33r.si/v1
      apiKeyEnvar: UNST33R_API_KEY
      temperature: 0

PyRIT, target construction:

from pyrit.prompt_target import LiteLLMChatTarget

target = LiteLLMChatTarget(
    model_name="openai/unst33r-flash",
    api_key="sk-...",
    endpoint="https://api.unst33r.si/v1",
)

garak, use the OpenAICompatible generator with OPENAICOMPATIBLE_API_KEY in the environment and the model name as the target; the exact flags are in the garak wiring guide. The Python SDK equivalent for anything custom is the base URL switch, and the config generator emits the environment blocks.

The practical consequence: switching your scan target between a local GGUF build and a hosted tier is a config edit, so nothing stops you from scanning both and diffing the profiles, which is the cheapest credibility check available when a provider's claims outrun their documentation.

Scan-cost math per tier

Scans are token volume, so the tier you point the scanner at dominates the bill. Catalog prices, per million tokens:

TierBaseInput / outputWhere it fits in scanning
unst33r-deepseekDeepSeek V4.1 Flash 1017 abliterated$0.15 / $0.5625Bulk probe volume, corpus sweeps, judge passes
unst33r-flashGLM 5.3 Flash uncensored$0.50 / $1.50Mid-volume sweeps, faster interactive triage
unst33r-kimiKimi K3.1 Pro abliterated$1.875 / $3.75Long-context campaigns, vision inputs
unst33r-proGLM 5.3 uncensored$2.50 / $4.50Final report synthesis, hardest generations

Working the numbers as estimates, a probe generation of roughly 400 input and 100 output tokens costs about $0.12 per 1,000 generations on the deepseek tier and about $0.35 on the flash tier. A garak default sweep, ten generations per probe prompt across the catalog, is therefore single-digit dollars on deepseek for a moderate target and scales linearly from there. A promptfoo suite of 100 fixed cases is cents. A PyRIT multi-turn session costs more per session because both sides generate, but you run sessions by the dozen rather than the thousand, and pacing with max_requests_per_minute keeps bursts inside rate ceilings.

The tier assignment that survives contact with real budgets: bulk generation and judge passes on the cheap tier, interactive triage on the mid tier, synthesis of the final report on the large tier. All four tiers support tool calling, which matters because attack loops and judge loops both want to call back into your own tooling rather than emit text you re-parse. Everything above is estimates from list prices at our pricing page; your own corpus sizes decide the real number.

Failure modes we hit with each

Each tool has a specific way to waste your time, and knowing them in advance is half the selection.

With garak, the aggregate FAIL rate is noise until you read it per probe. Probe families overlap, detectors disagree, and a single flaky detector can paint a target red on a rerun. Read the per-probe detail, rerun the red families, and only then treat the aggregate as signal. The failure taxonomy from our garak scan guide covers the details.

With PyRIT, the framework surface moves between releases. Version 1.x renamed and reshaped orchestrator and scorer interfaces more than once, so pin the exact version in your requirements file and re-pin deliberately, with a re-run of a frozen seed case set as the acceptance test. The multi-model router notes in our PyRIT writeup were written against a specific version for exactly this reason.

With promptfoo, the trap is config sprawl. Red-team plugins generate cases dynamically, and two configs that look identical can silently differ in plugin versions or seeds. Keep the config in version control, pin plugin versions, set explicit seeds where determinism matters, and treat any result you cannot reproduce from the committed config as void.

The selection checklist

  1. Name the job before the tool: profile, attack, or regression. If you cannot say which in one sentence, you are choosing by GitHub stars.
  2. If the target is conversational or agentic, multi-turn support decides it, and that means PyRIT for discovery work.
  3. If the deliverable is a CI gate, exit codes and run diffs decide it, which points at promptfoo.
  4. If the deliverable is a one-page vulnerability profile of an endpoint, probe breadth decides it, which points at garak.
  5. Plan for all three anyway: the discovery-to-regression pipeline (garak, then PyRIT, then promptfoo) is cheaper than defending a single-tool choice.
  6. Budget by tier: bulk volume on the cheapest capable model, synthesis on the strongest one, and the price list before you write the proposal.
  7. Own your judge. Every scoring pipeline in this stack embeds a judge, and published compliance numbers this week varied by 40 points on identical responses purely from judge configuration.
  8. Keep every campaign inside your authorization boundary; the acceptable-use policy governs these workflows the same as everything else on this site.

The short version: garak tells you what the endpoint is vulnerable to, PyRIT tells you whether your product can be talked into it, and promptfoo tells you whether it regressed since Tuesday. Run all three against the same OpenAI-compatible base URL and you get one pipeline with three lenses, at a scan bill measured in single-digit dollars on the right tier.