AIToday
Large Language ModelsAI Business & IndustryQiita 機械学習Published: Oct 25, 2026, 19:01 JST

garak 0.17.1 vs PyRIT: 85% attack success on mock app, 0% when guarded

Send on LINE
garak 0.17.1 vs PyRIT: 85% attack success on mock app, 0% when guarded

3 Key Points

  1. What happened

    With garak 0.17.1, two encoding probes each sent 256 prompts to a vulnerable mock app; the DecodeApprox detector reported an 84.77% attack success rate for Base64 and 85.16% for Hex.

  2. Why it matters

    The guarded version passed all 256 prompts, illustrating that reported attack success rates are shaped by the target app's design as much as by the probing tool.

Not sure about something? Ask the AI

Questions and answers are published on this page.

Summaries like this, every morning.

Context & Analysis

garak and PyRIT answer different questions rather than competing products. garak, which its 2024 paper compares to the network scanner Nmap, is built to sweep many prebuilt probes across a target and surface known weakness patterns; the author counted 42 probe modules and 191 individual probes in garak 0.17.1. PyRIT, by contrast, is assembled from parts — targets, converters, scorers, and memory — so a tester can encode a specific objective and success condition for their own application.

The Base64 exercise makes the distinction concrete. In garak, the same encoding probes are fired at every target, so the resulting percentages serve as a rough pointer to where weaknesses cluster. In PyRIT, the author wrote a mock app with a plaintext input guardrail, a model that can read Base64, and an optional output filter, then checked whether a discount code could be extracted. Only the Base64 path succeeded, and only when the output filter was off — showing that bypassing an input check and getting the model to comply are two separate conditions that must both hold.

The author also notes that PyRIT 1.x ships scenarios mirroring garak's probe styles, but these are reimplemented with PyRIT's own converters rather than loading garak itself, and garak still offers more probe variety. The practical recommendation is sequential: use garak to locate weakness types, then write PyRIT tests tied to the specific application and keep them as regression checks.

FAQ
What is the difference between garak and PyRIT?
garak is a scanner that runs many prebuilt probes to find known weakness patterns, while PyRIT is a framework for composing attacks, converters, and scorers to test whether a specific objective can be achieved.
Which tool is better for regression testing after a fix?
PyRIT (or a custom evaluation) is better suited for regression testing because the same objective and path can be re-run repeatedly.
Qiita 機械学習Read Original Article
Send on LINE

AI news that matters for your work, delivered every morning.

Pick your industry and the AI tools you use, and get news related to your work every day.

Free · 30 seconds with Google · unsubscribe anytimeWhat is AIToday? →

Ask AI

Ask AI anything about this article. The AI reads this article, earlier AIToday articles, and Wikipedia, and cites its sources. Q&As are published on this page for other readers too.

Questions and answers are published on this page.

Related Articles

Next articleWellSkate AI automates blog and social posting for small firms