agentleFS
TJM-NZTJM-NZ/claude-skills/security-audit/SKILL.md

security-audit

Skill0 starsChanged 9 days agoMITView on GitHub

Defensive security review of a codebase - maps the attack surface, traces untrusted input to dangerous operations, and checks authentication and authorisation, injection, web/API, secrets and crypto, data stores, infrastructure and CI/CD, business logic and AI-app risks. Findings carry exploitability and confidence, and secrets are redacted.

192 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use create-stories, story-done and 10 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • lilangMaxSkill

    create-stories

    Break a single epic into implementable story files. Reads the epic, its GDD, governing ADRs, and control manifest. Each story embeds its GDD requirement TR-ID, ADR guidance, acceptance criteria, story type, and test evidence path. Run after /create-epics for each epic.

    Also in 11 projects that use this

  • lilangMaxSkill

    story-done

    End-of-story completion review. Reads the story file, verifies each acceptance criterion against the implementation, checks for GDD/ADR deviations, prompts code review, updates story status to Complete, and surfaces the next ready story from the sprint.

    Also in 11 projects that use this

  • nicepkgSkill

    community-led-growth

    Expert in community-led growth (CLG) - leveraging user communities to drive acquisition, retention, and expansion. Covers building developer communities, user groups, ambassador programs, and turning customers into advocates. Knows the difference between community as a feature vs community as a growth engine, and how to measure community ROI. Use when "community-led, CLG, ambassador program, champion program, user community, developer community, word of mouth, user group, " mentioned.

    Also in 5 projects that use this

  • nicepkgSkill

    ph-community-outreach

    Engage Reddit, Indie Hackers, Hacker News and other communities for Product Hunt launches. Use this skill to identify relevant communities, craft appropriate posts, and drive cross-platform engagement without appearing spammy.

    Also in 5 projects that use this

  • +7 more from lilangMax
  • +1 more from nicepkg

The file

We split this skill into the rules it gives an agent

1 rule. 0 are common, 1 is distinctive, and 0 are very specific to this project.

  • 0

    Common

    Most of the 173 edited versions we read keep these.

  • 1

    Distinctive

    This author's own choices. Worth a look.

  • 0

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Never print a full secret in the report.

    line 47

“Common” is measured: kept by at least 6 in 10 of the 173 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Defensive security reviewer for code the user owns or is authorised to assess. Find real, exploitable weaknesses and say exactly how to fix them. Attack scenarios are described in prose; don't write working exploits, don't probe live systems, and don't run tests against production.

Related: dep-audit for vulnerable and supply-chain-risky dependencies | technical-review for general correctness | accessibility | resilience | data-validation.

Workflow

  1. Context. What is this, who uses it, is it internet-facing, what data does it hold (credentials, personal data, payments, health), how do users authenticate, how is it deployed, and are there compliance needs? Confirm it is a git repo (git rev-parse --git-dir). Documented dev credentials are acceptable; focus on production configuration.
  2. Map the attack surface. Load references/method.md. Write a short map of entry points, trust boundaries and sensitive assets before looking for bugs.
  3. Scope. Offer: Full (all modules) | Quick (authn-authz, input-injection, web-api, crypto-secrets) | Targeted (user picks, or the module matching the changed area). Dependencies go to dep-audit.
  4. Trace and check. Load the chosen modules. For injection-class issues, trace untrusted input from source to sink and look for a mitigation at every hop (framework default, middleware, validation, parameterisation) before reporting.
  5. Tools. Suggest scanners from method.md (secret scanning, SAST, image and IaC scanning). Run them only if installed and the user agrees; don't install silently.
  6. Report.
ModuleCovers
method.mdAttack-surface mapping, source-to-sink tracing, severity and confidence, redaction, standards, tooling
authn-authz.mdSessions, passwords, tokens, OAuth, reset flows, object-level and function-level access, tenant isolation
input-injection.mdSQL/NoSQL/command/template/XML injection, XSS, path traversal, uploads, SSRF, redirects, deserialisation
web-api.mdCSRF, CORS, headers and CSP, cookies, rate limits, data exposure, webhooks, GraphQL
crypto-secrets.mdAlgorithms, keys, TLS, randomness, secrets handling, personal data
data-stores.mdDatabase privileges, row-level security, exposure, backups
infra.mdContainers, network, cloud, CI/CD pipelines, host hardening
business-logic.mdRaces, tampering, workflow bypass, replay
ai-apps.mdPrompt injection, excessive agency, output handling, data leakage

Severity and confidence

Severity combines impact, likelihood and exposure (method.md). Raise it for internet exposure and sensitive data; lower it where a real mitigation exists.

  • Critical: remote compromise, authentication bypass, RCE, or live secrets exposed, reachable without meaningful privileges.
  • High: exploitable with moderate effort, or severe impact behind authentication (privilege escalation, cross-tenant access).
  • Medium: needs specific conditions, or limited impact.
  • Low: minor, hard to exploit, or needs heavy user interaction.
  • Info: hardening and defence in depth.

Confidence: Confirmed (source traced to sink, no mitigation found) | Likely (pattern present, one link unverified; say which) | Possible (pattern only). List Possible items separately under "Needs verification" unless the potential impact is Critical.

Secrets handling

Never print a full secret in the report. Give the type, location and at most the first and last 2-4 characters. A secret found in git history must be treated as compromised: the first recommendation is to rotate it, and removing it from history comes second.

Report format

# Security Audit: [project] | [date]
Context: [...] | Entry points: N | Scope: [...]
Findings: Critical X | High Y | Medium Z | Low W | Info V   (Confirmed a | Likely b | Possible c)
Assessment: 1-2 sentences

## [SEVERITY · Confidence] Title
- Category: [module] | CWE-xxx | OWASP [category, version]
- Location: `file:line` (+ N similar)
- Flow: source -> sink (injection-class findings)
- Attack scenario: who, how, what they gain (prose)
- Evidence: minimal snippet, secrets redacted
- Fix: concrete corrected code or configuration
- Verify: how to confirm safely in a test environment

Then Needs verification, Remediation roadmap (P1 Critical and High, P2 Medium, P3 Low and Info, each with effort S/M/L), and Recommendations: quick wins, automated scanning in CI, monitoring.

Group repeated instances. Every finding has a concrete fix, never "improve security".

After the report

Offer: fix Critical and High findings | add scanning to CI | write a short threat model. Make no changes until the user picks.

Skip

Theoretical issues with no attack path | test-file issues unless they expose production secrets | unused code paths | missing features irrelevant to this application | style issues that don't cause security bugs.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.