security-audit
Skill65 starsChanged 2 months agoApache-2.0View on GitHub
Audit the codebase for exploitable security issues — traces attacker-controlled input to dangerous sinks across HTTP handlers, background jobs, auth and access control, and anything shipped to the client, and checks dependencies for known CVEs. Use when asked for a security review or audit, to check for vulnerabilities or leaked secrets, or before shipping code that handles auth, user input, or external requests.
- Reads credentials
192 other projects use a version of this.
Adopted by
Most recently taken up by
- argos-ci/argostheir own version, first seen Nov 9, 2026
- classroomio/classroomiotheir own version, first seen Nov 9, 2026
- dio-az/dotfilestheir own version, first seen Nov 8, 2026
- roke22/Squadratheir own version, first seen Nov 8, 2026
- qwwiwi/agentos-skills-publictheir own version, first seen Nov 8, 2026
- craigcossairt/trellistheir own version, first seen Nov 8, 2026
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.
lilangMaxSkillcreate-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
lilangMaxSkillstory-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
nicepkgSkillcommunity-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
nicepkgSkillph-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
Other versions192 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 192
- ruvnet/claude-flow★ 80ksame name
- ruvnet/ruflo★ 79ksame name
- PostHog/posthog★ 40ksame name
- Donchitos/Claude-Code-Game-Studios★ 27ksame name
- cloudflare/security-audit-skill★ 18ksame name
- rommapp/romm★ 14ksame name
- kubeshark/kubeshark★ 12ksame name
- maximhq/bifrost★ 9.4ksame name
- mono/SkiaSharp★ 5.6ksame name
- MaxMiksa/Auto-Company★ 3.2ksame name
182 more not listed
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository41 other files it gives its agents.
- AGENTS.mdAGENTS.md
- a11y-auditSkill
- ai-adversarial-loopSkill
- ai-agents-mdSkill
- ai-architectSkill
- ai-audit-codeSkill
- ai-audit-designSkill
- ai-audit-docsSkill
- ai-brainstormSkill
- ai-codegraphSkill
- ai-config-to-projectSkill
- ai-debugSkill
- ai-design-md-plannerSkill
- ai-exploreSkill
- ai-git-cleanupSkill
- ai-issue-reportSkill
- ai-noteSkill
- ai-orchestratorSkill
- ai-prototypeSkill
- ai-prSkill
- ai-read-docsSkill
- ai-researchSkill
- ai-review-uiSkill
- ai-securitySkill
- ai-stress-testSkill
- ai-test-plannerSkill
- ai-triageSkill
- ai-verifySkill
- ai-visual-recapSkill
- ai-writeSkill
- ai-writing-behaviorSkill
- build-checkSkill
- code-auditSkill
- design-checkSkill
- feature-verifySkill
- full-reviewSkill
- perf-auditSkill
- review-routerSkill
- second-opinionSkill
- spec-extractSkill
- verify-featureSkill
The file
We split this skill into the rules it gives an agent
6 rules. 0 are common, 3 are distinctive, and 3 are very specific to this project.
0
Common
Most of the 173 edited versions we read keep these.
3
Distinctive
This author's own choices. Worth a look.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 13
Read .claude/review/CONVENTIONS.md first — stack detection, scope, severity, false-positive gate, report format, and the installed-version …
- Distinctive: line 26
Before judging anything, write down which side of the wire each thing lives on.
- Distinctive: line 58
Every entry point needs, in this order: authentication → authorization *for this specific resource* → input validation.
- Very specific: line 123
Run the ecosystem's audit tool and read the result — npm audit --json, pip-audit, cargo audit, govulncheck, bundler-audit, osv-scanner as a …
- Very specific: line 154
Follow the output contract in CONVENTIONS.md.
- Distinctive: line 176
Read by: the human, full-review Dies: with the assessed codebase revision Next: ai-security
“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.
Files
Security audit
Find issues an attacker could actually exploit. The unit of work is a trace: attacker-controlled input → the path it travels → the dangerous sink it reaches. A finding without that trace is a guess.
Read .claude/review/CONVENTIONS.md first — stack detection, scope, severity,
false-positive gate, report format, and the installed-version rule. That last
one matters here more than anywhere: frameworks change their security defaults
between versions, and half of what a reviewer "knows" about a framework's
escaping, CSRF, or cookie behavior is version-specific. Verify against the
installed source before reporting a missing protection the framework provides
by default — or an assumed protection it does not provide.
This is defensive review of code the user owns. Report vulnerabilities with enough detail to fix them — the trace and the fix, not a weaponized exploit.
1. Map the trust boundaries for this stack
Before judging anything, write down which side of the wire each thing lives on. The boundaries differ by architecture, so derive them rather than assuming:
- Untrusted — request bodies, query and path params, headers, cookies, form data, uploaded files, webhook payloads, message-queue contents, and anything from a third-party API. Also: anything a client can set that the server later trusts.
- Server-only — code paths that never ship to a client, and the secrets they read.
- Public — everything reachable from the client bundle or a downloadable artifact, every environment variable exposed by the framework's public-variable convention, and any config baked into a build. All of it is readable by anyone, regardless of whether it is obvious in the UI.
Identify the framework's specific mechanism for each: how it marks a module as server-only, which env-var prefix it inlines into client builds, and where its request-handling boundary sits. Get these from the installed docs or source.
2. Enumerate the attack surface
List every entry point before judging any of them. Grep is the right tool. Depending on the stack, entry points include: HTTP route definitions and handlers, RPC/GraphQL resolvers, server-invoked client callable functions, webhook receivers, queue and cron consumers, CLI arguments, file watchers, and deserialization of any stored blob.
For each, note who can reach it — unauthenticated, any authenticated user, or a specific role — and confirm that from the code rather than the route name.
3. Checklist
1. Authorization — the highest-yield category Every entry point needs, in this order: authentication → authorization for this specific resource → input validation.
The dominant real bug is a missing ownership check: the handler authenticates the user, then acts on an ID taken straight from the request without confirming the user owns it (IDOR). Check every handler that reads an identifier from input.
Also: privilege checks performed in the client only, with no server re-check;
authorization enforced at a wrapper or layout layer that direct requests bypass;
role checks that pass for a superset of intended roles; mass assignment,
where a whole request body is spread into a persistence call and lets the caller
set fields they should not (role, ownerId, isAdmin, balance).
2. Authentication and session handling
Cookie flags (httpOnly, secure, sameSite), token expiry, rotation on
privilege change, and invalidation on logout. Tokens in URLs or logs. Password
storage using a modern password hash rather than a general-purpose digest.
Timing-unsafe comparison of secrets and tokens. Missing CSRF protection on
state-changing requests, judged against what the framework does by default. Route
protection patterns that under-cover: a matcher or prefix rule that guards
/admin but not /admin/anything-beneath-it is a real and common bug — enumerate
the routes that exist under each protected prefix and confirm coverage rather than
reading the rule and assuming intent.
3. Input validation Unvalidated shapes reaching business logic — no schema, or hand-rolled partial checks. Validation on the client only. Type coercion surprises. Numeric bounds, string lengths, and collection sizes unchecked. File uploads without type, size, and destination constraints.
4. Injection sinks
Trace any non-literal value reaching: raw SQL or query-filter string
concatenation; command execution with interpolated input; eval and its
equivalents; dynamic module loading on user input; template rendering with
autoescaping disabled; raw-HTML insertion APIs; unsanitized markdown or HTML
rendering; LDAP, XPath, and NoSQL query construction; deserialization of
untrusted data into arbitrary types; log injection of unescaped user content.
Also href/src/redirect targets built from user data (javascript: URIs).
5. Secret exposure
Secrets in variables the framework inlines into client builds. Server-only
modules imported into the client graph, pulling their secret access with them.
Secrets committed to source, or .env files not covered by .gitignore — check
the file, and check git history if the change touches secrets handling. Full
error objects, stack traces, or database errors returned to the client. Internal
IDs, paths, and infrastructure hostnames leaked in responses.
6. SSRF and redirects Server-side requests to a URL derived from user input — the classic path to cloud metadata endpoints and internal services. Allowlist by host, never blocklist. Open redirects: a redirect target built from a query param without validating it stays same-origin.
7. Path traversal
Any filesystem path built from user input. .. sequences, absolute paths,
encoded separators, symlinks, and archive-extraction paths (zip-slip). File reads
and writes rooted at user-controlled values.
8. Rate limiting and resource exhaustion Unbounded work triggered by an unauthenticated request: expensive queries, uncapped uploads, unbounded pagination limits, unbounded recursion, catastrophic regex backtracking on user input, decompression bombs. Auth endpoints without throttling.
9. Dependencies
Run the ecosystem's audit tool and read the result — npm audit --json,
pip-audit, cargo audit, govulncheck, bundler-audit, osv-scanner as a
generic fallback. Report only vulnerabilities reachable from this app's code:
a CVE in a transitive dev-only dependency that never runs in production is a Low
at most, and say why. Also check for unpinned or suspicious direct dependencies.
10. Transport, headers, and config
CSP, frame-ancestors / X-Frame-Options, HSTS. CORS — Access-Control-Allow-
Origin: * combined with credentials is a real finding. Cache headers on
authenticated responses (a CDN-cached private response is a data leak). TLS
verification disabled anywhere. Debug modes, verbose errors, or admin surfaces
enabled in production config.
4. Method
- Detect the stack and resolve scope per
CONVENTIONS.md. - Map trust boundaries (§1) and enumerate the attack surface (§2). Do this completely before judging anything — a review that starts with the first interesting-looking file misses whole entry points.
- For each entry point, follow the input forward through the code — reading the functions it calls — until it either reaches a sink or is provably validated.
- Verify pass. For each candidate, construct the concrete attack: who sends
what, from where, and what they get. If you cannot name the attacker and their
gain, it is not a security finding — it may still be a
code-auditfinding, so say so and move on. Then look specifically for the mitigation you might have missed: a guard in middleware, a framework default (check the installed version), a validation layer upstream, a database constraint. - Report.
5. Report
Follow the output contract in CONVENTIONS.md. Write to
.claude/reviews/security-audit-<stamp>.md.
Each finding uses the standard fields, with Trigger written as the attack:
- Trigger: unauthenticated POST to
/api/itemswith{"ownerId": "<other user>"} - Consequence: writes to another user's record — horizontal privilege escalation
- Fix: derive
ownerIdfrom the session in the handler; never read it from the body
Severity: Critical for unauthenticated exploitation, data loss, or secret exposure. High for authenticated privilege escalation or an issue needing a plausible precondition. Do not inflate theoretical issues — a defense-in-depth suggestion is Low, and labeling it Critical trains people to ignore the report.
The Checked and clean section matters more here than in other reviews: list the
entry points you traced and found properly guarded, so the reader knows the
surface was actually covered rather than sampled.
Lifecycle
Lane: full Writes: the security audit report Read by: the human, full-review Dies: with the assessed codebase revision Next: ai-security
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
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.

