// 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).

ItemValue
GPU1x NVIDIA L40S 48GB
Instance typeAWS g6e.xlarge
Disk200 GiB
Priceabout $2.26/hr (Brev console, 2026-11-19)
Versionsgarak 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 smoke2026-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.

  1. Deploy the Launchable and wait until the instance shows Running. The first start downloads images and models.

  2. Let the first scan finish. It sends DAN-style jailbreak prompts, jailbreak prompts collected in the wild, and prompt-injection hijacks.

  3. Click the garak-reports link on the instance page. It loads only after the first scan completes.

  4. Open the report whose name starts with raw-model.

To scan again, open the Brev terminal and run these three commands in order:

  1. GARAK=$(docker ps -q --filter label=com.docker.compose.project=guardrails-garak --filter label=com.docker.compose.service=garak)

  2. docker exec $GARAK rm /workspace/garak/.scanned

  3. docker 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.

TargetRaw modelGuarded model
What sits in front of the modelNothing: vLLM answers directlyNeMo Guardrails with nvidia/Nemotron-3.5-Content-Safety
OpenAI-compatible API port80018000
garak report name starts withraw-modelguarded
Open WebUI model prefixrawguarded
  1. In the garak-reports page, open the report whose name starts with guarded.

  2. Put it next to the raw-model report from the same scan and compare the probe results.

  3. Click the compare-raw-vs-guarded link to open Open WebUI. The first account you create becomes the admin.

  4. Open one chat with the raw model and one with the guarded model, and send the same prompt to both.

  5. To call the APIs from your machine, run brev port-forward INSTANCE_NAME --port 8000:8000 and brev 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.

QuestionUse
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.

  1. Open the deploy page on NVIDIA Brev (external site) (Launchable ID env-3M8bOSWcMAZsaOnuaytHUvAEC0v).

  2. Optionally set CHAT_MODEL to Qwen/Qwen3-8B; the default is nvidia/NVIDIA-Nemotron-Nano-9B-v2.

  3. Deploy and wait until the instance shows Running.

  4. Use the garak-reports and compare-raw-vs-guarded links 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 -d in 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.

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.

All guides