// guide
How to run a garak LLM vulnerability scan with NeMo Guardrails
To run a garak LLM vulnerability scan with NeMo Guardrails, scan the same chat model twice, raw and guarded, and compare the reports; on NVIDIA Brev, the NeMo Guardrails + garak LLM Security Lab Launchable runs garak with NeMo Guardrails, vLLM and Open WebUI on one NVIDIA L40S 48GB GPU.
Updated
Published
On this page
What does the NeMo Guardrails + garak Launchable run?
The NeMo Guardrails + garak LLM Security Lab runs one chat model twice on one GPU: once raw and once behind NVIDIA NeMo Guardrails, with garak scanning both. A Launchable is a reproducible, shareable environment configuration on NVIDIA Brev: GPU, disk, container setup and ports in one link (https://docs.nvidia.com/brev/latest/concepts/launchables.md).
garak (external site), the LLM vulnerability scanner, sends jailbreak and prompt-injection probes (Apache-2.0).
NVIDIA NeMo Guardrails (external site) checks input and output with
nvidia/Nemotron-3.5-Content-Safety(Apache-2.0).vLLM (external site) serves the chat model
nvidia/NVIDIA-Nemotron-Nano-9B-v2by default;Qwen/Qwen3-8Bis the otherCHAT_MODELchoice.Open WebUI (external site) shows the same model twice, once with a
rawprefix and once with aguardedprefix.
| Item | Value |
|---|---|
| GPU | 1x NVIDIA L40S 48GB |
| Instance type | AWS g6e.xlarge |
| Disk | 200 GiB |
| Price | about $2.26/hr (Brev console, 2026-11-19) |
| Versions | garak 0.17.1, NeMo Guardrails 0.24.1, vLLM v0.20.2, Open WebUI v0.13.3 (as of 2026-11-15) |
| Last fresh-deploy smoke | 2026-11-15 on one NVIDIA L40S 48GB |
How do I scan the raw model?
The lab scans the raw model for you: garak runs once per instance against the model served by vLLM, with no guardrails in front.
Deploy the Launchable and wait until the instance shows Running. The first start downloads images and models.
Let the first scan finish. It sends DAN-style jailbreak prompts, jailbreak prompts collected in the wild, and prompt-injection hijacks.
Click the
garak-reportslink on the instance page. It loads only after the first scan completes.Open the report whose name starts with
raw-model.
To scan again, open the Brev terminal and run these three commands in order:
GARAK=$(docker ps -q --filter label=com.docker.compose.project=guardrails-garak --filter label=com.docker.compose.service=garak)docker exec $GARAK rm /workspace/garak/.scanneddocker restart $GARAK
How do I scan the same model behind NeMo Guardrails?
The same scan also runs against the guarded endpoint, where NeMo Guardrails checks every prompt and answer before it reaches you.
| Target | Raw model | Guarded model |
|---|---|---|
| What sits in front of the model | Nothing: vLLM answers directly | NeMo Guardrails with nvidia/Nemotron-3.5-Content-Safety |
| OpenAI-compatible API port | 8001 | 8000 |
| garak report name starts with | raw-model | guarded |
| Open WebUI model prefix | raw | guarded |
In the
garak-reportspage, open the report whose name starts withguarded.Put it next to the
raw-modelreport from the same scan and compare the probe results.Click the
compare-raw-vs-guardedlink to open Open WebUI. The first account you create becomes the admin.Open one chat with the
rawmodel and one with theguardedmodel, and send the same prompt to both.To call the APIs from your machine, run
brev port-forward INSTANCE_NAME --port 8000:8000andbrev port-forward INSTANCE_NAME --port 8001:8001.
Your own scan produces the numbers; this page quotes none.
Scanning a model vs red teaming an agent: which do I need?
Scan a model when you want to know what it says; red team an agent when you want to know what it does with tools.
| Question | Use |
|---|---|
| Does my chat model answer jailbreak and prompt-injection prompts, raw and guarded? | This guide and the NeMo Guardrails + garak LLM Security Lab |
| Can an attack make a tool-using agent read files, fetch URLs or leak data? | Red team an AI agent with garak and NeMo Guardrails |
More tools for testing models are listed under LLM security.
How do I deploy it on NVIDIA Brev?
You deploy it from one link; the general flow is in how to deploy a Launchable on NVIDIA Brev.
Open the deploy page on NVIDIA Brev (external site) (Launchable ID
env-3M8bOSWcMAZsaOnuaytHUvAEC0v).Optionally set
CHAT_MODELtoQwen/Qwen3-8B; the default isnvidia/NVIDIA-Nemotron-Nano-9B-v2.Deploy and wait until the instance shows Running.
Use the
garak-reportsandcompare-raw-vs-guardedlinks on the instance page.
What happens when I stop or delete the instance?
Stop keeps your models, reports and chats; Delete removes them. Details are in stop, start and delete an NVIDIA Brev instance.
Everything lives under
/home/ubuntu/workspace: the model cache, garak reports, the NeMo Guardrails environment and Open WebUI data.That folder survives Stop and Start.
If the services are not back 5 minutes after Start, run
cd /home/ubuntu/workspace && sudo docker compose up -din the Brev terminal.Delete removes the instance and all of its data.
How does this relate to NightKeeper?
This Launchable is a finished environment you deploy yourself. NightKeeper is a separate 9owls product for your own code: it packages your repository as an NVIDIA Brev Launchable, proves it on a fresh GPU and keeps it running.
Which sources does this page use?
All sources were read on 2026-11-22; the README versions were re-checked on 2026-11-28.
NeMo Guardrails + garak README (external site): versions, models, scan, reports, ports, stop and delete.
garak on GitHub (external site): "the LLM vulnerability scanner", licence Apache-2.0.
NVIDIA NeMo Guardrails on GitHub (external site): licence Apache-2.0.
Launchables on NVIDIA Brev (external site): what a Launchable is.
Brev public Launchable record for
env-3M8bOSWcMAZsaOnuaytHUvAEC0v: instance typeg6e.xlarge, 200 GiB, published.
How was this page made?
- Publisher: 9owls. The page has no personal byline.
- Tested facts (GPU, disk, services, ports, report names and restart command) come from the Launchable's fresh-deploy smoke on 2026-11-15; the price is a Brev console read for the same instance type on 2026-11-19.
- Upstream facts come from the project repositories and the Brev documentation read on 2026-11-22.
- Report an error through the contact page.