garak
NVIDIA-maintained scanner that probes LLMs for prompt injection, jailbreaks, and data leakage.
About
Modeled in spirit on nmap, garak scans language model deployments for the ways they fail: prompt injection, jailbreaks, training data leakage, toxicity, package hallucination, and dozens of other weakness classes. Probes generate adversarial interactions, detectors judge the responses, and generators adapt the harness to targets ranging from OpenAI and Hugging Face APIs to locally hosted weights, so the same scan runs against a hosted endpoint or an offline local model. Each run produces a detailed report of which probes succeeded, giving security teams a repeatable baseline rather than anecdotes. NVIDIA maintains the project, which began as an independent research tool by Leon Derczynski and now sits at roughly 8,600 GitHub stars as the standard open source LLM vulnerability scanner. It installs with pip install garak, runs from the command line on Python, needs no GPU unless the target model runs locally, and is licensed Apache-2.0, making it an easy addition to red-team pipelines and pre-deployment checks.
Should you use garak?
Pick it when
Use garak when a security or ML team wants a repeatable, nmap-style baseline scan of an LLM endpoint or local model for prompt injection, jailbreaks, leakage, and toxicity before deployment, from the CLI or inside a CI pipeline.
Look elsewhere when
Skip it if you need multi-turn attack campaigns against a full application, where PyRIT goes deeper, or want quality evals and red-teaming in one declarative config, where promptfoo fits. It finds weaknesses but does not block them at runtime.
Alternatives to garak
- PyRIT
Richer multi-turn attack strategies like Crescendo plus auditable campaign memory, but more framework to learn than garak's single scan command.
- Promptfoo
Combines quality evals and red-teaming in declarative test configs with CI integration, broader for app testing, less of a dedicated scanner.
- Guardrails AI
Validates model outputs at runtime to stop problems in production, where garak only tests for weaknesses before you ship.
- LlamaFirewall
Meta's layered guardrail scans prompts, plans, and generated code as they happen, a defense to deploy rather than a scanner to test with.
Reviews (0)
Leave a Review
No reviews yet. Be the first to review!
Details
- Category
- AI Frameworks & Libraries
- Price
- Free
- Platform
- Local/Desktop
- Difficulty
- Easy (2/5)
- License
- Apache-2.0
- Added
- Jul 29, 2026