scan

scan is a command for Claude Code from allsmog/vuln-scout. It costs 20 tokens per session (2,806 once invoked), scanned A, original, MIT.

A command for running automated security checks on source code and saving the findings in a chosen format. Static analysis examines code without running the application.

In plain words
What is it for?
Use it to scan APIs and code with tools such as Semgrep, CodeQL, or Joern; scan a monorepo workspace or a Git change set; apply exclusions and suppressions; and output JSON, SARIF, Markdown, HTML, or pull-request comments.
Why use it?
It brings results from security analyzers into one report and lets you focus scans on a workspace, changed files, or selected tools. Severity rules and suppressions help control which findings affect the result.

Command for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: names the TodoWrite tool; positional $N argument.

Runs only inside its plugin — its command needs a path that Claude Code sets for a plugin’s own hooks and for nothing else. Install the plugin, not this.

Part of the vuln-scout plugin — 32 skills, 15 commands, 9 agents shipped together

Install

Getting it into your agent

This one installs as part of its plugin. Adding the marketplace and installing the plugin brings it with everything else the plugin ships.

Claude Code
/plugin marketplace add allsmog/vuln-scout
Claude Code
/plugin install vuln-scout

Made for: Claude Code.

Or install vuln-scout, the plugin that ships this one along with the rest of its 32 skills, 15 commands, 9 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 scan

README.md
[![agentmods](https://agentmods.dev/badge/commands/allsmog/vuln-scout/scan.svg)](https://agentmods.dev/commands/allsmog/vuln-scout/scan)
Your own site
<a href="https://agentmods.dev/commands/allsmog/vuln-scout/scan"><img src="https://agentmods.dev/badge/commands/allsmog/vuln-scout/scan.svg" alt="Measured on agentmods" height="20"></a>
Per session 20 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 2,806 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 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.1 $0.00020 $0.02806
Opus 5 $0.00010 $0.01403
Sonnet 5 $0.00004 $0.00561
Haiku 4.5 $0.00002 $0.00281

Measured 6d ago against content hash c33fe7c8b44f, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade A, and why

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 6d 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.

vuln-scout/commands/scan.md · 313 lines

How it starts

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

Security Scan

Run automated static analysis and write the results to .claude/findings.json.

Flags

Flag Effect
--profile Use quick (local deterministic rules), deep (installed analyzers), or audit (deterministic baseline for Claude-driven review)
--tools Run api-spec, semgrep, codeql, joern, or a comma-separated combination
--rules Semgrep ruleset override
--workspace Resolve a monorepo workspace before scanning
--since-commit Scan files changed since a commit SHA
--diff-base Backward-compatible alias for diff scans against a git ref
--exclude Extra exclusions
--suppressions Apply .vuln-scout-ignore after aggregation
--format Emit json, sarif, md, html, pr-comment, or badge at the end
--fail-on Exit 2 when unsuppressed finding entries exist at or above the severity
--output Save the final emitted artifact to a file. In Claude plugin workflows, resolve relative output paths under the target workspace when the scan target is not the current directory.
--json Shortcut for --format json
--secrets Run secret scanning (gitleaks/truffleHog) alongside static analysis
--require-tools Fail if any requested tool is unavailable
--custom-rules Generate target-specific Semgrep rules in addition to profile rules
--extended-detectors Run regex-based VulnScout detectors in addition to scanner tools
--incremental Use file-hash cache to skip unchanged files
--generate-pocs Generate proof-of-concept scripts for verified findings
--no-filter Keep low-confidence Semgrep audit results as hotspots instead of dropping them
--no-semantic-analysis Compatibility flag for callers that share /full-audit options; the standalone CLI does not run a Claude semantic analysis phase

The audit profile does not invoke Claude during the scan phase; semantic review is performed afterward by /vuln-scout:verify or /vuln-scout:full-audit.

Read the full file on GitHub · 313 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. 6d ago First seen · 313 lines · 20 tokens per session scan A c33fe7c8b44f

Subscribe to this mod's changes

scan is a command published in the GitHub repository allsmog/vuln-scout (24 stars, last pushed 2mo ago), licensed MIT. It adds 20 tokens to every session and 2,806 once invoked, about $0.0001 per session on Opus 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-08-30.