security-audit
Skill47 starsChanged 4 months agoMITView on GitHub
Use when a codebase needs a formal security audit beyond a quick scan — applies OWASP Top 10 and STRIDE threat modeling from a CSO perspective to surface systemic vulnerabilities.
- 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 repository111 other files it gives its agents.
- AGENTS.mdAGENTS.md
- COPILOT-INSTRUCTIONS.mdCopilot instructions
- .github/copilot-instructions.mdCopilot instructions
- ai-visibilitySkill
- content-strategySkill
- seoSkill
- actions-debuggingSkill
- agentic-engineeringSkill
- autopilot-patternsSkill
- background-agentSkill
- context-primeSkill
- copilot-memorySkill
- cross-session-memorySkill
- ecosystem-intakeSkill
- fleet-parallelSkill
- github-code-searchSkill
- github-codespaces-efficiencySkill
- github-issue-triageSkill
- github-pr-workflowSkill
- ide-switchingSkill
- knowledge-curatorSkill
- mcp-builderSkill
- mcp-ecosystemSkill
- multi-model-strategySkill
- plan-mode-masterySkill
- scope-guardSkill
- session-managementSkill
- stack-detectorSkill
- sub-agent-sandboxingSkill
- task-intake-routerSkill
- team-plannerSkill
- token-cost-optimizerSkill
- api-and-interface-designSkill
- code-reviewSkill
- context-engineeringSkill
- cpp-debuggingSkill
- deprecation-and-migrationSkill
- diagnoseSkill
- fix-build-errorsSkill
- fix-github-issueSkill
- implementSkill
- improve-codebase-architectureSkill
- nestjs-prismaSkill
- nextjs-prismaSkill
- performance-optimizationSkill
- pr-multi-perspective-reviewSkill
- prototypeSkill
- react-vitestSkill
- receiving-code-reviewSkill
- refactor-cleanSkill
- reviewSkill
- skill-creatorSkill
- source-driven-developmentSkill
- spec-driven-developmentSkill
- systematic-debuggingSkill
- tdd-workflowSkill
- zoom-outSkill
- add-to-changelogSkill
- api-documentationSkill
- architecture-decisionsSkill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
6 rules. 0 are common, 5 are distinctive, and 1 is very specific to this project.
0
Common
Most of the 118 edited versions we read keep these.
5
Distinctive
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 19
Before launching a new product or significant feature
- Distinctive: line 20
After adding authentication, authorization, or data handling code
- Distinctive: line 21
When onboarding to a codebase with unknown security posture
- Distinctive: line 142
Be adversarial: Ask Copilot to think like an attacker, not a developer
- Distinctive: line 145
Rotate secrets after audits: If you found any, assume they're compromised
- Very specific: line 156
Run security-scan every PR.
“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 Skill
A structured security review workflow inspired by gstack's /cso role. Treat every
audit as if you are the Chief Security Officer: adversarial, systematic, and unapologetic
about raising issues.
This skill is distinct from the security-scan development skill — it covers full
threat modeling, not just code-level checks.
When to Use
- Before launching a new product or significant feature
- After adding authentication, authorization, or data handling code
- When onboarding to a codebase with unknown security posture
- Periodic audits (monthly, per-sprint, before major releases)
Audit Framework
OWASP Top 10 Checklist
Copilot will systematically check each OWASP category:
> Perform an OWASP Top 10 audit on this codebase. For each category:
> 1. Check if the application is potentially vulnerable
> 2. Find specific code locations if vulnerable
> 3. Recommend a fix
> 4. Rate severity: Critical / High / Medium / LowOWASP categories to cover:
- A01 Broken Access Control — authorization bypasses, privilege escalation
- A02 Cryptographic Failures — weak encryption, hardcoded secrets, cleartext data
- A03 Injection — SQL, NoSQL, OS command, LDAP injection
- A04 Insecure Design — threat modeling gaps, missing security controls
- A05 Security Misconfiguration — default credentials, verbose errors, open cloud storage
- A06 Vulnerable Components — outdated dependencies with known CVEs
- A07 Auth Failures — session management, credential stuffing, weak passwords
- A08 Software Integrity — unsigned updates, insecure CI/CD, deserialization
- A09 Logging Failures — missing security logs, log injection
- A10 SSRF — server-side request forgery, internal service exposure
STRIDE Threat Modeling
For each major component (API endpoint, service, data store):
> Apply STRIDE threat modeling to the [component]. For each threat type,
> describe the attack vector, assess likelihood (1-5), assess impact (1-5),
> and recommend a mitigation.| Threat | Question |
| Spoofing | Can an attacker impersonate a user or service? |
| Tampering | Can data be modified in transit or at rest? |
| Repudiation | Can an actor deny performing an action? |
| Information Disclosure | Can sensitive data be exposed unintentionally? |
| Denial of Service | Can the system be made unavailable? |
| Elevation of Privilege | Can a low-privilege user gain higher access? |
Secrets Scan
> Scan the codebase for hardcoded secrets, API keys, passwords, and tokens.
> Include config files, environment examples, and test fixtures.Check these patterns:
- Hardcoded API keys, tokens, passwords
.env.examplefiles with real values- Comments containing credentials
- Git history (check
.gitlog for accidentally committed secrets) - Infrastructure-as-code files (Terraform, CloudFormation)
Dependency Audit
> Audit our dependencies for known CVEs. Run npm audit / pip audit /
> bundler-audit and summarize critical and high severity issues.Auth & Session Review
> Review the authentication and session management implementation:
> - Token expiration and refresh logic
> - Password hashing (bcrypt/argon2, not MD5/SHA1)
> - Session fixation and hijacking prevention
> - OAuth/OIDC implementation correctness
> - MFA implementationFull Audit Workflow
# 1. Get the lay of the land
> Map the attack surface: list all public API endpoints, auth endpoints,
> file upload handlers, and external service integrations.
# 2. OWASP sweep
> Perform an OWASP Top 10 audit. Start with A01-A03 (highest frequency).
# 3. Threat model critical paths
> Apply STRIDE to our authentication flow and payment processing.
# 4. Secrets scan
> Scan for hardcoded secrets and credentials.
# 5. Dependency check
npm audit --audit-level=high
# 6. Generate report
> Generate a security audit report with:
> - Executive summary (3 sentences)
> - Critical findings (must fix before launch)
> - High findings (fix within 2 weeks)
> - Medium/Low findings (backlog)
> - Recommended next stepsOutput Format
Request a structured report:
> Format the audit findings as a Markdown table:
> | Finding | Category | Severity | Location | Recommended Fix |Tips
- Be adversarial: Ask Copilot to think like an attacker, not a developer
- Audit the happy path last: Most vulnerabilities are in error handling and edge cases
- Check the infrastructure too: Security isn't just code — review CORS config, headers, TLS
- Rotate secrets after audits: If you found any, assume they're compromised
- Schedule regular audits: Security debt accumulates; quarterly > never
Skill Differentiation
| Skill | Scope | When |
| security-audit (this skill) | Full threat model: OWASP + STRIDE + auth + deps. Strategic/CSO view. | Pre-launch, quarterly, new auth feature |
security-scan | Code-level grep patterns + npm audit. Quick tactical scan. | Before every PR, CI integration |
evaluate-repository | Repository-wide 6-dimension scorecard (secrets, deps, auth, error handling, supply chain). | Onboarding to unknown codebase |
Run security-scan every PR. Run security-audit every sprint or release. Run evaluate-repository once on unfamiliar codebases.
See Also
security-scan— Quick code-level vulnerability scan (OWASP grep + STRIDE per feature)evaluate-repository— Full repo security scorecardpr-multi-perspective-review— Security Lens in PR reviewssecret-detection— Dedicated secret and credential scanning
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.

