Skip to content

NVIDIA garak

garak is a free, open-source command-line scanner that checks whether an LLM or LLM-backed app can be made to fail, much as nmap or Metasploit do for networks. It sends static, dynamic and adaptive probes for prompt injection, jailbreaks, data leakage, hallucination and toxicity, runs detectors over several generations per prompt, and writes a pass/fail rate per probe plus a JSONL log of every prompt and response. NVIDIA backs the project and hosts it in its GitHub org under the Apache 2.0 license.

Updated 2026-11-21 · garak alternatives · garak.ai

What garak does

Fires adversarial prompts at an LLM or LLM app and reports which attacks got through.

Probes a target for hallucination, data leakage, prompt injection, misinformation, toxicity generation and jailbreaks

raw.githubusercontent.com

Combines static, dynamic and adaptive probes; the atkgen probe uses a red-team LLM that reacts to the target to try to elicit toxic output (prototype)

raw.githubusercontent.com

Runs detectors on multiple generations per prompt and reports a pass/fail rate per probe and detector

raw.githubusercontent.com

Writes a JSONL report per run with the model parameters, all prompts sent, all responses and evaluation scores, so an audit trail exists

raw.githubusercontent.com

Tests for package hallucination, malware-code generation, XSS and data exfiltration, training-data replay, encoding-based injection and DAN-style jailbreaks via built-in probe modules

raw.githubusercontent.com

Extensible plugin architecture: users write their own probes, detectors, generators and harnesses

raw.githubusercontent.com

Latest release (v0.17.1) adds a hit@k attack success rate metric in terminal output and the report digest

api.github.com

Controls for AI systems

Features as NVIDIA names them.

Good fit

AppSec and ML platform engineers who want a scriptable, no-cost scan of a model or endpoint (Hugging Face, OpenAI, Bedrock, NIM, local gguf or any REST API) before release, with a full prompt-and-response audit trail.

  • Free under Apache 2.0, with no paid tier to outgrow
  • Broad probe library: promptinject, DAN, encoding, GCG suffixes, glitch tokens, training-data replay, package hallucination
  • Reaches most model hosts, from OpenAI and Bedrock to llama.cpp and arbitrary REST endpoints, so scans can stay on your own hardware
  • Per-run JSONL report keeps every prompt, response and score; releases ship roughly monthly (v0.17.1 in October 2026)

Look elsewhere if

Teams that need a GUI, a hosted dashboard, runtime blocking or a support SLA should look at a commercial platform, since garak is CLI-only with community and email support.

  • Scores are not normalised and cannot be compared across probes
  • Heavy install: about 9 GB of dependencies before any local model, and logs up to 60 MB per run
  • Command-line only, with no GUI, hosted service or dashboard
  • The adaptive atkgen attacker is a prototype with one GPT-2-based model, and detectors rely on keywords or classifiers

garak pricing

NVIDIA does not publish a price. Sold free and open source.

Free tool under the Apache 2.0 license

Coverage, deployment and compliance

What it watches, where it runs, and what it connects to.

Covers

LLMs and LLM-backed apps over RESTPrompt injection and jailbreaksEncoding and Unicode perturbation attacksData leakage and training-data replayHallucination, incl. package hallucinationToxicity and misinformation output

Runs as

Open-source CLI (pip, source, Conda)Linux and macOSLocal models on your own hardwareNo hosted SaaS

Integrations

Hugging Face HubOpenAI APIAWS BedrockLiteLLMNVIDIA NIMReplicateCohereGroqllama.cpp

Documented limits

  • Scores are not on a normalised scale and cannot be compared between probes raw.githubusercontent.com
  • Heavy install: about 9 GB of dependencies on a plain OS, plus the model if run locally; logs up to 60 MB per run raw.githubusercontent.com
  • Command-line only; the README and FAQ describe no GUI, hosted service or dashboard raw.githubusercontent.com
  • Focus is security weaknesses, not social-bias assessment; detectors are keyword or classifier based raw.githubusercontent.com
  • Support is community plus an email address; no commercial support or SLA is published garak.ai

garak changes since 2025

Launches, deals and renames, newest first.

Alternatives to garak

Compare all 6 side by side

Should you shortlist garak?

garak is the obvious first scanner for a team that can live in a terminal: it costs nothing, covers the common prompt-level attacks and leaves an auditable log. Use it in pre-release testing and CI, and budget for a separate runtime guardrail and for someone to interpret probe-by-probe results, since the tool will not rank risk for you.

Sources (6)
  1. raw.githubusercontent.com/NVIDIA/garak/main/README.md
  2. raw.githubusercontent.com/NVIDIA/garak/main/FAQ.md
  3. api.github.com/repos/NVIDIA/garak/releases/latest
  4. garak.ai/
  5. api.github.com/repos/NVIDIA/garak
  6. api.github.com/repos/NVIDIA/garak/releases

Spotted something out of date? [email protected]