trivy-scan

trivy-scan is a skill for Claude Code, Codex from makigjuro/cloudstack-ai-plugins. It costs 71 tokens per session (1,368 once invoked), scanned B, original, MIT.

An infrastructure security scanner for Terraform files and Helm charts, which describe cloud resources and Kubernetes deployments. It uses Trivy to find configuration risks and container image vulnerabilities.

In plain words
What is it for?
Use it to check infrastructure during development, before a pull request, or as part of broader infrastructure checks. You can choose which severity levels fail the check or make it report findings without failing.
Why use it?
It catches security problems that basic Terraform validation and Helm checks can miss, such as public storage, missing encryption, weak TLS, and overly broad access permissions.

Skill for Claude CodeCodex

Part of the cloud-infra plugin — 7 skills, 1 agent shipped together

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.

agentmods
npx agentmods add skills/makigjuro/cloudstack-ai-plugins/trivy-scan
Any agent
npx skills add makigjuro/cloudstack-ai-plugins --skill trivy-scan
Clone the repo
git clone --depth 1 https://github.com/makigjuro/cloudstack-ai-plugins

Made for: Claude Code, Codex.

Or install cloud-infra, the plugin that ships this one along with the rest of its 7 skills, 1 agent.

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 trivy-scan

README.md
[![agentmods](https://agentmods.dev/badge/skills/makigjuro/cloudstack-ai-plugins/trivy-scan.svg)](https://agentmods.dev/skills/makigjuro/cloudstack-ai-plugins/trivy-scan)
Your own site
<a href="https://agentmods.dev/skills/makigjuro/cloudstack-ai-plugins/trivy-scan"><img src="https://agentmods.dev/badge/skills/makigjuro/cloudstack-ai-plugins/trivy-scan.svg" alt="Measured on agentmods" height="20"></a>
Per session 71 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,368 The whole file, excluding the scripts and references it only reads on demand.
Security scan B 2 findings. Scan, not verified.
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 $0.00071 $0.01368
Opus 5 $0.00036 $0.00684
Sonnet 5 $0.00014 $0.00274
Haiku 4.5 $0.00007 $0.00137

Measured 3d ago against content hash 3800ccec3295, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade B, and why

trivy-scan scanned grade B with 2 findings 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 3d ago.

The scan reads SKILL.md. This mod also ships 1 executable file (scripts/scan-trivy.sh), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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.

Downloads and executes remote codemediumSupply chain

curl | sh runs whatever the server returns today, which is not necessarily what it returned when this was reviewed.

curl -sfL https://raw.githubusercontent.com/aquasecurity/trivy/main/contrib/install.sh | sh -s -- -b /usr/local/bin

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

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

curl -sfL https://raw.githubusercontent.com/aquasecurity/trivy/main/contrib/install.sh | sh -s -- -b /usr/local/bin
plugins/cloud-infra/skills/trivy-scan/SKILL.md · 149 lines

How it starts

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

Trivy Security Scan

Run Aqua Security's trivy against the infrastructure tree to catch misconfigurations that terraform validate and helm lint miss — things like publicly exposed storage, missing encryption, weak TLS, over-broad IAM role assignments, and container image vulnerabilities.

When to Use

  • Directly (/trivy-scan) — manual scan, e.g. while iterating on a module or before a PR.
  • Indirectly — invoked from /infra-lint (fast check) and /complete-infra (pre-PR verification gate).

Arguments

  • --strict — Fail on any finding, including LOW. Default: fail on CRITICAL, HIGH, MEDIUM; LOW is advisory.
  • --warn-only — Never exit non-zero; just report. Useful for CI continue-on-error style gating.
  • --severity HIGH,CRITICAL — Comma-separated list to override the default severity filter.

Configuration

Read cloudstack.json from the project root at start of execution. Extract:

  • TF_PATH = infrastructure.terraformPath (default: infra/terraform/modules)
  • CHARTS_PATH = infrastructure.chartsPath (default: deploy/charts)

Derive TF_PARENT as the parent directory of TF_PATH (e.g., infra/terraform/modulesinfra/terraform). If cloudstack.json is missing, auto-detect by scanning the project.

Prerequisites

trivy must be installed locally. The skill does NOT auto-install — be explicit about system changes.

# macOS
brew install trivy

# Linux
curl -sfL https://raw.githubusercontent.com/aquasecurity/trivy/main/contrib/install.sh | sh -s -- -b /usr/local/bin

If trivy is missing, the skill prints the install command and exits non-zero (unless --warn-only).

Suppressing findings — .trivyignore

Project-local exemptions go in deploy/terraform/.trivyignore (or the parent of TF_PATH). One rule ID per line, with a comment explaining why:

# Deferred until VNet integration (see deploy/terraform/README.md "Known limitations")
AZU-0013
AZU-0022

# Trivy check written for deprecated Single Server; we run Flexible Server
# and set TLS via `require_secure_transport` + `ssl_min_protocol_version`
AZU-0026

Read the full file on GitHub · 149 lines

Files

What ships with it

1 file 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. 3d ago First seen · 149 lines · 71 tokens per session scan B 3800ccec3295

Subscribe to this mod's changes

trivy-scan is a skill published in the GitHub repository makigjuro/cloudstack-ai-plugins (1 stars, last pushed 1mo ago), licensed MIT. It adds 71 tokens to every session and 1,368 once invoked, about $0.0004 per session on Opus 5. A static security scan graded it B with 2 findings (downloads and executes remote code, makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

analyzing-azure-activity-logs-for-threats

Queries Azure Monitor activity logs and sign-in logs via azure-monitor-query to detect suspicious administrative operations, impossible travel, privilege escalation, and resource modifications. Builds KQL queries for threat hunting in Azure environments. Use when investigating suspicious Azure tenant activity or…

adriannoes/awesome-agentic-ai · 68 tokens

performing-cloud-forensics-investigation

Conduct forensic investigations in cloud environments by collecting and analyzing logs, snapshots, and metadata from AWS, Azure, and GCP services.

adriannoes/awesome-agentic-ai · 34 tokens

opencli-sitemap-author

Use when creating or maintaining OpenCLI site sitemaps: agent-facing navigation, page-state, action, workflow, API-reference, pitfall, and fallback knowledge for a website. Use after browser exploration discovers durable site context, when a sitemap is stale, or when promoting local site knowledge into the repo.

jackwener/OpenCLI · 67 tokens

refresh-arm-sdk-release

WORKFLOW SKILL — Prepares Azure.ResourceManager SDK refresh pull requests in azure-sdk-for-net. WHEN: "prepare sdk refresh", "refresh Azure.ResourceManager package", "update ARM SDK from autorest tag", "refresh changelog dependencies". INVOKES: git and GitHub pull request tools for branch, commit, push, and PR…

Azure/azure-sdk-for-net · 91 tokens

golden-rss

Use when testing the rss golden build.

yusufkaraaslan/Skill_Seekers · 12 tokens

overleaf-sync

Two-way sync between a local paper directory and an Overleaf project, so ARIS audit/edit workflows stay on the local copy while collaborators edit in the Overleaf web UI. Use when user says "同步 overleaf", "overleaf sync", "推送到 overleaf", "connect overleaf", "Overleaf 桥接", "pull overleaf", "push overleaf", or wants to…

wanshuiyin/Auto-claude-code-research-in-sleep · 97 tokens