garak
Scans AI chatbots and LLM apps for jailbreaks, prompt injection and data leaks.
First useful result
What you can finish for free
Scan a free model that runs on your computer (GPT-2 from Hugging Face) for the DAN 11.0 jailbreak and see its failure rate.
What you need
- Python 3.11 to 3.14; garak is developed on Linux and macOS
- A free Hugging Face model that runs locally, such as gpt2; no API key
- Internet to install garak and download the model
Steps
- Install garak:
python -m pip install -U garak - Run the scan:
python3 -m garak --target_type huggingface --target_name gpt2 --spec probes.dan.Dan_11_0 - Wait for the progress bar: garak generates responses, then prints a result row for each detector.
- For the details, open the .jsonl report garak names at the start and end of the run; errors go in garak.log.
Expected result
A result row for each detector: responses with the unwanted behaviour are marked FAIL with a failure rate, and figures like 840/840 give the total generations and how many behaved OK.
The catch
GPT-2 here is a small stand-in for learning how garak works; its results say nothing about your own chatbot, which you scan by pointing garak at it (a REST endpoint, or its provider's API with your own key).
Facts checked against docs · First result checked Nov 4, 2026
Sources: github.com/NVIDIA/garak#readme
Something changed or didn't work? Report it
Free facts
- Free tier
- Free command-line scanner (Apache-2.0)
- Card required
- No
- Your data
- Runs on your computer
- Setup
- Install & self-host
- The catch
- Needs a target model to test: a local Hugging Face model, or an API (OpenAI, Cohere, Groq and others) with your own key
Free facts checked Nov 14, 2026
Something changed or didn't work? Report it
Use it only where you are allowed to. Run security testing tools only against systems you own or have written permission to test. Testing other people’s systems without permission is illegal in most countries.
Paid parts and sources
- Paid service
- Optional: Local Hugging Face model (free) or a paid API like OpenAI
- Helps you
- Scan AI chatbots and language models for jailbreaks, leaks and other weaknesses
Read from the official docs: github.com/NVIDIA/garak#readme, github.com/NVIDIA/garak/blob/main/LICENSE
Stuck installing garak? Ask in Community Q&A, or share your free setup. Posts there are public, on GitHub.