security-audit

security-audit is a skill for Claude Code from lgbarn/shipyard. It costs 97 tokens per session (1,461 once invoked), scanned A, original, MIT.

A code security auditor checks software for common weaknesses, exposed secrets, and unsafe dependency or infrastructure changes. It uses checks based on the OWASP Top 10, a widely used list of major web security risks.

In plain words
What is it for?
Use it to review user input, authentication, authorisation, secrets, dependencies, and infrastructure-as-code for security problems.
Why use it?
It helps find vulnerabilities before attackers or accidental leaks reach production.

Skill for Claude Code

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

Part of the shipyard plugin — 25 skills, 25 commands, 20 agents, 6 hooks shipped together

Good fit Use it to review user input, authentication, authorisation, secrets, dependencies, and infrastructure-as-code for security problems.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/lgbarn/shipyard/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 lgbarn/shipyard --skill security-audit
Clone the repo
git clone --depth 1 https://github.com/lgbarn/shipyard

Made for: Claude Code.

Or install shipyard, the plugin that ships this one along with the rest of its 25 skills, 25 commands, 20 agents, 6 hooks.

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/lgbarn/shipyard/security-audit/github.svg)](https://agentmods.dev/skills/lgbarn/shipyard/security-audit)
Your own site
<a href="https://agentmods.dev/skills/lgbarn/shipyard/security-audit"><img src="https://agentmods.dev/badge/skills/lgbarn/shipyard/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/lgbarn/shipyard/security-audit"><img src="https://agentmods.dev/badge/skills/lgbarn/shipyard/security-audit.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 97 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,461 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. Third-party audits
  • NVIDIA SkillSpector warn 7 Sept 2026
SkillSpector: 1 finding, up to high

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • high Prompt Injection · line 6
    Hidden instructions were detected in comments or invisible text. These could contain malicious directives. Manual review is recommended.
    Fix: Audit all comments and invisible characters. Remove any instructions that direct the agent to perform unauthorized actions. Use plain, reviewable content.
How audits are shown
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.00097 $0.01461
Opus 5.5 $0.00039 $0.00584
Sonnet 5.5 $0.00019 $0.00292
Haiku 4.5 $0.00010 $0.00146

Measured 6d ago against content hash ad8ebc0cff3a, 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 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 6d 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/shipyard/skills/security-audit/SKILL.md · 146 lines

How it starts

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

Security Audit

When to Use

  • Working with any code that handles user input, authentication, or authorization
  • Adding or updating dependencies
  • Reviewing infrastructure-as-code (Terraform, Ansible, Docker, CloudFormation)
  • Before claiming security posture is adequate
  • When conversation mentions: security, vulnerability, CVE, OWASP, secrets, hardening

Natural Language Triggers

  • "security check", "is this secure", "vulnerability scan", "audit security", "check for secrets"

Core principle: Assume every change introduces risk until proven otherwise.

OWASP Top 10 Quick Checks

For every code change, verify:

  • Injection: All user input parameterized/escaped -- no string concatenation in queries or commands
  • Broken Auth: Passwords hashed properly (bcrypt/argon2), session tokens random, rate limiting on auth endpoints
  • Data Exposure: Encryption at rest and transit, no sensitive data in logs/errors, proper key management
  • XXE: XML parsers disable external entities
  • Access Control: Authorization on every request (not just UI), default deny, restrictive CORS
  • Misconfiguration: Debug mode off in production, default credentials changed, security headers set
  • XSS: Output encoding on all user data, CSP headers, no dangerouslySetInnerHTML without sanitization
  • Deserialization: No deserializing untrusted data without allowlists
  • Vulnerable Components: Dependencies pinned, no known CVEs, lock files committed
  • Insufficient Logging: Auth events logged, failures logged, logs don't contain secrets

Secrets Detection

Flag these patterns in ANY file (code, config, IaC, docs, tests):

Pattern What It Is
AKIA[0-9A-Z]{16} AWS Access Key
ghp_[0-9a-zA-Z]{36} GitHub Token
sk-[0-9a-zA-Z]{48} OpenAI/Stripe Secret Key
(postgres|mysql|mongodb)://[^:]+:[^@]+@ DB credentials in URI
-----BEGIN.*PRIVATE KEY----- Private key
(password|secret|token|api_key)\s*[:=]\s*['"][^'"]{8,} Generic secret

Read the full file on GitHub · 146 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. 6d ago Changed · -1 tokens per session ad8ebc0cff3a
  2. 1mo ago First seen · 146 lines · 98 tokens per session scan A b9d8d3153c51

Subscribe to this mod's changes

security-audit is a skill published in the GitHub repository lgbarn/shipyard (65 stars, last pushed 6d ago), licensed MIT. It adds 97 tokens to every session and 1,461 once invoked, about $0.0004 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.