// guide

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

Published

On this page

What does this Launchable deploy?

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

  • garak (external site), 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 (external site) checks what goes into and out of the agent, with NemoGuard JailbreakDetect for jailbreak detection.
  • NVIDIA OpenShell (external site) runs the agent in a sandbox with a deny-by-default network policy.
  • vLLM (external site) 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.

LaneWhat sits in front of the agent
RAWNothing: the model and its tools answer directly
GUARDEDNeMo Guardrails with jailbreak detection and safety checks
GUARDED+SANDBOXNeMo 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?

ItemValue
GPU1x NVIDIA L40S 48GB (48 GB VRAM minimum)
Instance typeAWS g6e.xlarge
Disk200 GiB
Priceabout $2.26/hr (Brev console, 2026-11-19)
Time to readyabout 30 minutes (fresh-deploy smoke, 2026-11-19)
Last fresh-deploy smoke2026-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 (external site) (Launchable ID env-3MK1o9MUGMtZElFZvoYphMsZUmB). The general flow is in how to 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.

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.

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.

LaunchableTargetSandbox
NeMo Guardrails + garak LLM Security LabA chat model endpoint, raw and guarded side by sideNo
OpenShell + garak Agent Safety LabA tool-using agent that can read files, fetch URLs and send reportsYes, 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, and the two approaches are set side by side in LLM red teaming vs agent red teaming. More security tooling is listed under 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.

Which versions and licences does it pin?

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

ComponentVersionLicence
garak0.17.1Apache License 2.0
NVIDIA NeMo Guardrails0.24.1Apache License 2.0
NVIDIA OpenShellv0.0.116Apache License 2.0
vLLMv0.27.1Apache License 2.0
NVIDIA Nemotron 3.5 Lightningas pinned in the READMEOpenMDW License Agreement, version 1.1
NemoGuard JailbreakDetectas pinned in the READMENVIDIA Open Model License
snowflake-arctic-embed-m-longas pinned in the READMEApache 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. Newer OpenShell releases exist; the browser agent guide 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.

Which sources does this page use?

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.

All guides