К основному содержанию
скилл CX Codex

owasp-top-10 — скилл для Claude Code: что делает и как установить

Набор инструкций по стандарту OWASP Top 10 2021 для поиска уязвимостей в коде. Помогает настроить безопасную аутентификацию, валидацию ввода и предотвратить инъекции.

Установить в Claude Code · Через Skills CLI (Vercel) Все способы и платформы ↓
npx skills add NickCrew/Claude-Cortex --skill owasp-top-10 -a claude-code
Открыть на GitHub

Что делает owasp-top-10

Скилл добавляет в контекст агента шаблоны проверок по классификации OWASP Top 10 2021 года. Он автоматически активируется при редактировании файлов в каталогах auth/ и security/, а также скриптов с именами *secret*.py и *secret*.ts. Внутри заложен процесс аудита из семи этапов: от определения периметра атаки и выбора категорий рисков до статического анализа и проверки исправлений.

Правила охватывают риски от A01 (Broken Access Control) до A10 (SSRF). В инструкциях собраны примеры надёжного кода, принципы эшелонированной защиты и запрет на самодельную криптографию. Скилл напоминает о проверке прав доступа на каждом запросе, защите сессионных cookie через httpOnly и аудите сторонних зависимостей. Поскольку шаблоны исправлений вынесены в отдельные файлы каталога references/, подробный разбор уязвимостей требует загрузки нужного справочника в диалог.

Какие задачи решает

  • проверить эндпоинты на ошибки контроля доступа и инъекции
  • настроить валидацию параметров и фильтрацию пользовательского ввода
  • выявить небезопасные настройки сессий и устаревшие зависимости
  • подготовить проект к аудиту безопасности перед релизом

Примеры запросов агенту

  • Проверь модуль auth/session.ts на соответствие OWASP Top 10 и найди утечки токенов
  • Проведи аудит формы авторизации на уязвимости к инъекциям и проверь параметры cookie
  • Помоги исправить Broken Access Control в контроллере заказов по правилам из справочника

Как установить owasp-top-10

1Через Skills CLI (Vercel)

npx skills add NickCrew/Claude-Cortex --skill owasp-top-10 -a claude-code

2Вручную: положить файлы

~/.claude/skills/owasp-top-10/SKILL.md

Папка скилла целиком; для одного проекта — .claude/skills/owasp-top-10/

По шагам, с командами для каждой платформы: Как установить скилл в Claude Code: пять способов

Вопросы о owasp-top-10

Как установить owasp-top-10 в Claude Code?

Выполните команду npx skills add NickCrew/Claude-Cortex --skill owasp-top-10 -a claude-code. Конфигурация сохранится в файле ~/.claude/skills/owasp-top-10/SKILL.md.

Какие уязвимости разбирает скилл?

Скилл охватывает все категории OWASP Top 10 2021: ошибки контроля доступа, сбои криптографии, инъекции, небезопасный дизайн, ошибки конфигурации и уязвимости SSRF.

Когда агент применяет этот скилл автоматически?

Скилл настроен на отслеживание путей **/auth/** и **/security/**, а также файлов с именами **/*secret*.py и **/*secret*.ts.

Исходный текст

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

Похожие скиллы

Всё по теме «Безопасность» →
git-guardrails-claude-code Matt Pocock Скилл ставит хук Claude Code, который останавливает опасные Git-команды до их запуска. Нужен, если агент не должен делать push или удалять изменения. 499 069установок ponytail-review DietrichGebert Скилл проверяет изменения глубже обычного diff: читает связанный код, ищет ошибки, риски, проблемы нагрузки и недостающие тесты. Пригодится для ревью PR и коммитов. CX Codex +1 57 000установок ponytail-audit DietrichGebert Проверяет репозиторий и ранжирует ошибки, риски и лишний код. Подойдёт, если нужен разовый разбор без автоматических правок. CX Codex +1 45 400установок security-audit cloudflare Проверяет кодовую базу на уязвимости и ищет нарушения границ доверия. Пригодится перед релизом или для точечного разбора опасных участков кода. CX Codex +1 54 800установок security-and-hardening addyosmani Помогает проектировать защиту и проверять код на уязвимости при работе с вводом, авторизацией, сессиями и внешними сервисами. Подойдёт перед релизом и при создании функций, которые обрабатывают недоверенные данные. CX Codex +1 70 200установок supabase официальный supabase Скилл помогает настраивать базу данных, аутентификацию и RLS в Supabase без скрытых дыр в безопасности. CX Codex GP ChatGPT 8установок

Из того же набора4

Спонсоры проекта

Компании, которые помогают держать аналитику открытой