security-audit

security-audit is a skill for Claude Code, Codex from hardness1020/Leeway. It costs 49 tokens per session (365 once invoked), scanned A, original, MIT.

A code-security review guide based on common OWASP web-application risks. It checks source code for leaked secrets, unsafe input handling, authentication and encryption problems, and vulnerable dependencies.

In plain words
What is it for?
Use it to search for hardcoded keys and passwords, injection paths, dangerous command execution, weak login or session logic, and dependency CVEs, then record findings with file and line evidence.
Why use it?
It helps find security issues before code is merged, including risks that may be hidden in test files or caused by outdated packages.

Skill for Claude CodeCodex

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.

agentmods
npx agentmods add skills/hardness1020/leeway/security-audit
Any agent
npx skills add hardness1020/Leeway --skill security-audit
Clone the repo
git clone --depth 1 https://github.com/hardness1020/Leeway

Made for: Claude Code, Codex.

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-audit

README.md
[![agentmods](https://agentmods.dev/badge/skills/hardness1020/leeway/security-audit.svg)](https://agentmods.dev/skills/hardness1020/leeway/security-audit)
Your own site
<a href="https://agentmods.dev/skills/hardness1020/leeway/security-audit"><img src="https://agentmods.dev/badge/skills/hardness1020/leeway/security-audit.svg" alt="Measured on agentmods" height="20"></a>
Per session 49 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 365 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. 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 $0.00049 $0.00365
Opus 5 $0.00024 $0.00182
Sonnet 5 $0.00010 $0.00073
Haiku 4.5 $0.00005 $0.00036

Measured 4d ago against content hash fa2fc7fb3ec1, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

security-audit 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 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.

Runs shell commandslowCapability

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

grep -rn "eval\|exec\|os.system\|subprocess.call" --include="*.py" .
.leeway/skills/security-audit/SKILL.md · 44 lines

What it actually says

Security Audit

Workflow

  1. Search for secrets — grep for API keys, tokens, passwords in source
  2. Check injection points — find user input flowing into commands, queries, HTML
  3. Review auth & crypto — verify password hashing, session management, TLS
  4. Check dependencies — look for known CVEs, unpinned versions
  5. Write findings — categorize by severity, cite evidence

Quick Checks

# Hardcoded secrets
grep -rn "password\|secret\|api_key\|token" --include="*.py" --include="*.ts" .

# Dangerous functions
grep -rn "eval\|exec\|os.system\|subprocess.call" --include="*.py" .

# SQL injection risk
grep -rn "f\".*SELECT\|f\".*INSERT\|f\".*UPDATE" --include="*.py" .

Rules

  • Critical findings block merge — hardcoded secrets, RCE, SQL injection
  • Cite file:line for every finding
  • Flag false positives — better safe than sorry
  • Check test files too — test secrets sometimes leak to production

Output Format

Structure findings by severity:

  • Critical: Must fix before merge
  • High: Should fix
  • Medium: Recommend fixing

For the full OWASP-based checklist, read references/owasp.md.

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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 · 44 lines · 49 tokens per session scan A fa2fc7fb3ec1

Subscribe to this mod's changes

security-audit is a skill published in the GitHub repository hardness1020/Leeway (113 stars, last pushed 3mo ago), licensed MIT. It adds 49 tokens to every session and 365 once invoked, about $0.0002 per session on Opus 5. 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-08-30.