NVIDIA's garak gives FDEs a security scan before the client asks
Two commands produce a first PASS/FAIL report, but the real value comes from scanning the client's own chatbot and knowing how much the results actually prove.

In brief
- garak is an open-source LLM vulnerability scanner developed by NVIDIA and the community, and it tests whole applications, not just models
- It installs with one pip command; the REST generator connects to endpoints that return plaintext or JSON, using a config file that describes the request and how to read the response
- PASS/FAIL is only the rate of outputs flagged by a detector: PASS is not immunity, and FAIL can be a false positive
One pip command installs it, and a second fires probes at a language model and returns lines marked PASS or FAIL. That is all it takes to get started with garak, the open-source LLM vulnerability scanner developed by NVIDIA and the community.
This matters to FDEs because security questions tend to arrive late and in a hurry. The agent demo has gone well, and only then does the client’s legal or security team ask: can it leak data? Can it be tricked into ignoring its instructions?
“We tried a few prompts” is not an adequate answer. A repeatable scan with results for each probe is far more persuasive, but only if you understand what the numbers in that scan say and what they do not.
What does garak test?
The project’s README sums up its purpose: to check whether an application running on an LLM can be pushed into failure modes nobody wants. The name stands for Generative AI Red-teaming and Assessment Kit, and the paper introducing the tool was published on arXiv in June 2024.
For an FDE, the word to notice is “application”. The official documentation says garak helps find weaknesses and unwanted behavior in anything that uses language model technology, from bare models to chatbots.
At a client site, the thing that needs protecting is rarely the base model. It is the chatbot wired up with a system prompt, internal data and tools, so the most valuable scan is one run against that application itself.
What does a first scan look like?
Installation takes one command:
python -m pip install -U garak
The “Your first scan” guide uses the gpt2 model on Hugging Face and a probe for profanity:
python -m garak --model_type huggingface --model_name gpt2 --probes lmrc.Profanity
This is a local exercise, not the client’s system. Its value lies in showing you the output format before you have to explain that format in a meeting room.
Connecting garak to the client’s chatbot
The step from gpt2 to a real system runs through the REST generator. The README describes rest.RestGenerator as highly flexible, able to connect to any REST endpoint that returns plaintext or JSON.
A Databricks post on applying garak to its platform spells out the practical work: the REST generator needs a JSON config file describing the structure of the request and how to read the response. In other words, garak does not guess the client’s API; you have to tell it.
Say the client is an insurer with a chatbot that answers questions about policies, and its engineering team hands you a sample request like this one (the field names are hypothetical):
{"session_id": "test-01", "message": "Does my policy pay out if my house floods?"}
And a sample response from the bot:
{"reply": "Under the supplementary terms, your policy...", "sources": ["supplementary-terms.pdf"]}
From this pair, the config file has to state exactly two things. On the request side: keep the structure, but replace the question in the message field with the prompt the probe generates. On the response side: take the answer from the reply field and ignore sources, because the detector should score only what the bot says.
Copy the key names in the config file itself from garak’s REST generator documentation rather than guessing them. The hard part is getting an accurate sample request and response from the client, so ask for them at the scoping meeting.
What do PASS and FAIL actually measure?
The “Reading the results” documentation gives a sample line: FAIL ok on 17/ 20 (failure rate: 15%). Read it closely: the probe produced 20 outputs, the detector scored 17 as fine and caught 3, so the failure rate is 15% and the whole line is marked FAIL.
That documentation page sets no threshold for what counts as a pass. So “your chatbot FAILED” is a poor way to present the result; the accurate version is “3 of this probe’s 20 attempts produced outputs flagged by the detector”.
The second detail is easier to miss: several detectors can score the same set of outputs. A probe can therefore PASS on one detector and FAIL on another, so the report for the client must state which detector produced which result.
What garak will not do for you
Databricks warns in both directions. A low success rate in the tests does not mean immunity. And detectors produce false positives, so results often need manual review.
Before putting a FAIL on a slide, then, open the 3 flagged outputs and read them yourself. Before writing “passed”, record which probes were run and in which environment.
The biggest limit is legal. The documentation is blunt: run garak only on systems you are permitted to use. Firing a barrage of attack prompts at a client’s production system without written permission could lead their security team to treat it as a real attack, so agree on scope, environment and scan timing first.
What to learn first, and how to put it on a CV
Start with the gpt2 command above, then recompute the failure rate yourself from the number of passing outputs over the total. Next, stand up a small REST endpoint of your own and write a JSON config file so garak can call it; that is precisely the skill you will use at a client site.
When you add this skill to a CV, frame it as a measurement with clear limits. A line such as “connected garak to an internal chatbot over REST, tracked per-probe failure rates across each release, manually reviewed every FAIL before reporting” shows that you know how to measure, and how far the measurement goes.
If you have no real client yet, do it with an open-source project of your own and publish the commands, the config file and the results. Clients will not remember which tool you used; they will remember the person who told them plainly that a PASS is not the same as safe.
Was this article useful?
Thanks for the feedback!
7 sources
- garak: A Framework for Security Probing Large Language Models · 2024-06-16
- GitHub - NVIDIA/garak: the LLM vulnerability scanner
- Your first scan - garak documentation
- garak: LLM vulnerability scanner
- Welcome to garak!
- Reading the results - garak documentation
- AI Security in Action: Applying NVIDIA's Garak to LLMs on Databricks · 2025-07-02