security-scan

security-scan is a command for Claude Code from latestaiagents/agent-skills. It costs 11 tokens per session (414 once invoked), scanned A, original, MIT.

A codebase security scan that checks for common weaknesses listed in the OWASP Top 10, such as injection, broken authentication, cross-site scripting, and unsafe dependencies.

In plain words
What is it for?
Use it to review a whole project or selected files, focusing on areas such as authentication, APIs, data handling, CORS, cookies, and security headers.
Why use it?
It helps uncover security problems across code, dependencies, and configuration before attackers or users find them.

Command for Claude Code

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

Part of the security-guardian plugin — 10 skills, 2 commands shipped together

Good fit Use it to review a whole project or selected files, focusing on areas such as authentication, APIs, data handling, CORS, cookies, and security headers.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/latestaiagents/agent-skills/security-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/latestaiagents/agent-skills

Made for: Claude Code.

Or install security-guardian, the plugin that ships this one along with the rest of its 10 skills, 2 commands.

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/latestaiagents/agent-skills/security-scan.svg)](https://agentmods.dev/commands/latestaiagents/agent-skills/security-scan)
Your own site
<a href="https://agentmods.dev/commands/latestaiagents/agent-skills/security-scan"><img src="https://agentmods.dev/badge/commands/latestaiagents/agent-skills/security-scan.svg" alt="Measured on agentmods" height="20"></a>
Per session 11 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 414 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.00011 $0.00414
Opus 5 $0.00005 $0.00207
Sonnet 5 $0.00002 $0.00083
Haiku 4.5 $0.00001 $0.00041

Measured 4d ago against content hash 28a0759ebc55, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-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 4d 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/security-guardian/commands/security-scan.md · 76 lines

What it actually says

/security-scan

Scan your codebase for common security vulnerabilities.

What I Need

Tell me:

  • What language/framework is your project?
  • Any specific concerns (auth, API, data handling)?
  • Scope: full scan or specific files?

Scan Coverage

OWASP Top 10 Checks

  1. A01 - Injection - SQL, NoSQL, Command injection
  2. A02 - Broken Auth - Session management, passwords
  3. A03 - Sensitive Data - Encryption, data exposure
  4. A04 - XXE - XML processing vulnerabilities
  5. A05 - Access Control - Authorization flaws
  6. A06 - Misconfig - Security settings, defaults
  7. A07 - XSS - Cross-site scripting
  8. A08 - Deserialization - Unsafe object handling
  9. A09 - Vulnerable Components - Dependencies
  10. A10 - Logging - Insufficient monitoring

Scan Process

Step 1: Static Analysis

I'll search for vulnerable patterns in your code:

  • String concatenation in queries
  • Eval/exec with user input
  • Hardcoded secrets
  • Missing input validation

Step 2: Dependency Check

I'll review your dependencies:

  • Known CVEs
  • Outdated packages
  • Unused dependencies

Step 3: Configuration Review

I'll check security settings:

  • CORS configuration
  • Security headers
  • Cookie settings
  • Environment variables

Output

I'll provide:

  • Severity-ranked findings
  • Specific file:line locations
  • Fix recommendations with code examples
  • Links to relevant documentation

Quick Commands

# Run with Semgrep
semgrep --config=p/owasp-top-ten .

# Check dependencies (npm)
npm audit

# Check dependencies (Python)
pip-audit

# Scan secrets
gitleaks detect --source .
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. 4d ago First seen · 76 lines · 11 tokens per session scan A 28a0759ebc55

Subscribe to this mod's changes

security-scan is a command published in the GitHub repository latestaiagents/agent-skills (5 stars, last pushed 4mo ago), licensed MIT. It adds 11 tokens to every session and 414 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-09-03.