/nuguard:ai-security-reviewfrom nuguard
Runs NuGuard's security pipeline against AI applications: generates an AI-SBOM, performs static risk analysis mapped to OWASP LLM Top 10, and verifies live targets before red-teaming.
Ships in nuguard. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Run NuGuard's security pipeline against an AI application and report the results as a developer-facing brief. Run the steps in order — each one builds on the last.
Read .claude/nuguard.local.md. If it does not exist, invoke /nuguard-config to collect
LLM credentials, target URL, and auth settings, then continue.
Use its fields throughout: llm_api_key → LITELLM_API_KEY env var (add --llm when
present); llm_model / llm_api_base / llm_api_version → LLM provider settings;
target_url / chat_endpoint → behavior and redteam steps; auth_type plus its matching
credential fields.
Run nuguard sbom generate --source . (or uv run nuguard ... if not on PATH). This is the
foundation every later step reads from.
Surface from the summary: AI frameworks in use, MCP servers and their trust level,
datastores with PII/PHI, tools flagged sql_injectable / ssrf_possible / high_privilege,
and whether guardrail nodes are wired to agent nodes.
Run nuguard analyze --sbom app.sbom.json --min-severity medium. Highlight the
high-priority NGA rules: agent with no guardrail (NGA-001), high-privilege tool with no HITL
trigger (NGA-003), SQL-injectable parameter (NGA-007), PII datastore with no auth boundary
(NGA-009), unauthenticated API endpoint (NGA-011), system prompt exposed via injection
surface (NGA-014), missing audit trail (NGA-018). Map each finding to its OWASP LLM Top 10
item (LLM01–LLM10).
If nuguard.yaml or cognitive-policy.md are missing, build them from the repo:
nuguard init --llm # drafts a concise cognitive policy (5-6 topics/section) from the SBOM
nuguard init # writes blank section headings instead
Skip this if both files already exist. Then run
nuguard policy check --policy cognitive-policy.md --sbom app.sbom.json and explain any
gap between what the policy declares and what the SBOM shows is actually enforced.
Before sending any real traffic, run nuguard target verify --config nuguard.yaml. It
sends one probe per declared credential (default + canary tenants), confirms auth and
connectivity, and — when an SBOM is present — runs a short pre-scan discovery conversation
that surfaces which account/tenant NuGuard is actually scanning. Confirm that identity with
the user before proceeding; a failed or unexpected-account result means fix credentials
first rather than continuing to Step 5.
Run nuguard validate --config nuguard.yaml — a happy-path and policy-compliance runner
that checks whether the app does what it claims and stays inside the topics declared in
cognitive-policy.md, without adversarial payloads. Treat any failure here as high-priority:
it means the app breaks its own declared contract under normal use.
Run nuguard behavior --config nuguard.yaml --mode static+dynamic next — it's intent-aware
(checks for drift from the declared purpose) and still sends no attack payloads. If it finds
intent drift or policy violations, escalate to nuguard redteam --config nuguard.yaml to
confirm exploitability.
target verify, behavior, and redteam all auto-discover the chat endpoint from the
SBOM, including two-step create-conversation-then-post-message APIs — no manual
chat_endpoint needed unless discovery fails (tune breadth with preflight_candidates in
nuguard.yaml, default 3).
If a run stops early citing an exhausted usage quota or plan limit, tell the user to raise the target's quota and re-run — that is not an auth or config problem.
tenant_id filter to the SQL query in tools/db_tool.py", not "add authentication")status: "error", diagnose it before continuing.node_count == 0, the extractor found no AI components — explain why (wrong source
path, unsupported framework) before proceeding.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
ai-security, llm-security, prompt-injection, red-teaming, sbom, nuguard
npx claudepluginhub nuguardai/nuguard --plugin nuguard2 skills in this plugin
Other plugins' skills for the same job