security
БесплатноБез исполняемых скриптовНе проверенSecurity guidelines for secure coding and code review. This skill should be used when architecting/designing systems, writing code, or reviewing code. Use…
Об этом скилле
Security
This skill provides guidance on writing secure code and identifying security vulnerabilities during code review.
Core Principles
- Defense in Depth: Layer multiple security controls; don't rely on a single defense
- Least Privilege: Grant minimum permissions necessary for functionality
- Don't Trust Input: Validate and sanitize all external input
- Keep It Simple: Complex code is harder to secure
- Fail Secure: When errors occur, fail closed rather than open
OWASP Top 10 (2025)
The OWASP Top 10 represents the most critical web application security risks.
A01: Broken Access Control
Failures in enforcing what authenticated users are allowed to do.
Vulnerabilities:
- Missing access control checks on sensitive operations
- Insecure Direct Object References (IDOR) — accessing resources by ID without authorization checks
- Privilege escalation — users accessing admin functionality
- CORS misconfiguration allowing unauthorized API access
- Bypassing access control by modifying URLs, parameters, or JWT tokens
Prevention:
- Deny by default; explicitly grant access
- Implement access control checks server-side, not client-side
- Use consistent access control mechanisms throughout the application
- Log access control failures and alert on repeated failures
- Invalidate sessions on logout and set appropriate timeouts
A02: Security Misconfiguration
Insecure default configurations, incomplete setups, or misconfigured security settings.
Vulnerabilities:
- Default credentials left unchanged
- Unnecessary features enabled (ports, services, pages, accounts)
- Error messages exposing sensitive information (stack traces, database errors)
- Missing security headers
- Outdated or vulnerable software configurations
Prevention:
- Automate secure configuration deployment
- Remove unused features and dependencies
- Review cloud storage permissions (S3 buckets, etc.)
- Send security directives via headers (CSP, X-Content-Type-Options, etc.)
- Use different credentials across environments
A03: Software Supply Chain Failures
Vulnerabilities introduced through dependencies, build systems, or distribution infrastructure.
Vulnerabilities:
- Using components with known vulnerabilities
- Outdated or unmaintained dependencies
- Not verifying package integrity
- Typosquatting attacks (malicious packages with similar names)
- Compromised build pipelines
Prevention:
- Maintain inventory of all dependencies and their versions
- Continuously monitor for vulnerabilities (Dependabot, Snyk, etc.)
- Only obtain packages from official sources
- Verify package signatures and checksums
- Review dependency changes in pull requests
- Use lock files to pin dependency versions
A04: Cryptographic Failures
Failures related to cryptography that expose sensitive data.
Vulnerabilities:
- Transmitting data in cleartext (HTTP, FTP, SMTP)
- Using weak or deprecated algorithms (MD5, SHA1, DES)
- Weak or default cryptographic keys
- Not enforcing encryption (missing TLS, weak TLS configuration)
- Improper key management (hardcoded keys, keys in source control)
Prevention:
- Encrypt all sensitive data in transit and at rest
- Use strong, current algorithms (AES-256, RSA-2048+, SHA-256+)
- Generate keys using cryptographically secure random generators
- Store keys securely, separate from encrypted data
- Use TLS 1.2+ with strong cipher suites
- Never implement custom cryptography
A05: Injection
Untrusted data sent to an interpreter as part of a command or query.
Vulnerabilities:
- SQL Injection — malicious SQL in user input
- NoSQL Injection — malicious queries in document databases
- OS Command Injection — shell commands in user input
- LDAP Injection — malicious LDAP queries
- Cross-Site Scripting (XSS) — malicious scripts in web pages
Prevention:
- Use parameterized queries or prepared statements (never string concatenation)
- Use ORM frameworks correctly
- Validate and sanitize all input (allowlist preferred over denylist)
- Escape output appropriate to context (HTML, JavaScript, SQL, etc.)
- Use Content Security Policy (CSP) headers
- Apply least privilege to database accounts
A06: Insecure Design
Security flaws from missing or ineffective security controls in the design phase.
Vulnerabilities:
- Missing threat modeling
- No rate limiting on expensive operations
- Missing input validation requirements
- Inadequate segregation of duties
- Business logic flaws
Prevention:
- Establish secure development lifecycle
- Use threat modeling for critical features
- Define security requirements and acceptance criteria
- Use secure design patterns and reference architectures
- Integrate security testing into CI/CD
A07: Authentication Failures
Failures in authentication mechanisms.
Vulnerabilities:
- Credential stuffing (using breached username/password lists)
- Brute force attacks (no rate limiting)
- Permitting weak
Установить security в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл security?
Security guidelines for secure coding and code review. This skill should be used when architecting/designing systems, writing code, or reviewing code. Use proactively when discussing vulnerabilities, OWASP, injection attacks, XSS, CSRF, SQL injection, authentication, authorization, access control, encryption, secrets management, input validation, or secure coding practices. (user)
Как установить скилл security?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл security запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
doc-coauthoring
Guide users through a structured workflow for co-authoring documentation. Use when user wants to write documentation, proposals, technical specs, decision…
от Anthropicacademy-guide
Stop and check this skill before finishing any reply to a question about how to use Claude or a Claude product — it recommends matching courses, tutorials…
от Anthropicinternal-comms
A set of resources to help me write all kinds of internal communications, using the formats that my company likes to use. Claude should use this skill…
от Anthropicskill-development
This skill should be used when the user wants to "create a skill", "add a skill to plugin", "write a new skill", "improve skill description", "organize skill…
от Anthropic