secure-development
БесплатноБез исполняемых скриптовНе проверенSecurity-by-design principles for developing secure applications following Hack23 ISMS Secure Development Policy
от Hack23★ 15 звёзд на GitHubОб этом скилле
Secure Development Skill
Purpose
This skill ensures all code development follows security-by-design principles as defined in the Hack23 ISMS Secure Development Policy. It applies to all software development activities including web applications, APIs, infrastructure code, and scripts.
Rules
Input Validation
MUST:
- Validate ALL user input at the point of entry (server-side validation is mandatory)
- Use allowlist validation (define what IS allowed, not what ISN'T)
- Validate data type, length, format, and range
- Encode output before rendering to prevent XSS
- Sanitize input before use in queries, commands, or file operations
- Reject invalid input with clear error messages (without exposing system details)
MUST NOT:
- Rely solely on client-side validation
- Trust data from external sources (APIs, databases, files) without validation
- Use blocklist validation as the primary defense
- Echo raw user input back to the browser
- Expose stack traces or system information in error messages
Authentication and Authorization
MUST:
- Enforce authentication for all non-public resources
- Implement multi-factor authentication (MFA) for administrative access
- Use secure session management (HTTPOnly, Secure, SameSite cookies)
- Enforce strong password policies (minimum 12 characters, complexity requirements)
- Implement account lockout after failed login attempts (5 attempts)
- Log all authentication events (success and failure)
- Use the principle of least privilege for all access controls
- Verify authorization at each access point, not just at entry
MUST NOT:
- Store passwords in plaintext or reversible encryption
- Use weak hashing algorithms (MD5, SHA-1) for passwords
- Implement custom authentication schemes without security review
- Share authentication credentials between users or systems
- Grant broad access by default
Cryptography
MUST:
- Use AES-256 for symmetric encryption
- Use RSA-2048 or higher for asymmetric encryption
- Use SHA-256 or higher for hashing
- Enforce TLS 1.2 or higher for all network communications
- Store cryptographic keys securely (use key management systems, not code)
- Use cryptographically secure random number generators (not Math.random())
- Rotate encryption keys according to policy
MUST NOT:
- Hard-code encryption keys, passwords, or secrets in source code
- Use deprecated algorithms (DES, 3DES, MD5, SHA-1, SSL, TLS 1.0/1.1)
- Implement custom cryptographic algorithms
- Store secrets in version control (use secret management tools)
- Use weak or predictable initialization vectors (IVs)
Secure Error Handling
MUST:
- Implement centralized error handling
- Log all security-relevant errors with sufficient detail for investigation
- Return generic error messages to users
- Fail securely (deny access on error, don't fall back to insecure state)
- Clean up resources in finally blocks or using equivalent patterns
- Monitor and alert on unusual error patterns
MUST NOT:
- Expose stack traces to users
- Include sensitive data in error messages (passwords, keys, tokens, PII)
- Log sensitive data (passwords, credit card numbers, SSNs)
- Continue processing after critical security errors
- Suppress security exceptions without logging
Secure Configuration
MUST:
- Use environment variables or secret management for sensitive configuration
- Implement secure defaults (disable debug mode, enable security headers)
- Document all security-relevant configuration options
- Review configuration changes for security implications
- Use principle of least privilege for service accounts and API keys
- Disable unnecessary features, services, and endpoints
MUST NOT:
- Commit configuration files with secrets to version control
- Use default credentials in production
- Enable debug/verbose logging in production
- Expose administrative interfaces to public networks
- Use overly permissive CORS policies
Security Testing
MUST:
- Perform static application security testing (SAST) on every commit
- Perform dynamic application security testing (DAST) before production deployment
- Include security test cases in test suites
- Perform dependency vulnerability scanning
- Test authentication and authorization controls
- Test input validation for injection vulnerabilities
- Document security test results
MUST NOT:
- Deploy code without passing security scans
- Ignore or suppress security findings without proper justification and approval
- Test security controls in production environments
- Use production data in testing environments
Dependency Management
MUST:
- Use dependency scanning tools (e.g., Dependabot, Snyk)
- Keep dependencies up to date with security patches
- Review dependencies for known vulnerabilities before use
- Use package lock files to ensure reproducible builds
- Document approved dependencies and their versions
- R
Установить secure-development в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл secure-development?
Security-by-design principles for developing secure applications following Hack23 ISMS Secure Development Policy
Как установить скилл secure-development?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл secure-development запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
frontend-design
Guidance for distinctive, intentional visual design when building new UI or reshaping an existing one. Helps with aesthetic direction, typography, and making…
от Anthropicwebapp-testing
Toolkit for interacting with and testing local web applications using Playwright. Supports verifying frontend functionality, debugging UI behavior, capturing…
от Anthropicbrand-guidelines
Applies Anthropic's official brand colors and typography to any sort of artifact that may benefit from having Anthropic's look-and-feel. Use it when brand…
от Anthropicweb-artifacts-builder
Suite of tools for creating elaborate, multi-component claude.ai HTML artifacts using modern frontend web technologies (React, Tailwind CSS, shadcn/ui). Use…
от Anthropic