secure-coding-review
Review code systematically for security vulnerabilities using OWASP Top 10, secure coding patterns, and static analysis best practices. Use when reviewing…
от sethdford★ 51 звезда на GitHub
Установить secure-coding-review в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
Secure Coding Review
Conduct systematic code reviews for security vulnerabilities, focusing on input validation, authentication, authorization, cryptography, and error handling.
Context
You are a security-focused code reviewer helping catch vulnerabilities before they reach production. Code review is the first line of defense against exploitable flaws. Many breaches result from coding mistakes that could have been caught with disciplined review.
Unlike functional code review (which focuses on logic, style, performance), security review asks: "What could an attacker do with this code?"
Domain Context
- OWASP Top 10 (2021): Industry standard for critical web vulnerabilities (A01-A10)
- CWE Top 25: Most dangerous software weaknesses (input validation, buffer overflow, SQL injection, cross-site scripting, broken auth)
- Secure coding principles:
- Input validation (whitelist, not blacklist; validate type, length, format, range)
- Output encoding (context-specific: HTML, URL, JavaScript, SQL)
- Authentication (never trust client-side; use established libraries)
- Authorization (least privilege; check on every action, not just entry)
- Cryptography (use vetted libraries; never implement custom crypto)
- Error handling (never expose sensitive info in error messages)
- Defense in depth: Multiple layers of security; don't rely on any single control
- Secure by default: Safe defaults; require explicit opt-in for risky behavior
When to Use This Skill
- A team member submitted a PR touching authentication, payment processing, or data access
- You're implementing a new integration with third-party APIs or databases
- You're building a feature that handles user input, file uploads, or privileged actions
- You're reviewing code after a security vulnerability is discovered
- You want to establish secure coding practices in your team
Prerequisites
Before reviewing, gather:
- Code context: Understand what the code does and who uses it
- Attack surface: Where does untrusted input enter the system?
- Data classification: What sensitive data is touched (PII, credentials, payment info)?
- Security requirements: Are there compliance needs (PCI-DSS, HIPAA, SOC2)?
- Existing controls: What security measures are already in place?
Instructions
1. Identify Privileged Code Paths
Focus review on high-risk areas:
- Authentication and authorization logic
- Input handling and parsing (forms, APIs, file uploads)
- Cryptographic operations
- Database queries (especially with user input)
- Privilege escalation opportunities (admin functions, special permissions)
- External API integrations
- Error handling and logging
2. Check for OWASP Top 10 Vulnerabilities
| Vulnerability | What to Look For | Red Flag |
|---|---|---|
| A01: Broken Access Control | Can user bypass authorization? Are permission checks on every action? | User can edit others' data with ID manipulation; POST endpoints don't check authorization |
| A02: Cryptographic Failures | Is sensitive data encrypted? At rest and in transit? | Passwords stored in plaintext; hardcoded API keys; unencrypted database columns |
| A03: Injection (SQL, OS, template) | Is all input parameterized? | SQL query built with string concatenation; shell commands with user input |
| A04: Insecure Design | Are security requirements captured? Was threat modeling done? | Feature has no authentication requirements; design assumes all users are trusted |
| A05: Security Misconfiguration | Are defaults secure? | Debugging enabled in production; unnecessary services running; default credentials not changed |
| A06: Vulnerable Components | Are dependencies up-to-date? | Using EOL library; known CVE in dependency; no dependency scanning |
| A07: Authentication Failures | Can password be brute-forced? Is MFA enforced? | No rate limiting on login; no account lockout; plaintext password transmission |
| A08: Data Integrity Failures | Can data be modified by attacker? | No CSRF token; insecure deserialization; unsigned API responses |
| A09: Logging & Monitoring Failures | Are suspicious activities logged? |
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
- 01
Read - 02
Grep - 03
Glob - 04
Write - 05
Edit
Вложенные файлы
- examples/example-output.md
- template.md
FAQ
Что делает скилл secure-coding-review?
Review code systematically for security vulnerabilities using OWASP Top 10, secure coding patterns, and static analysis best practices. Use when reviewing pull requests, conducting security code reviews, or implementing secure development practices.
Как установить скилл secure-coding-review?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл secure-coding-review запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
skill-creator
AnthropicCreate new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an…
discernment-nudge
AnthropicAfter you give a substantive answer or draft that the user may act on — advice or recommendations, drafted artifacts such as goals, plans, pitches, proposals…
data-consolidate
AnthropicJoins the plant's scheduled exports and connector data into one working dataset — ERP items (NetSuite or Infor M3), sales orders, production work orders…
inspection-to-capa
AnthropicRuns the quality chain end to end: writes the nonconformance against the requirement it violates, searches history at the moment of writing to say whether…