Validate WCAG 2.1 Level AA compliance and accessibility best practices. Use when performing accessibility audits and WCAG certification.
中文简介正在准备中。当前显示原文说明。
Auto-activates during requirements analysis to assess security risks using OWASP Top 10 framework, identify security requirements, and recommend mitigation strategies.
中文简介正在准备中。当前显示原文说明。
查看安装方法安装前可以查看交给 AI 代理的指令内容。
The security-assessor skill provides comprehensive security risk assessment capabilities for feature implementations. It evaluates potential security vulnerabilities using the OWASP Top 10 framework, identifies security requirements, and recommends appropriate mitigation strategies to ensure secure-by-design implementations.
This skill auto-activates when you:
Evaluate each of the 10 critical security risks:
Read the requirements to understand:
Use security-checklist.md to systematically evaluate each risk:
Check for:
Assessment Questions:
Risk Level: [None | Low | Medium | High | Critical]
Mitigation:
Check for:
Assessment Questions:
Risk Level: [None | Low | Medium | High | Critical]
Mitigation:
Check for:
Assessment Questions:
Risk Level: [None | Low | Medium | High | Critical]
Mitigation:
Check for:
Assessment Questions:
Risk Level: [None | Low | Medium | High | Critical]
Mitigation:
Check for:
Assessment Questions:
Risk Level: [None | Low | Medium | High | Critical]
Mitigation:
Check for:
Assessment Questions:
Risk Level: [None | Low | Medium | High | Critical]
Mitigation:
Check for:
Assessment Questions:
Risk Level: [None | Low | Medium | High | Critical]
Mitigation:
Check for:
Assessment Questions:
Risk Level: [None | Low | Medium | High | Critical]
Mitigation:
Check for:
Assessment Questions:
Risk Level: [None | Low | Medium | High | Critical]
Mitigation:
Check for:
Assessment Questions:
Risk Level: [None | Low | Medium | High | Critical]
Mitigation:
Based on OWASP assessment, document specific security requirements:
## Security Requirements
### Authentication
- **SR-AUTH-001**: Implement secure password storage (bcrypt, cost ≥12)
- **SR-AUTH-002**: Enforce password complexity (min 12 chars, mixed case, numbers, symbols)
- **SR-AUTH-003**: Implement account lockout after 5 failed attempts
- **SR-AUTH-004**: Session timeout after 30 minutes of inactivity
### Authorization
- **SR-AUTHZ-001**: Implement role-based access control (RBAC)
- **SR-AUTHZ-002**: Check permissions on every protected resource access
- **SR-AUTHZ-003**: Use indirect references to prevent ID enumeration
### Input Validation
- **SR-INPUT-001**: Validate all user input (whitelist approach)
- **SR-INPUT-002**: Sanitize input before database operations
- **SR-INPUT-003**: Limit input length to prevent DoS
- **SR-INPUT-004**: Validate file uploads (type, size, content)
### Data Protection
- **SR-DATA-001**: Encrypt sensitive data at rest (AES-256)
- **SR-DATA-002**: Use TLS 1.3+ for all data in transit
- **SR-DATA-003**: Never log sensitive data (passwords, tokens, PII)
- **SR-DATA-004**: Implement secure data deletion
### API Security
- **SR-API-001**: Implement rate limiting (100 requests/minute per user)
- **SR-API-002**: Use API keys with proper rotation
- **SR-API-003**: Validate content-type headers
- **SR-API-004**: Implement CORS properly
### Logging and Monitoring
- **SR-LOG-001**: Log all authentication attempts (success and failure)
- **SR-LOG-002**: Log all authorization failures
- **SR-LOG-003**: Implement anomaly detection
- **SR-LOG-004**: Alert on suspicious patterns
Use threat-modeling-guide.md to systematically identify threats:
Define testing approach:
## Security Testing Strategy
### Static Analysis
- Run security linters (Bandit for Python, ESLint security plugins)
- Check for hardcoded secrets
- Analyze dependency vulnerabilities
### Dynamic Analysis
- Penetration testing for authentication/authorization
- Input fuzzing for injection vulnerabilities
- Session management testing
- API security testing
### Code Review Focus
- Input validation implementation
- Authentication/authorization logic
- Cryptographic operations
- Error handling
- Logging implementation
### Automated Scanning
- Dependency vulnerability scanning (daily)
- SAST tools in CI/CD
- Container image scanning
Comprehensive OWASP Top 10 checklist with:
Guide for conducting threat modeling:
Feature: User login with email and password
- Users enter email and password
- System authenticates and creates session
- Users can reset forgotten passwords
## Security Assessment
### OWASP Top 10 Risks
1. **Broken Access Control**: LOW
- Feature implements authentication (positive control)
- Need to ensure session validation on all protected endpoints
2. **Cryptographic Failures**: MEDIUM
- Passwords must be hashed with bcrypt (cost ≥12)
- TLS required for credential transmission
- Session tokens must be cryptographically secure
3. **Injection**: LOW
- Email input must be validated
- Use parameterized queries for database operations
7. **Identification and Authentication Failures**: HIGH
- Primary authentication feature - critical risk
- Requires strong password policy
- Needs brute-force protection
- Must implement secure password reset
9. **Security Logging and Monitoring Failures**: MEDIUM
- Must log all authentication attempts
- Alert on suspicious patterns (multiple failures)
### Security Requirements
- **SR-AUTH-001**: Hash passwords with bcrypt (cost ≥12)
- **SR-AUTH-002**: Enforce strong passwords (min 12 chars)
- **SR-AUTH-003**: Implement rate limiting (5 attempts per 15min)
- **SR-AUTH-004**: Session timeout after 30min inactivity
- **SR-INPUT-001**: Validate email format
- **SR-DATA-001**: Use TLS 1.3+ for credential transmission
- **SR-LOG-001**: Log all authentication attempts
- **SR-LOG-002**: Alert on 10+ failures from same IP
### Recommendations
1. Implement MFA as optional enhancement
2. Consider passwordless authentication for future
3. Implement CAPTCHA after 3 failed attempts
4. Use secure password reset tokens (expiring, one-time use)
This skill is used by:
Version: 2.0.0 Auto-Activation: Yes (when assessing security) Phase: 1 (Requirements Analysis) Created: 2025-10-29
还没有评价。欢迎分享你的使用感受。
无需登录即可发表。欢迎分享使用感受、提问,或说明在哪些环境下无法运行。
还没有评论。来写第一条吧。
Validate WCAG 2.1 Level AA compliance and accessibility best practices. Use when performing accessibility audits and WCAG certification.
中文简介正在准备中。当前显示原文说明。
Analyze feature requirements, dependencies, and security considerations. Use when starting feature implementation from GitHub issues to understand scope, technical feasibility, and risks.
中文简介正在准备中。当前显示原文说明。
Run SQL queries against psql, BigQuery, or MySQL from the terminal, including natural-language-to-SQL and schema exploration. Use when analyzing data, inspecting DB state, or debugging tables. Trigger on "query the database", "SQL", "show me data from", "explore table".
中文简介正在准备中。当前显示原文说明。
Design REST APIs or function contracts with clear request/response specifications, error handling patterns, authentication strategies, and comprehensive documentation.
中文简介正在准备中。当前显示原文说明。
Generate comprehensive API endpoint tests for REST and GraphQL APIs. Creates tests for all HTTP methods, status codes, authentication, and validation.
中文简介正在准备中。当前显示原文说明。
Design component architecture and module structure using established architectural patterns for clean, maintainable, and scalable systems.
中文简介正在准备中。当前显示原文说明。