owasp-top-10 — Claude Code skill: what it does, how to install
Security audit guide based on OWASP Top 10 2021. Helps agents spot injection flaws, broken access controls, and authentication issues during code reviews.
npx skills add NickCrew/Claude-Cortex --skill owasp-top-10 -a claude-codeWhat owasp-top-10 does
The skill equips coding agents with detection and mitigation workflows mapped to the OWASP Top 10 2021 standard. It triggers automatically when inspecting paths under **/auth/** or **/security/**, as well as files matching *secret*.py and *secret*.ts. Its seven-step audit workflow guides the model through scope definition, vulnerability selection, code inspection, and remediation verification.
Guidance covers risks from A01 (Broken Access Control) down to A10 (SSRF), linking to dedicated reference files for each category. It emphasizes secure-by-default rules: least privilege, strict input allow-lists, using vetted crypto packages, and enforcing authorization on every endpoint rather than trusting frontend checks. Because deep remediation patterns reside in separate files inside references/, the agent must load those documents to deliver detailed fixes.
What it helps with
- audit endpoints for broken access control and injection flaws
- review authentication flows and session cookie configurations
- catch insecure deserialization and data integrity failures
- prepare codebases for security reviews using OWASP 2021 standards
Example prompts for the agent
- Audit auth/service.py for OWASP Top 10 vulnerabilities and suggest fixes
- Check our SQL query builders against injection risks using the OWASP reference guide
- Review permission checks in our API controller for broken access control issues
How to install owasp-top-10
1Skills CLI (Vercel)
npx skills add NickCrew/Claude-Cortex --skill owasp-top-10 -a claude-code2Manually: put the files in place
~/.claude/skills/owasp-top-10/SKILL.mdCopy the whole skill folder; for one project use .claude/skills/owasp-top-10/
1Skills CLI (Vercel)
npx skills add NickCrew/Claude-Cortex --skill owasp-top-10 -a codex2Manually: put the files in place
.agents/skills/owasp-top-10/SKILL.mdFor all projects use ~/.agents/skills/
1Skills CLI (Vercel)
npx skills add NickCrew/Claude-Cortex --skill owasp-top-10 -a cursor2Manually: put the files in place
.cursor/skills/owasp-top-10/SKILL.mdCursor also reads .agents/skills/ and .claude/skills/
1GitHub CLI
gh skill install NickCrew/Claude-Cortex owasp-top-102Manually: put the files in place
.github/skills/owasp-top-10/SKILL.md1Skills CLI (Vercel)
npx skills add NickCrew/Claude-Cortex --skill owasp-top-10 -a gemini-cli2Platform CLI
gemini skills install https://github.com/NickCrew/Claude-Cortex --path skills/owasp-top-10Manually: put the files in place
.devin/skills/owasp-top-10/SKILL.mdThe legacy .windsurf/skills/ path still works
Skills CLI (Vercel)
npx skills add NickCrew/Claude-Cortex --skill owasp-top-10 -a opencodeClaude.ai
Zip the folder and upload it in Settings → Capabilities → Skills
Step by step, with commands for each platform: How to install skills in Claude Code: five ways
Questions about owasp-top-10
How do I install owasp-top-10 in Claude Code?
Run npx skills add NickCrew/Claude-Cortex --skill owasp-top-10 -a claude-code. This installs the skill file at ~/.claude/skills/owasp-top-10/SKILL.md.
What does the owasp-top-10 skill do?
It guides your agent through a structured security audit covering all ten OWASP 2021 categories, providing prevention principles and remediation guidance.
Which files automatically trigger this skill?
The skill triggers on files in **/auth/** and **/security/** folders, plus any Python or TypeScript files matching **/*secret*.py and **/*secret*.ts.
Source text
SKILL.md · MIT
--- name: owasp-top-10 description: OWASP Top 10 security vulnerabilities with detection and remediation patterns. Use when conducting security audits, implementing secure coding practices, or reviewing code for common security vulnerabilities. keywords: - CSRF - OWASP - SQL injection - XSS - authentication failure - broken access control - cryptographic failure - injection - security audit - security vulnerability file_patterns: - '**/*secret*.py' - '**/*secret*.ts' - '**/auth/**' - '**/security/**' confidence: 0.9 --- # OWASP Top 10 Security Vulnerabilities Expert guidance for identifying, preventing, and remediating the most critical web application security risks based on OWASP Top 10 2021. ## When to Use This Skill - Conducting security audits and code reviews - Implementing secure coding practices in new features - Reviewing authentication and authorization systems - Assessing input validation and sanitization - Evaluating third-party dependencies for vulnerabilities - Designing security controls and defense-in-depth strategies - Preparing for security certifications or compliance audits - Investigating security incidents or suspicious behavior ## OWASP Top 10 2021 Overview **Ranked by Risk Severity:** 1. **A01** - Broken Access Control (↑ from #5) 2. **A02** - Cryptographic Failures (formerly Sensitive Data Exposure) 3. **A03** - Injection (↓ from #1) 4. **A04** - Insecure Design (NEW) 5. **A05** - Security Misconfiguration 6. **A06** - Vulnerable and Outdated Components 7. **A07** - Identification and Authentication Failures 8. **A08** - Software and Data Integrity Failures (NEW) 9. **A09** - Security Logging and Monitoring Failures 10. **A10** - Server-Side Request Forgery (SSRF) (NEW) ## Quick Reference Load detailed guidance for each vulnerability: | Vulnerability | Reference File | |---|---| | **Broken Access Control** | `skills/owasp-top-10/references/broken-access-control.md` | | **Cryptographic Failures** | `skills/owasp-top-10/references/cryptographic-failures.md` | | **Injection** | `skills/owasp-top-10/references/injection.md` | | **Insecure Design** | `skills/owasp-top-10/references/insecure-design.md` | | **Security Misconfiguration** | `skills/owasp-top-10/references/security-misconfiguration.md` | | **Vulnerable Components** | `skills/owasp-top-10/references/vulnerable-components.md` | | **Authentication Failures** | `skills/owasp-top-10/references/authentication-failures.md` | | **Integrity Failures** | `skills/owasp-top-10/references/integrity-failures.md` | | **Logging & Monitoring** | `skills/owasp-top-10/references/logging-monitoring.md` | | **SSRF** | `skills/owasp-top-10/references/ssrf.md` | | **Prevention Strategies** | `skills/owasp-top-10/references/prevention-strategies.md` | | **Assessment Workflow** | `skills/owasp-top-10/references/assessment-workflow.md` | ## Security Audit Workflow 1. **Identify Scope**: Determine application components and attack surface 2. **Select Vulnerabilities**: Choose relevant OWASP categories based on features 3. **Load Reference**: Read appropriate reference file(s) for detailed patterns 4. **Analyze Code**: Review code against vulnerable and secure patterns 5. **Document Findings**: Record vulnerabilities with severity and remediation 6. **Verify Fixes**: Test that remediations properly address issues 7. **Test Security**: Run automated security testing (SAST, DAST, SCA) ## Core Security Principles ### Defense in Depth - Layer security controls at network, application, data, and monitoring levels - Ensure failure of one control doesn't compromise entire system ### Secure by Default - Deny all access by default, explicitly grant permissions - Fail securely (errors don't expose sensitive information) - Minimize attack surface (disable unused features) - Apply least privilege to all accounts and services ### Input Validation - Validate type, length, format, and allowed values - Use allow-lists over deny-lists - Sanitize for specific context (SQL, HTML, shell, etc.) - Never trust client input ## Common Mistakes 1. **Trusting User Input**: Always validate and sanitize all user-supplied data 2. **Rolling Your Own Crypto**: Use established libraries (bcrypt, AES-256) 3. **Exposing Errors**: Log detailed errors internally, show generic messages to users 4. **Missing Authorization**: Check permissions on every request, not just UI 5. **Weak Session Management**: Use secure, httpOnly, sameSite cookies with HTTPS 6. **Ignoring Dependencies**: Regularly audit and update third-party libraries 7. **No Logging**: Log security events for detection and incident response 8. **Default Configurations**: Harden all systems, disable defaults ## Security Testing Tools **SAST (Static)**: SonarQube, Semgrep, ESLint security plugins **DAST (Dynamic)**: OWASP ZAP, Burp Suite **SCA (Dependencies)**: npm audit, Snyk, Dependabot **Secrets Scanning**: GitGuardian, TruffleHog **Penetration Testing**: Metasploit, Kali Linux tools ## Resources - **OWASP Top 10 2021**: https://owasp.org/Top10/ - **OWASP Cheat Sheets**: https://cheatsheetseries.owasp.org/ - **OWASP ASVS**: Application Security Verification Standard - **CWE Top 25**: Common Weakness Enumeration - **NIST Cybersecurity Framework**: https://www.nist.gov/cyberframework - **CVE Database**: https://cve.mitre.org/ - **Snyk Vulnerability DB**: https://snyk.io/vuln/
© NickCrew · MIT · NickCrew/Claude-Cortex