garak
Open-source LLM vulnerability scanner backed by NVIDIA — probes models and LLM apps for jailbreaks, prompt injection, data leakage and more
garak (Generative AI Red-teaming & Assessment Kit) is an open-source command-line scanner that checks whether an LLM or an LLM-backed application can be made to fail in ways you don't want — often described as "nmap for LLMs". It is backed by NVIDIA, with community contributions. garak probes for hallucination, data leakage, prompt injection, misinformation, toxicity generation, jailbreaks and other weaknesses, combining static, dynamic and adaptive probes. A run wires together generators (connectors to the target), probes (attack prompts), detectors (spot failures), a harness (orchestrates the run) and evaluators (score results), then writes a JSONL report plus a hit log of attacks that succeeded. Targets include Hugging Face models, OpenAI, AWS Bedrock, LiteLLM, Ollama, NVIDIA NIM endpoints, OpenAI-compatible servers, NeMo Guardrails configurations and almost any REST endpoint. garak is an assessment tool, not a runtime filter: it shows where a system breaks, it does not block traffic. Best for: security and ML teams red-teaming a model, chatbot or guardrail setup before release, and re-scanning after changes. Works well with: NeMo Guardrails · Ollama · LiteLLM · vLLM
When to use
- Red-teaming a model or chatbot for jailbreaks, prompt injection and data leakage before release
- Measuring how much a guardrail or system-prompt change actually reduces attack success
- Re-running the same probe set after model, prompt or config changes to catch security regressions
When not to use
- Runtime protection that blocks bad inputs or outputs in production (use NeMo Guardrails or Guardrails AI)
- Security testing of non-LLM software such as web apps, networks or infrastructure
- You want a hosted, point-and-click red-teaming service — garak is a CLI you run yourself
At a glance
- Pricing
- Free
- Deployment
- Local
- Difficulty
- Intermediate
- License
- Apache-2.0
- Languages
- python
- Use cases
- llm red teaming, vulnerability scanning, jailbreak testing, security audit
- Last verified
- 2026-10-30 (official documentation)
Works well with
Alternatives in this category
See all 4 tools in Security & Guardrails – Protecting AI Applications →