garak
Garak is an open-source LLM vulnerability scanner backed by NVIDIA and actively maintained by NVIDIA and the community. It is open source under the Apache-2.0 license. It runs on Linux, macOS, and Windows.
Updated
- Pricing
- Open Source
- License
- Apache-2.0
- Platforms
- Linux, macOS, Windows
- Category
- AI Security Tools
What Is garak?
Garak is an open-source LLM vulnerability scanner backed by NVIDIA and actively maintained by NVIDIA and the community. It tests Large Language Models against known attack vectors like prompt injections, jailbreaks, data leakage, toxicity generation, and hallucination prompts.
Use Cases
Automated baseline vulnerability testing of foundation models and private LLM endpoints.
Strengths and Limitations
Strengths
- +Broad library of pre-built attack probes and evaluation detectors.
- +Works with models from OpenAI, Hugging Face, Replicate, AWS Bedrock, LiteLLM, Cohere, Groq, and local endpoints.
- +Writes a JSONL report for every run plus a hit log of attempts that yielded a vulnerability.
Limitations
- -Can incur high API costs during deep probe runs against commercial models.
- -Probe coverage is limited to the installed release; the PyPI package is updated periodically, and newer changes ship first on GitHub.
Defensive Use
Evaluating model guardrails and testing for prompt leakage before deploying public AI assistants.
garak Alternatives
3 tools| Tool | License | Platforms | Pricing |
|---|---|---|---|
| NeMo Guardrails Open-source toolkit from NVIDIA for adding programmable safety guardrails, topic controls, and policy filters to LLM apps. | Apache-2.0 | Linux, macOS, Windows | Open Source |
| Promptfoo CLI evaluation tool and test runner for LLM application security, automated red teaming, and CI/CD security pipeline gating. | MIT | Linux, macOS, Windows | Free / Commercial |
| PyRIT Python automation framework from Microsoft for red teaming generative AI endpoints, agent workflows, and prompt defenses. | MIT | Linux, macOS, Windows | Open Source |
Frequently Asked Questions
What is garak?→
Garak is an open-source LLM vulnerability scanner backed by NVIDIA and actively maintained by NVIDIA and the community. It tests Large Language Models against known attack vectors like prompt injections, jailbreaks, data leakage, toxicity generation, and hallucination prompts.
What is garak used for?→
Automated baseline vulnerability testing of foundation models and private LLM endpoints.
What are the strengths of garak?→
- +Broad library of pre-built attack probes and evaluation detectors.
- +Works with models from OpenAI, Hugging Face, Replicate, AWS Bedrock, LiteLLM, Cohere, Groq, and local endpoints.
- +Writes a JSONL report for every run plus a hit log of attempts that yielded a vulnerability.
What are the limitations of garak?→
- +Can incur high API costs during deep probe runs against commercial models.
- +Probe coverage is limited to the installed release; the PyPI package is updated periodically, and newer changes ship first on GitHub.
How is garak used defensively?→
Evaluating model guardrails and testing for prompt leakage before deploying public AI assistants.