security-audit
Skill1 starsChanged 6 months agoMITView on GitHub
Perform an OWASP-flavored security review focused on input handling, authentication, authorization, secrets, and dependencies. Use when the user asks for a security audit, threat review, vulnerability check, or wants to harden code before release.
- Reads credentials
140 other projects use a version of this.
Adopted by
Most recently taken up by
- HunLuanZhiZhu/Game-Studios-Plugintheir own version, first seen Oct 5, 2026
- morodomi/dev-crewtheir own version, first seen Oct 5, 2026
- PostHog/posthogtheir own version, first seen Oct 4, 2026
- PostHog/posthog-fosstheir own version, first seen Oct 4, 2026
- louisbrulenaudet/monorepo-templatetheir own version, first seen Oct 2, 2026
- MaxMiksa/Auto-Companytheir own version, first seen Oct 2, 2026
Used with
Projects with it also use asset-spec, create-control-manifest 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.
cenconq25Skillasset-spec
Generates per-asset visual specifications and AI-generation prompts from PRDs and the design bible. Produces structured spec files and updates a master asset manifest. Use after design bible is approved and a UX spec or PRD identifies assets to produce. Output: design/assets/<asset>.md plus design/assets/manifest.md.
Also in 5 projects that use this
cenconq25Skillcreate-control-manifest
Produces a flat, immediately-actionable rules sheet — do this, never do that, per system and per layer — extracted from accepted ADRs, technical preferences, and framework reference docs. More directly usable than ADRs for day-to-day implementation. Run after /architecture-review passes.
Also in 5 projects that use this
- +10 more from cenconq25
Other versions140 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 140
- ruvnet/ruflo★ 74ksame name
- PostHog/posthog★ 40ksame name
- Donchitos/Claude-Code-Game-Studios★ 26ksame name
- cloudflare/security-audit-skill★ 24ksame name
- maximhq/bifrost★ 8.6ksame name
- MaxMiksa/Auto-Company★ 3.1ksame name
- marketcalls/openalgo★ 2.8ksame name
- theopenco/llmgateway★ 1.7ksame name
- laolaoshiren/claude-code-skills-zh★ 876same name
- decebals/claude-code-java★ 747same name
130 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 repository50 other files it gives its agents.
- accessibility-reviewSkill
- adr-authorSkill
- api-designSkill
- architecture-reviewSkill
- caching-strategySkill
- changelogSkill
- ci-cd-pipelineSkill
- codebase-explorationSkill
- code-reviewSkill
- code-style-guideSkill
- context-engineeringSkill
- conventional-commitsSkill
- cost-optimizationSkill
- database-migrationSkill
- data-privacy-reviewSkill
- debuggingSkill
- dependency-updateSkill
- deprecation-migrationSkill
- error-handlingSkill
- feature-flag-rolloutSkill
- filament-resource-designSkill
- flux-ui-patternsSkill
- git-workflowSkill
- i18n-reviewSkill
- idea-refineSkill
- incident-responseSkill
- incremental-implementationSkill
- inertia-patternsSkill
- laravel-ai-featuresSkill
- laravel-eloquent-performanceSkill
- laravel-queue-designSkill
- laravel-testingSkill
- livewire-component-designSkill
- llm-feature-designSkill
- observabilitySkill
- onboarding-docSkill
- performance-budgetSkill
- pr-descriptionSkill
- primevue-patternsSkill
- refactoringSkill
- release-checklistSkill
- resilience-patternsSkill
- runbook-authorSkill
- spec-writingSkill
- task-breakdownSkill
- tech-debt-triageSkill
- test-writingSkill
- threat-modelingSkill
- using-elyra-skillsSkill
- vue-component-patternsSkill
The file
We split this skill into the rules it gives an agent
2 rules. 0 are common, 2 are distinctive, and 0 are very specific to this project.
0
Common
Most of the 118 edited versions we read keep these.
2
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
- Distinctive: line 33
If the user can't answer, suggest starting with the public attack surface (anything reachable without auth) and secret handling.
- Distinctive: line 136
Treat all greps as *leads*, not verdicts.
“Common” is measured: kept by at least 6 in 10 of the 118 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
A pragmatic, OWASP-flavored review. The goal is finding real risks, not generating a checklist that nobody acts on.
When to use
- "Audit X for security issues"
- "Review this code for vulnerabilities"
- "Is this safe to deploy?"
- "Harden the auth flow"
- "Check for secrets / OWASP issues"
Scope this first
Security is infinite; your time is not. Ask:
- What are you protecting? Data (PII, payments, secrets)? Availability? Integrity?
- Who's the threat model? Anonymous internet, authenticated users, malicious insiders, supply chain?
- What's in scope this round? Whole repo, one module, the auth surface, the public API?
If the user can't answer, suggest starting with the public attack surface (anything reachable without auth) and secret handling.
Procedure
- Inventory the attack surface — public endpoints, file uploads, deserialization points, command/SQL/template execution, third-party callbacks
- Walk the checklist below, category by category
- For each finding: confirm it's exploitable (or be honest that it's theoretical), estimate severity, propose a fix
- Report by severity (see Output format)
Checklist
Input handling
- Every external input has explicit validation (type, length, range, format)
- User input never built into SQL via string concat → parameterized queries only
- User input never passed to
eval,exec,Function(),system(), shell, deserializer - Path inputs are normalized and checked against a base directory (no
../traversal) - Uploaded files: type checked by content, not extension; stored outside web root; size-limited; renamed
- Rendered output is context-correctly escaped (HTML / JS / URL / SQL / shell each need their own escaper)
- No regex with catastrophic backtracking on user input (ReDoS)
- XML/YAML parsers disable external entities and unsafe loaders
AuthN (authentication)
- Passwords hashed with
argon2,bcrypt, orscrypt— never MD5/SHA1/SHA256-only - Login is rate-limited and lockout/back-off is implemented
- Session tokens are long, random, server-side invalidatable
- Cookies:
HttpOnly,Secure,SameSite=LaxorStrict - Password reset tokens are single-use, short-lived, and tied to user + email
- MFA available for sensitive accounts
- Logout actually invalidates the session server-side
AuthZ (authorization)
- Every endpoint checks "is this user allowed to do this to this resource?"
- No relying on hidden fields / client-supplied IDs /
refererheaders for permissions - Object-level authorization (IDOR) checked:
GET /orders/42verifies 42 belongs to the caller - Admin-only actions checked on server, not just hidden in UI
- Multi-tenant boundaries enforced in every query
Secrets
- No secrets in source, history, CI logs, error responses, or client bundles
- Secrets loaded from env / secret manager / vault — not files in the repo
.env,.pem, key material in.gitignore- Rotate-able: nothing baked in at build time that can't be changed
- Quick scan:
git log -p -S 'BEGIN PRIVATE KEY',grep -RIn 'api[_-]\?key\|secret\|password' .
Transport & headers
- HTTPS enforced (redirect from HTTP, HSTS header)
- CORS configured intentionally (no
Access-Control-Allow-Origin: *for credentialed APIs) Content-Security-PolicysetX-Frame-Optionsor CSPframe-ancestorsReferrer-Policy: strict-origin-when-cross-originor stricter
CSRF / SSRF
- State-changing requests require CSRF token or are
SameSite+ auth-header-based - Outbound requests to user-supplied URLs are blocked from internal ranges (169.254, 127.0.0.0/8, 10/8, 192.168/16, ::1) and metadata endpoints (
169.254.169.254)
Dependencies & supply chain
- Lockfile committed
- Audit tool run cleanly:
npm audit,pnpm audit,composer audit,pip-audit,cargo audit,bundle audit - No abandoned/unmaintained critical deps
- CI/build secrets scoped (no admin-level GitHub tokens in PR builds from forks)
- Pinned third-party CDN scripts use SRI
Logging & errors
- No secrets, passwords, tokens, or PII in logs
- No stack traces leaked to end users in production
- Errors return generic messages externally, full detail internally
- Audit log for sensitive actions (login, role change, payment, deletion)
Data
- PII encrypted at rest where regulation requires
- Backups exist and have been restored at least once
- Deletes are real deletes (or documented soft-delete with retention policy)
- Database access uses least-privilege accounts (the app doesn't connect as DB owner)
Quick scans to run
# Hardcoded secrets (rough)
grep -RInE '(api[_-]?key|secret|password|token)\s*[:=]\s*["'\''][^"'\'']{6,}' \
--include='*.{js,ts,jsx,tsx,php,py,rb,go,rs,java,kt,yml,yaml,env}' .
# Private key material
grep -RIn 'BEGIN .* PRIVATE KEY' .
# Eval-like primitives
grep -RInE '\b(eval|exec|Function|setTimeout|setInterval)\s*\(' --include='*.{js,ts}' .
# Raw SQL concatenation (heuristic, lots of false positives)
grep -RInE 'SELECT .*\+ .*\bFROM|"\s*\+\s*\$|f"SELECT.*\{' .
# Dependency audit (pick what applies)
npm audit --omit=dev || pnpm audit || composer audit || pip-audit || cargo auditTreat all greps as leads, not verdicts.
Severity rubric
| Tag | Meaning |
| 🔴 Critical | Remote exploit possible by unauthenticated user; data loss; account takeover. Fix before next deploy. |
| 🟠 High | Exploit possible by authenticated user, or critical with significant preconditions. Fix this sprint. |
| 🟡 Medium | Defense-in-depth gap, hardening recommendation, theoretical exploit. |
| 🟢 Low | Best-practice nit, not directly exploitable. |
| 💭 Question | Looks suspicious but you need more context to be sure. |
Output format
## Security audit: <scope>
**Threat model assumed:** <e.g. "anonymous internet attacker against public API">
**Scanned:** <files / modules / endpoints>
### 🔴 Critical
- `path/to/file.ts:42` — <finding>. **Exploit:** <how>. **Fix:** <what>.
### 🟠 High
- …
### 🟡 Medium
- …
### 🟢 Low
- …
### 💭 Questions
- …
### ✅ Looked at and clean
- <category> — <one sentence on what you verified>Anti-patterns
- ❌ "Looks fine 👍" — say what you actually checked
- ❌ Crying wolf — marking every finding "critical" devalues real ones
- ❌ Listing CVEs from
npm auditwithout checking if the vulnerable path is reachable - ❌ Recommending
DOMPurify/helmet/ a WAF as the only fix to an injection bug — fix the root cause too - ❌ Suggesting custom crypto. Don't.
Useful references
- OWASP Top 10
- OWASP ASVS — exhaustive checklist
- OWASP Cheat Sheet Series — practical, per-topic
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.

