LLM security
NeMo Guardrails + garak LLM Security Lab
NeMo Guardrails and garak, both from NVIDIA, form a lab where you red team a chat model and see what guardrails change, on your own GPU.
Updated
What runs
garak, the LLM vulnerability scanner from NVIDIA, is licensed under Apache-2.0.
NeMo Guardrails, the guardrails framework from NVIDIA, is licensed under Apache-2.0. It uses the NVIDIA safety model nvidia/Nemotron-3.5-Content-Safety in front of the chat model nvidia/NVIDIA-Nemotron-Nano-9B-v2.
vLLM (Apache-2.0) serves the models. Open WebUI, distributed under the Open WebUI License, is the chat interface. Model licence notices ship in the public source folder.
| Component | Pinned version |
|---|---|
| NeMo Guardrails | 0.24.1 (nemoguardrails[server]==0.24.1) |
| garak | 0.17.1 (garak==0.17.1) |
| vLLM | v0.20.2 (vllm/vllm-openai:v0.20.2, pinned by digest) |
| Open WebUI | v0.13.3 (ghcr.io/open-webui/open-webui:v0.13.3) |
Smoke test
Last fresh-deploy smoke test on NVIDIA Brev: .
A fresh-deploy smoke test checks what a new user gets:
- The Launchable deploys on a new instance.
- Its services start and answer.
- The instance stops and starts, and the services are checked again.
- The instance is deleted.
Licences and credits
- NeMo Guardrails Apache-2.0
- garak Apache-2.0
- vLLM Apache-2.0
- Open WebUI Open WebUI License
- nvidia/NVIDIA-Nemotron-Nano-9B-v2 NVIDIA Open Model License
- nvidia/Nemotron-3.5-Content-Safety OpenMDW License Agreement, version 1.1
- Qwen/Qwen3-8B Apache-2.0
Public source folder: https://github.com/ashishsalve/gpu-launchables/tree/main/nemo-guardrails-garak (external site)
The README there covers quick facts, deploying in three steps, settings, data persistence, stop, start and delete, troubleshooting and an FAQ.
Upstream projects:
Persistence and stop vs delete
- Step-by-step guide: how to run a garak LLM vulnerability scan with NeMo Guardrails.
- To red team a tool-using agent instead of a chat model, see OpenShell + garak Agent Safety Lab.
- Open WebUI opens through the compare-raw-vs-guarded link, so you can compare the raw and guarded model.
- Two OpenAI-compatible APIs run on the instance: guarded on port 8000 and raw on port 8001.
- The garak report page serves only after its first scan.
- Stopping the instance removes the lab's containers; everything under ~/workspace is kept. Starting it again recreates the containers automatically, usually within a few minutes.
- Models, reports and chats are kept across a stop. Storage is still billed while the instance is stopped.
- Delete the instance when you are finished. This removes the instance and all of its data, including downloaded models, reports and chat history.
Responsible use
garak sends adversarial prompts on purpose. Scan only models and endpoints you own or are allowed to test. Reports can contain harmful text produced by the model under test.
Where do I learn more?
- First Launchable? How to deploy a Launchable on NVIDIA Brev walks through the deploy link and opening the web app.
- Serve an OpenAI-compatible API with vLLM explains the vLLM server behind the guarded and raw APIs and how to keep an API private.
- Run Open WebUI with vLLM on a cloud GPU explains what Open WebUI and vLLM each do in a chat stack.
- How to stop and delete an NVIDIA Brev instance covers what a stop keeps and what a stopped instance still costs.
- Compare GPUs for LLM inference to see the NVIDIA L40S this lab runs on next to a smaller NVIDIA GPU.
- Red team an AI agent with garak and NeMo Guardrails runs garak against a tool-using agent and compares raw, guarded and sandboxed runs.
Troubleshooting
- The page does not load yet: the first start pulls container images and model weights. Check in the NVIDIA Brev console that the instance has finished setting up, then retry.
- After a stop and start: confirm the instance shows as running in the NVIDIA Brev console before you open the app again.
- Costs while idle: storage is billed while an instance is stopped. Delete the instance when you are finished.
- Still stuck: email hello@9owls.com with the Launchable name and what you see.