# 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: 2026-11-22

Published: 2026-11-22

## What does the NeMo Guardrails + garak Launchable run?

The [NeMo Guardrails + garak LLM Security Lab](https://www.9owls.com/launchables/nemo-guardrails-garak/) 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](https://github.com/NVIDIA/garak), the LLM vulnerability scanner, sends jailbreak and prompt-injection probes (Apache-2.0).
- [NVIDIA NeMo Guardrails](https://github.com/NVIDIA-NeMo/Guardrails) checks input and output with `nvidia/Nemotron-3.5-Content-Safety` (Apache-2.0).
- [vLLM](https://github.com/vllm-project/vllm) serves the chat model `nvidia/NVIDIA-Nemotron-Nano-9B-v2` by default; `Qwen/Qwen3-8B` is the other `CHAT_MODEL` choice.
- [Open WebUI](https://github.com/open-webui/open-webui) shows the same model twice, once with a `raw` prefix and once with a `guarded` prefix.

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

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`

> **Warning:** Scan only systems you own or are authorised to test. garak sends adversarial prompts on purpose, and reports can contain harmful text produced by the model under test.

## 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` |

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.

| 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](https://www.9owls.com/launchables/nemo-guardrails-garak/) |
| 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](https://www.9owls.com/guides/red-team-an-ai-agent-with-garak-and-nemo-guardrails/) |

More tools for testing models are listed under [LLM security](https://www.9owls.com/topics/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](https://www.9owls.com/guides/deploy-a-launchable-on-nvidia-brev/).

1. Open the [deploy page on NVIDIA Brev](https://brev.nvidia.com/launchable/deploy?launchableID=env-3M8bOSWcMAZsaOnuaytHUvAEC0v) (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](https://www.9owls.com/guides/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.

> **Note:** Storage is still billed while the instance is stopped. Delete cannot be undone.

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

- [Read about NightKeeper](https://www.9owls.com/nightkeeper/).
- [Create your Launchable](https://www.9owls.com/nightkeeper/start/).

## 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](https://github.com/ashishsalve/gpu-launchables/blob/main/nemo-guardrails-garak/README.md): versions, models, scan, reports, ports, stop and delete.
- [garak on GitHub](https://github.com/NVIDIA/garak): "the LLM vulnerability scanner", licence Apache-2.0.
- [NVIDIA NeMo Guardrails on GitHub](https://github.com/NVIDIA-NeMo/Guardrails): licence Apache-2.0.
- [Launchables on NVIDIA Brev](https://docs.nvidia.com/brev/latest/concepts/launchables.md): what a Launchable is.
- Brev public Launchable record for `env-3M8bOSWcMAZsaOnuaytHUvAEC0v`: instance type `g6e.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](https://www.9owls.com/company/#contact).

## Related pages

- [NeMo Guardrails + garak LLM Security Lab](https://www.9owls.com/launchables/nemo-guardrails-garak/)
- [OpenShell + garak Agent Safety Lab](https://www.9owls.com/launchables/openshell-garak-agent-safety-lab/)
- [LLM security](https://www.9owls.com/topics/llm-security/)
- [Red team an AI agent with garak and NeMo Guardrails](https://www.9owls.com/guides/red-team-an-ai-agent-with-garak-and-nemo-guardrails/)
- [LLM red teaming vs agent red teaming](https://www.9owls.com/compare/llm-red-teaming-vs-agent-red-teaming/)

[All guides](https://www.9owls.com/guides/)
