nemo-agent-hardener

nemo-agent-hardener is a skill for Claude Code from NVIDIA-NeMo/nemo-helix. It costs 86 tokens per session (4,709 once invoked), scanned B, original, Apache-2.0.

A security exercise for testing an AI agent in an isolated environment. It sends harmful test inputs, adds protections for problems it finds, and checks the results again.

In plain words
What is it for?
Use it to register or upload an agent, run attack and defence tests, validate the changes, and produce a hardened agent image or bundle.
Why use it?
It helps find ways an agent could be misused before deployment. The report compares blocked attacks with harmless requests that were incorrectly stopped.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: mentions Codex.

Good fit Use it to register or upload an agent, run attack and defence tests, validate the changes, and produce a hardened agent image or bundle.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/nvidia-nemo/nemo-helix/nemo-agent-hardener
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add NVIDIA-NeMo/nemo-helix --skill nemo-agent-hardener
Clone the repo
git clone --depth 1 https://github.com/NVIDIA-NeMo/nemo-helix

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for nemo-agent-hardener

README.md
[![agentmods](https://agentmods.dev/badge/skills/nvidia-nemo/nemo-helix/nemo-agent-hardener/github.svg)](https://agentmods.dev/skills/nvidia-nemo/nemo-helix/nemo-agent-hardener)
Your own site
<a href="https://agentmods.dev/skills/nvidia-nemo/nemo-helix/nemo-agent-hardener"><img src="https://agentmods.dev/badge/skills/nvidia-nemo/nemo-helix/nemo-agent-hardener/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for nemo-agent-hardener

Your own site · 80×15
<a href="https://agentmods.dev/skills/nvidia-nemo/nemo-helix/nemo-agent-hardener"><img src="https://agentmods.dev/badge/skills/nvidia-nemo/nemo-helix/nemo-agent-hardener.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 86 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 4,709 The whole file, excluding the scripts and references it only reads on demand.
Security scan B 1 finding. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00086 $0.04709
Opus 5.5 $0.00034 $0.01884
Sonnet 5.5 $0.00017 $0.00942
Haiku 4.5 $0.00009 $0.00471

Measured yesterday against content hash 0bdaab69985c, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade B, and why

nemo-agent-hardener scanned grade B with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured yesterday.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Harvests environment variablesmediumData exfiltration

Enumerating or grepping the environment for keys collects credentials unrelated to what the mod says it does.

1. Collect credentials first: store each secret the agent needs with the platform `nemo-secrets`

Downgraded: this mod is about security review, or the phrase is quoted, so it is likely naming the pattern rather than instructing it.

plugins/nemo-agent-hardener/src/nemo_agent_hardener_plugin/skills/nemo-agent-hardener/SKILL.md · 338 lines

How it starts

The opening of the file, as written. The whole thing — 338 lines — stays where its author put it; the contents beside it link to each section on GitHub.

NeMo Agent Hardener — war-game an agent

Agent Hardener attacks a sandboxed copy of an agent (garak), writes guardrails against what got through (defenders), and replays the attacks plus benign traffic to prove the fix (validators). Done means: a completed run with a scorecard — attacks blocked vs. benign false positives — and a hardened image/bundle you can adopt.

This skill is an interview: ask the user two questions (steps 2 and 3) and follow only the branch they pick. Do not dump every path at them.

Do not choose the target agent for the user. Even when the request names a concrete goal ("harden an example agent"), you must still ask which one in step 2 before any state-changing command (agents register, agents package, agent-hardener init). Picking one yourself — because it is the default, the first listed, or the one you just built — is the single most common way this skill goes wrong. Ask first, every time.

1. Pre-flight

Requires NeMo Helix >= 0.1.0 installed from source (the PyPI package has no Agent Hardener plugin), Docker, OpenShell >= 0.1.4 with its gateway, and an NVIDIA API key. Give the machine at least 16 GB of memory (32 GB recommended) and 50 GB of free disk. This workflow is not sandbox-safe: it builds images, starts containers, and makes network calls.

Check the machine before anything else. On a clean VM, or when any check below fails, walk references/setup.md section by section (VM checks, Helix from source, the services, OpenShell, the model key, setup) and come back here with doctor green.

which nemo                         # a source checkout's .venv/bin/nemo
nemo agent-hardener --help         # lists setup, doctor, init, synth-benign, run, status (else not a source install)
nemo services status               # Health: healthy, on port 8080
openshell --version                # 0.1.4 or later
# `nemo` resolves its target from the active config context (~/.config/nhx/config.yaml)
# or an explicit NHX_BASE_URL. Do NOT export a localhost fallback here — it would
# override a configured remote. Leave NHX_BASE_URL unset to use your saved context;
# set it explicitly (export NHX_BASE_URL=http://localhost:8080) only to force a local
# platform for this shell when you have no local config context.
nemo agent-hardener doctor         # five ✓ lines, then "All checks passed."

Read the full file on GitHub · 338 lines

Files

What ships with it

5 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. yesterday First seen · 338 lines · 86 tokens per session scan B 0bdaab69985c

Subscribe to this mod's changes

nemo-agent-hardener is a skill published in the GitHub repository NVIDIA-NeMo/nemo-helix (160 stars, last pushed today), licensed Apache-2.0. It adds 86 tokens to every session and 4,709 once invoked, about $0.0003 per session on Opus 5.5. A static security scan graded it B with 1 finding (harvests environment variables). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-12-05.

Related

nemo-agent-hardener compared with skills from other repositories

nemo-agent-hardener next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
nemo-agent-hardenerNVIDIA-NeMo/nemo-helixSkill160todayApache-2.0B86Claude Code
trulens-blocking-guardrailstruera/trulensSkill3.7kyesterdayMITA19Claude Code, Codex
promptfoo-redteam-setuppromptfoo/promptfooSkill28ktodayMITA65Claude Code, Codex
promptfoo-provider-setuppromptfoo/promptfooSkill28ktodayMITA66Claude Code, Codex
discount-reviewpromptfoo/promptfooSkill28ktodayMITA18Claude Code, Codex
code-reviewpromptfoo/promptfooSkill28ktodayMITA11Claude Code
trulens-evaluation-setuptruera/trulensSkill3.7kyesterdayMITA17Claude Code, Codex