# Red team an AI agent with garak and NeMo Guardrails

OpenShell + garak Agent Safety Lab is a Launchable for NVIDIA Brev that red teams a sample tool-using AI agent with garak, then runs the same attacks through NVIDIA NeMo Guardrails and an NVIDIA OpenShell sandbox, and compares the raw, guarded and sandboxed runs in one report.

Updated: 2026-12-01

Published: 2026-11-22

## What does this Launchable deploy?

It installs and configures third-party open-source projects on one GPU instance. It does not modify them.

- [garak](https://github.com/NVIDIA/garak), the LLM vulnerability scanner, sends adversarial probes, including its `agent_breaker` probe.
- A sample HelpDesk agent with three tools, `read_file`, `http_get` and `send_report`, is the target.
- [NVIDIA NeMo Guardrails](https://github.com/NVIDIA/NeMo-Guardrails) checks what goes into and out of the agent, with NemoGuard JailbreakDetect for jailbreak detection.
- [NVIDIA OpenShell](https://github.com/NVIDIA/OpenShell) runs the agent in a sandbox with a deny-by-default network policy.
- [vLLM](https://github.com/vllm-project/vllm) serves NVIDIA Nemotron 3.5 Lightning on the same GPU.
- A local attacker sink and a fake key file show whether an attack leaked data.
- One Brev Secure Link named `open-safety-lab` (port 8080) opens the lab dashboard.

## How do the raw, guarded and sandboxed lanes compare?

The lab runs the same attacks against the same agent in three lanes and puts the results side by side in one report.

| Lane | What sits in front of the agent |
|---|---|
| RAW | Nothing: the model and its tools answer directly |
| GUARDED | NeMo Guardrails with jailbreak detection and safety checks |
| GUARDED+SANDBOX | NeMo Guardrails, plus an OpenShell sandbox with deny-by-default network policy |

The report shows attack success per garak probe family, canary hits at the local sink, and rows for the requests the sandbox denied. Your own run produces the numbers; this page quotes none.

## Which GPU, disk and price does it use?

| Item | Value |
|---|---|
| GPU | 1x NVIDIA L40S 48GB (48 GB VRAM minimum) |
| Instance type | AWS `g6e.xlarge` |
| Disk | 200 GiB |
| Price | about $2.26/hr (Brev console, 2026-11-19) |
| Time to ready | about 30 minutes (fresh-deploy smoke, 2026-11-19) |
| Last fresh-deploy smoke | 2026-11-19, fresh deploy on AWS with 1x L40S |

## How do I launch it, step by step?

1. Open the [deploy page on NVIDIA Brev](https://brev.nvidia.com/launchable/deploy?launchableID=env-3MK1o9MUGMtZElFZvoYphMsZUmB) (Launchable ID `env-3MK1o9MUGMtZElFZvoYphMsZUmB`). The general flow is in [how to deploy a Launchable on NVIDIA Brev](https://www.9owls.com/guides/deploy-a-launchable-on-nvidia-brev/).
2. Optionally pick `GUARD_PROFILE` (`jailbreak-detect` or `jailbreak+content-safety`) and `SCAN_PROFILE` (`quick` or `standard`), then deploy.
3. Wait until the instance shows Running and setup has finished.
4. Click the `open-safety-lab` link on the instance page.
5. Wait for the readiness lights to turn green, then press the "Run all three lanes" button.

## How do I scan my own endpoint, and what consent is needed?

You can point garak at your own OpenAI-compatible endpoint instead of the sample agent.

1. At launch, set `TARGET_URL`, `TARGET_MODEL` and `TARGET_API_KEY`.
2. In the dashboard, tick the consent box.
3. Press the "Scan my endpoint" button.

Requests pass through a budget proxy with a hard cap: 200 requests for `quick` and 1000 for `standard`.

> **Note:** Scan only systems you own or are authorised to test. garak sends adversarial prompts.

## What can I try in the first hour?

The README of the Launchable suggests three tasks:

1. Red team the sample agent: run all three lanes and compare the report.
2. Scan your own endpoint, with consent, at the `quick` or `standard` profile.
3. Edit the guardrails config or the OpenShell policy, save, then press the Replay button and compare the new run with the last one.

## How is this different from the NeMo Guardrails + garak lab?

Both use garak and NeMo Guardrails, but they test different targets.

| Launchable | Target | Sandbox |
|---|---|---|
| [NeMo Guardrails + garak LLM Security Lab](https://www.9owls.com/launchables/nemo-guardrails-garak/) | A chat model endpoint, raw and guarded side by side | No |
| OpenShell + garak Agent Safety Lab | A tool-using agent that can read files, fetch URLs and send reports | Yes, OpenShell |

Pick the first to test what a model says. Pick this one to test what an agent with tools does. The model scan has its own guide, [how to run a garak LLM vulnerability scan with NeMo Guardrails](https://www.9owls.com/guides/run-a-garak-llm-vulnerability-scan-with-nemo-guardrails/), and the two approaches are set side by side in [LLM red teaming vs agent red teaming](https://www.9owls.com/compare/llm-red-teaming-vs-agent-red-teaming/). More security tooling is listed under [LLM security](https://www.9owls.com/topics/llm-security/).

## What happens after Stop and Start?

Stop pauses the instance and keeps its disk. If the lab does not come back after Start, open the Brev terminal and run `sudo systemctl restart asl.service`.

> **Note:** Disk storage is still billed while the instance is stopped. Delete removes the instance and all its data; see [stop, start and delete an NVIDIA Brev instance](https://www.9owls.com/guides/stop-start-and-delete-an-nvidia-brev-instance/).

## Which versions and licences does it pin?

Versions as of 2026-11-19, the date of the last fresh-deploy smoke.

| Component | Version | Licence |
|---|---|---|
| garak | 0.17.1 | Apache License 2.0 |
| NVIDIA NeMo Guardrails | 0.24.1 | Apache License 2.0 |
| NVIDIA OpenShell | v0.0.116 | Apache License 2.0 |
| vLLM | v0.27.1 | Apache License 2.0 |
| NVIDIA Nemotron 3.5 Lightning | as pinned in the README | OpenMDW License Agreement, version 1.1 |
| NemoGuard JailbreakDetect | as pinned in the README | NVIDIA Open Model License |
| snowflake-arctic-embed-m-long | as pinned in the README | Apache License 2.0 |

The optional content-safety model (`GUARD_PROFILE` `jailbreak+content-safety`) carries its own terms, listed in the README.

OpenShell is pinned to v0.0.116 because NemoClaw v0.0.144 accepts no newer version (as of 2026-11-19, per the Launchable's setup script), and the lab keeps the same OpenShell pin as the [NemoClaw private agent guide](https://www.9owls.com/guides/run-a-private-nemoclaw-agent-on-local-nemotron/). Newer OpenShell releases exist; the [browser agent guide](https://www.9owls.com/guides/run-a-browser-agent-in-an-openshell-sandbox/) uses v0.1.9.

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

- [Launchable README (openshell-garak-agent-safety-lab)](https://github.com/ashishsalve/gpu-launchables/tree/main/openshell-garak-agent-safety-lab), read 2026-11-21; its setup script, read 2026-11-28 for the OpenShell pin reason.
- [garak on GitHub](https://github.com/NVIDIA/garak), [NVIDIA NeMo Guardrails on GitHub](https://github.com/NVIDIA/NeMo-Guardrails), [NVIDIA OpenShell on GitHub](https://github.com/NVIDIA/OpenShell) and [vLLM on GitHub](https://github.com/vllm-project/vllm), read 2026-11-21.
- Brev public Launchable record for `env-3MK1o9MUGMtZElFZvoYphMsZUmB`, read 2026-11-21: instance type `g6e.xlarge`, 1x L40S 48GB, 200 GiB, published.
- [NeMo Guardrails + garak README](https://github.com/ashishsalve/gpu-launchables/tree/main/nemo-guardrails-garak), read 2026-11-21.

## How was this page made?

- Publisher: 9owls. The page has no personal byline.
- Tested facts (GPU, disk, time to ready, the three lanes and the dashboard) come from the Launchable's fresh-deploy smoke on 2026-11-19; the price is the Brev console deploy page read on 2026-11-19.
- Upstream facts come from the project repositories read on 2026-11-21.
- What changed on 2026-12-01: the title, heading and opening paragraph lead with the lab's name again.
- What changed on 2026-11-28: the title now names the OpenShell sandbox the lab adds, the price source is the console read, and the OpenShell pin reason was added. Report an error through the [contact page](https://www.9owls.com/company/#contact).

## Related pages

- [OpenShell + garak Agent Safety Lab](https://www.9owls.com/launchables/openshell-garak-agent-safety-lab/)
- [Agent Launchables for NVIDIA Brev](https://www.9owls.com/guides/nvidia-brev-agent-launchables/)
- [Run a private NemoClaw agent on local Nemotron](https://www.9owls.com/guides/run-a-private-nemoclaw-agent-on-local-nemotron/)
- [Run a browser agent in an OpenShell sandbox](https://www.9owls.com/guides/run-a-browser-agent-in-an-openshell-sandbox/)
- [NeMo Guardrails + garak LLM Security Lab](https://www.9owls.com/launchables/nemo-guardrails-garak/)
- [LLM security](https://www.9owls.com/topics/llm-security/)
- [LLM red teaming vs agent red teaming](https://www.9owls.com/compare/llm-red-teaming-vs-agent-red-teaming/)
- [Stop, start and delete an NVIDIA Brev instance](https://www.9owls.com/guides/stop-start-and-delete-an-nvidia-brev-instance/)
- [NightKeeper](https://www.9owls.com/nightkeeper/)

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