owasp-scan

owasp-scan is a command for Claude Code from HermeticOrmus/LibreSecOps-Claude-Code. It costs 0 tokens per session (1,235 once invoked), scanned A, original, MIT.

A command that reviews web application source code against the OWASP Top 10, a standard list of common web security risks, and produces a structured assessment report.

In plain words
What is it for?
Use it for pre-deployment gates, security-focused code reviews, periodic audits, or targeted reviews of frameworks, directories, and files.
Why use it?
It provides a repeatable security review before deployment or when checking an inherited or third-party codebase.

Command for Claude Code

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

Part of the web-application-security plugin — 1 skill, 1 command, 1 agent shipped together

Good fit Use it for pre-deployment gates, security-focused code reviews, periodic audits, or targeted reviews of frameworks, directories, and files.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/hermeticormus/libresecops-claude-code/owasp-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 web-application-security, the plugin that ships this one along with the rest of its 1 skill, 1 command, 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 owasp-scan

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

Your own site · 80×15
<a href="https://agentmods.dev/commands/hermeticormus/libresecops-claude-code/owasp-scan"><img src="https://agentmods.dev/badge/commands/hermeticormus/libresecops-claude-code/owasp-scan.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,235 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. 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.00000 $0.01235
Opus 5.5 $0.00000 $0.00494
Sonnet 5.5 $0.00000 $0.00247
Haiku 4.5 $0.00000 $0.00123

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

Security

Grade A, and why

owasp-scan scanned grade A with 1 finding 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.

Runs shell commandslowCapability

Expected in a hook, worth knowing in a rule or an instructions file.

- Command injection: `exec()`, `system()`, `child_process`, subprocess calls with user input
plugins/web-application-security/commands/owasp-scan.md · 151 lines

How it starts

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

/owasp-scan

Audit source code against the OWASP Top 10 (2021), producing a structured security assessment report.

Trigger

Use this command when you need a systematic security review of a web application codebase. Appropriate for:

  • Pre-deployment security gates
  • Code review with a security focus
  • Periodic security assessments of existing applications
  • Evaluating the security posture of an inherited or third-party codebase

Input

The command operates on the current project directory. Optionally accepts:

  • Target scope: Specific directories or files to focus on (defaults to entire project)
  • Framework hint: If auto-detection fails, specify the framework (e.g., django, rails, express, nextjs, spring)
  • Severity threshold: Minimum severity to report (critical, high, medium, low, info). Defaults to low.

Process

Phase 1: Reconnaissance (Stack Identification)

  1. Identify the programming language(s) and framework(s) from project files (package.json, requirements.txt, Gemfile, pom.xml, go.mod, config files)
  2. Determine the application architecture (monolith, microservices, serverless, static + API)
  3. Identify the template engine, ORM, authentication library, and session management approach
  4. Note framework version and check for known framework-level CVEs
  5. Map entry points: routes, controllers, API endpoints, WebSocket handlers

Phase 2: Systematic OWASP Top 10 Scan

Walk through each category in order, examining relevant code patterns:

A01:2021 - Broken Access Control

  • Search for missing authorization checks on routes/endpoints
  • Identify IDOR patterns (direct database ID references in URLs without ownership verification)
  • Check for directory traversal in file operations
  • Verify CORS configuration
  • Look for privilege escalation paths (role checks, admin functions)

A02:2021 - Cryptographic Failures

  • Check for hardcoded secrets, API keys, passwords in source code
  • Verify password hashing algorithm (bcrypt/scrypt/argon2 vs MD5/SHA1)
  • Check TLS configuration and certificate validation
  • Look for sensitive data in URLs, logs, or error messages
  • Verify encryption at rest for sensitive fields

Read the full file on GitHub · 151 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 · 151 lines · 0 tokens per session scan A 1a55b1e985f7

Subscribe to this mod's changes

owasp-scan is a command published in the GitHub repository HermeticOrmus/LibreSecOps-Claude-Code (4 stars, last pushed 9d ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 1,235 tokens. A static security scan graded it A with 1 finding (runs shell commands). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.