security-scan

security-scan is a command for Claude Code from rohitg00/awesome-claude-code-toolkit. It costs 24 tokens per session (913 once invoked), scanned A, original, Apache-2.0.

A command that scans a codebase for common security weaknesses, including risks from the OWASP Top 10 list, a widely used catalogue of web-application vulnerabilities.

In plain words
What is it for?
Use it to scan a whole project or selected paths, detect the languages and frameworks in use, and review security findings by vulnerability category.
Why use it?
It helps reveal problems such as missing access checks, weak cryptography, exposed secrets, unsafe network use, and injection risks before attackers find them.

Command for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the code-guardian plugin — 2 commands, 1 agent shipped together

Good fit Use it to scan a whole project or selected paths, detect the languages and frameworks in use, and review security findings by vulnerability category.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/rohitg00/awesome-claude-code-toolkit/security-scan
About the project

Awesome Claude Code Toolkit is a curated collection of extensions and configuration for Claude Code, including agents, skills, commands, plugins, hooks, rules, templates, MCP configurations, and companion apps. It is for Claude Code users who want ready-made workflows and integrations for different development tasks. The catalogue add-ons are selected components from this toolkit.

rohitg00/awesome-claude-code-toolkit · 2,717 stars · on GitHub

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/rohitg00/awesome-claude-code-toolkit

Made for: Claude Code.

Or install code-guardian, the plugin that ships this one along with the rest of its 2 commands, 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 security-scan

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

Your own site · 80×15
<a href="https://agentmods.dev/commands/rohitg00/awesome-claude-code-toolkit/security-scan"><img src="https://agentmods.dev/badge/commands/rohitg00/awesome-claude-code-toolkit/security-scan.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 24 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 913 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.00024 $0.00913
Opus 5.5 $0.00010 $0.00365
Sonnet 5.5 $0.00005 $0.00183
Haiku 4.5 $0.00002 $0.00091

Measured 1mo ago against content hash 598aa9fdcaab, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

security-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 1mo 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/code-guardian/commands/security-scan.md · 96 lines

How it starts

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

/code-guardian:security-scan

Perform a security-focused scan of the codebase targeting OWASP Top 10 and common vulnerability patterns.

Process

  1. Determine the scan scope:

    • Default: scan the entire project from the repository root
    • If an argument is provided, limit scanning to that path
    • Identify the primary language(s) and framework(s) by checking package.json, requirements.txt, go.mod, Cargo.toml, etc.
  2. Scan for each vulnerability category:

A01: Broken Access Control

  • Search for endpoints missing authentication middleware
  • Check for direct object reference patterns where user IDs from request params access resources without ownership verification
  • Look for missing CORS configuration or overly permissive origins (*)
  • Find routes that expose admin functionality without role checks

A02: Cryptographic Failures

  • Grep for weak hashing algorithms: MD5, SHA1 used for passwords or tokens
  • Check for hardcoded encryption keys, salts, or initialization vectors
  • Look for HTTP URLs where HTTPS should be used (API calls, webhooks)
  • Verify that sensitive data in logs is masked or redacted

A03: Injection

  • Search for string concatenation or template literals in SQL queries
  • Check for unsanitized input in shell exec, spawn, or system calls
  • Look for innerHTML assignments, dangerouslySetInnerHTML without sanitization
  • Find regex patterns vulnerable to ReDoS (catastrophic backtracking)

A04: Insecure Design

  • Check for missing rate limiting on authentication endpoints
  • Look for predictable resource IDs (sequential integers for sensitive resources)
  • Verify that file uploads validate type, size, and content
  • Check for missing CSRF protection on state-changing requests

A05: Security Misconfiguration

  • Search for debug mode enabled in production configs
  • Check for default credentials in config files or environment examples
  • Look for overly verbose error messages that leak stack traces
  • Verify security headers (CSP, X-Frame-Options, HSTS) in server config

Read the full file on GitHub · 96 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. 1mo ago First seen · 96 lines · 24 tokens per session scan A 598aa9fdcaab

Subscribe to this mod's changes

security-scan is a command published in the GitHub repository rohitg00/awesome-claude-code-toolkit (2,717 stars, last pushed 5mo ago), licensed Apache-2.0. It adds 24 tokens to every session and 913 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.