vuln-scan

vuln-scan is a command for Claude Code from HermeticOrmus/LibreSecOps-Claude-Code. It costs 32 tokens per session (882 once invoked), scanned A, original, MIT.

A structured vulnerability scan for a project directory, container image, or infrastructure description. It detects the target and selects checks for code, dependencies, containers, infrastructure configuration, cloud systems, or secrets.

In plain words
What is it for?
Use it for security checks before deployment, recurring assessments, dependency reviews, or comparing new results with a previous scan.
Why use it?
It gives you one repeatable assessment instead of manually choosing and running separate security tools.

Command for Claude Code

Written for Claude Code: argument-hint in frontmatter.

Part of the vulnerability-scanning plugin — 1 skill, 2 commands, 2 agents shipped together

Good fit Use it for security checks before deployment, recurring assessments, dependency reviews, or comparing new results with a previous scan.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/hermeticormus/libresecops-claude-code/vuln-scan
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.

Clone the repo
git clone --depth 1 https://github.com/HermeticOrmus/LibreSecOps-Claude-Code

Made for: Claude Code.

Or install vulnerability-scanning, the plugin that ships this one along with the rest of its 1 skill, 2 commands, 2 agents.

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

README.md
[![agentmods](https://agentmods.dev/badge/commands/hermeticormus/libresecops-claude-code/vuln-scan/github.svg)](https://agentmods.dev/commands/hermeticormus/libresecops-claude-code/vuln-scan)
Your own site
<a href="https://agentmods.dev/commands/hermeticormus/libresecops-claude-code/vuln-scan"><img src="https://agentmods.dev/badge/commands/hermeticormus/libresecops-claude-code/vuln-scan/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 vuln-scan

Your own site · 80×15
<a href="https://agentmods.dev/commands/hermeticormus/libresecops-claude-code/vuln-scan"><img src="https://agentmods.dev/badge/commands/hermeticormus/libresecops-claude-code/vuln-scan.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 32 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 882 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. 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.00032 $0.00882
Opus 5.5 $0.00013 $0.00353
Sonnet 5.5 $0.00006 $0.00176
Haiku 4.5 $0.00003 $0.00088

Measured 12d ago against content hash 6ca07738d414, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

vuln-scan scanned grade A with 0 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 12d ago.

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.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

plugins/vulnerability-scanning/commands/vuln-scan.md · 109 lines

How it starts

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

/vuln-scan

Run a structured vulnerability assessment on a target, selecting appropriate tools and producing consolidated findings.

Trigger

Use this command when:

  • Assessing the security posture of a codebase or infrastructure
  • Running security checks as part of a deployment gate
  • Performing periodic vulnerability assessments
  • Evaluating a new dependency or component for known vulnerabilities

Input

Required:

  • Target: Project directory, container image, or infrastructure description

Optional:

  • Scan type: code (SAST), dependencies (SCA), container, iac, cloud, secrets, all (defaults to auto-detect)
  • Severity threshold: Minimum severity to report (defaults to medium)
  • Baseline: Path to previous scan results for delta reporting

Process

Step 1: Target Analysis

  1. Identify the target type from project structure and files
  2. Detect programming languages, frameworks, and package managers
  3. Identify container definitions (Dockerfile, docker-compose.yml)
  4. Detect infrastructure-as-code files (Terraform, CloudFormation, Kubernetes manifests)
  5. Map the scanning surface and determine which tool categories apply

Step 2: Tool Selection and Configuration

For each applicable scan type, select and configure tools:

Source Code (SAST):

  • Semgrep with language-appropriate rulesets (p/security-audit, p/owasp, framework-specific packs)
  • Language-specific linters: Bandit (Python), Brakeman (Ruby), ESLint security plugin (JavaScript), SpotBugs + FindSecBugs (Java), gosec (Go)

Dependencies (SCA):

  • Parse all dependency manifests and lock files
  • Check against NVD, GitHub Advisory Database, and OSV
  • Identify direct vs transitive vulnerable dependencies
  • Determine if vulnerable code paths are actually reachable

Container Images:

  • Scan base image for OS-level vulnerabilities
  • Analyze installed packages and their versions
  • Check Dockerfile for security misconfigurations (running as root, exposed secrets, unnecessary packages)
  • Assess image layer efficiency and attack surface

Read the full file on GitHub · 109 lines

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. 12d ago Changed · +5 lines · +32 tokens per session 6ca07738d414
  2. 1mo ago First seen · 104 lines · 0 tokens per session scan A 7b0849d215e4

Subscribe to this mod's changes

vuln-scan is a command published in the GitHub repository HermeticOrmus/LibreSecOps-Claude-Code (4 stars, last pushed 9d ago), licensed MIT. It adds 32 tokens to every session and 882 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.