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

Written for no agent in particular: nothing here depends on one.

Good fit 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.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/hardness1020/leeway/security-audit
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.

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/github.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/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-audit

Your own site · 80×15
<a href="https://agentmods.dev/skills/hardness1020/leeway/security-audit"><img src="https://agentmods.dev/badge/skills/hardness1020/leeway/security-audit.svg" alt="Reviewed on agentmods" width="80" 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. 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.00049 $0.00365
Opus 5.5 $0.00020 $0.00146
Sonnet 5.5 $0.00010 $0.00073
Haiku 4.5 $0.00005 $0.00036

Measured 2mo ago against content hash fa2fc7fb3ec1, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, 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 2mo 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. 2mo 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 (117 stars, last pushed 5mo ago), licensed MIT. It adds 49 tokens to every session and 365 once invoked, about $0.0002 per session on Opus 5.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.

Related

Other skills, from other repositories

describe-pr

Only use when the user explicitly invokes this skill by name.

humanlayer/humanlayer · 15 tokens

code-review

A code-review procedure for examining supplied code or a change diff for evidence-based bugs, compatibility problems, and data risks.

Shy2593666979/AgentChat · 41 tokens

beautify-with-pingfusi

Beautify or redesign an existing website through iterative pingfusi review rounds with a real human reviewer. Use when asked to "beautify this website," "make this page look professional," "polish this UI/design," "improve the visual design," or finish an AI-built page when there is no reference site to match. Do not…

alex-durango/pingfusi · 95 tokens

review-video-with-pingfusi

Have any video reviewed by a real human, through iterative pingfusi review rounds. Use when asked to "review this video", "check the rendered video", "does this video match the prompt/brief", "what do people think of this ad/trailer/demo", or after rendering a Remotion composition or AI-generated clip that no test can…

alex-durango/pingfusi · 136 tokens

aperture_lab_autoresearch

Run Aperture Lab F-Stop on imported public trajectories, prepare review artifacts, compare disagreements, and propose bounded semantic-layer improvements under strict replay gates.

tomismeta/aperture · 38 tokens

fix-with-pingfusi

Fix or polish an existing website clone/draft using pingfusi review rounds. Use when the user says "fix it with pingfusi", "polish this clone", "make this match the original", or asks to finish/verify a draft built by any tool (ditto, lovable, v0, hand-written) until the review passes.

alex-durango/pingfusi · 78 tokens