Zenaique

Match PyRIT and garak to the red teaming jobs they are actually good at

Match pairs·Medium·4.0 · 0·~2 min·Asked atMoveworksSalesforceUnity
Attempt it

Drag each answer to line up with its matching prompt

PyRIT (Microsoft)

garak, pre-built probes, deterministic invocations, structured pass/fail reports.

garak (NVIDIA)

PyRIT, its attacker LLM and conversation state machinery is the differentiator.

Best fit: scripted regression suite in CI

Vulnerability scanner with a library of pre-built probes, encoded prompt attacks, malware generation, training data extraction, hallucination probes, run as a CLI sweep.

Best fit: simulated adaptive attacker over a multi-turn agent

Orchestration framework for automated red team agents, multi-turn attacks, attacker LLMs, scorers, and target adapters across Azure / OpenAI / Anthropic endpoints.

TL;DR

PyRIT (Microsoft) is an orchestration framework for adaptive multi-turn attacker-LLM red-teaming; garak (NVIDIA) is a scanner with a fixed probe library, use garak in CI regression, use PyRIT for quarterly

Memory aid
Sign in to see the mnemonic that makes this stick.
Easy to grasp

Think of two tools in a security team's kit. The first is like an antivirus scanner, it has a big library of known threats and you run it on a schedule to check that none of them slip through. That is garak. The second is like a hired penetration tester who actually thinks during the test, tries one trick, watches your reaction, tries a different angle, and chains attacks together. That is PyRIT. You need both. The scanner catches the regressions you would never notice; the tester finds the surprises that no static list could have predicted.

Concept explanation~2 min read

Everything you need to truly understand this topic: intuition, mechanics, step by step explanation, code, formulas, and worked example. Click to expand.

Two open-source red-team toolchains dominate the 2026 LLM safety landscape, Microsoft's PyRIT and NVIDIA's garak. They are often discussed as alternatives, but they are not. They are complementary, and a production red-team programme uses both. The strategic question is which one belongs at which point in your release lifecycle.

This card describes each tool's design intent, the operational pattern that makes it effective, the feedback loop between them that production teams build, and the gaps in both that 2026 red-team programmes still have to fill with custom work.

garak, probe-library vulnerability scanner

garak is built around a library of pre-built probes, each targeting a known attack class. The probe library is broad and growing, encoding attacks (base64, leetspeak, ROT13, Unicode confusables), DAN-family persona jailbreaks, refusal suppression, prefix injection, latent injection, training-data extraction probes, malware-generation, glitch-token attacks, hallucination probes, and several other categories. Each probe is deterministic, has a structured pass-fail scorer, and can be invoked from the command line against any HTTP-accessible target.

Design intent

Breadth and determinism. garak is optimised to run a large set of static probes quickly and produce structured pass-fail outcomes. The probe set is shared across targets, so results are comparable across models and over time.

Operational pattern

Stand up garak in CI against a staging endpoint. Configure relevant probe sets, typically encoding, jailbreaks, injection, exfiltration, hallucination, based on your application's threat model. Set per-probe pass thresholds informed by your acceptable attack-success rate. Make the report a release-gate artefact: any probe whose success rate climbed above threshold is a release-blocker pending investigation.

What garak does well

Regression coverage at scale. Once a known attack pattern is encoded as a probe, it stays in CI and you never regress on it silently. The metrics (per-probe attack-success rate) are interpretable to non-experts and easy to dashboard.

What garak does poorly

Novel-attack discovery. The probe library only catches patterns someone already knew about. A sophisticated multi-turn social-engineering attack that requires the attacker to adapt to the target's responses is not in any static probe.

PyRIT, orchestration framework for adaptive attacks
The feedback loop, where the programme adds up to more than the parts
Gaps in 2026 and alternatives
Sign in to unlock the full deep dive.

Situations where this technique stops working.

Sign in to see when this approach fails.

2–4 min · Everything important, quickly.

Sign in to see the quick scan of the deep dive.

Real products, models, and research that use this idea.

  • Microsoft red-team teams publish PyRIT scenarios that simulate adaptive attacker behaviour against Azure OpenAI deployments; these have driven several public CVE-like advisories on prompt-injection patterns.
  • NVIDIA's garak is bundled into NeMo Guardrails CI examples and is increasingly the default open-source regression scanner for OSS LLM application stacks.
Sign in to see more production examples.

What an interviewer would ask next. Try answering before peeking at the approach.

QHow would you turn a PyRIT-discovered incident into a garak probe?
A

Encode the static prompt pattern (or templated set) as a garak probe; add a deterministic scorer (regex on response, classifier judge); add to the CI sweep; track success rate over releases.

2 more follow-ups an interviewer would ask next. Sign in to reveal them.

Red flags & common mistakes

The phrases that signal junior thinking. Click to expand.

Most common mistake

Treating PyRIT and garak as alternatives to each other; they cover different parts of the red-team programme and the production answer is to use both with clear roles.

Sign in to see all red flags and common mistakes.

60 second bullets to scan on the way to the call.

  • What garak is (probe-library vulnerability scanner) and where it fits (CI regression)

  • What PyRIT is (orchestration framework for adaptive attacks) and where it fits (scenario exercises)

Sign in to unlock the revision sheet.

Primary sources. Browse if you want the original framing.

Similar questions

Same topic, related formats. Practice these next.

4 curated
Next question
Pick the strongest reason…
MCQ·Medium