api-security-testing
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseAPI Security Testing Workflow
API安全测试工作流
Overview
概述
Specialized workflow for testing REST and GraphQL API security including authentication, authorization, rate limiting, input validation, and API-specific vulnerabilities.
针对REST和GraphQL API安全的专用测试工作流,涵盖身份验证、授权、速率限制、输入验证以及API特有的漏洞检测。
When to Use This Workflow
何时使用此工作流
Use this workflow when:
- Testing REST API security
- Assessing GraphQL endpoints
- Validating API authentication
- Testing API rate limiting
- Bug bounty API testing
在以下场景中使用此工作流:
- 测试REST API安全性
- 评估GraphQL端点
- 验证API身份验证机制
- 测试API速率限制
- 漏洞赏金计划中的API测试
Workflow Phases
工作流阶段
Phase 1: API Discovery
阶段1:API发现
Skills to Invoke
需调用的技能
- - API fuzzing
api-fuzzing-bug-bounty - - API scanning
scanning-tools
- - API模糊测试
api-fuzzing-bug-bounty - - API扫描
scanning-tools
Actions
操作步骤
- Enumerate endpoints
- Document API methods
- Identify parameters
- Map data flows
- Review documentation
- 枚举端点
- 记录API方法
- 识别参数
- 映射数据流
- 查阅文档
Copy-Paste Prompts
可复制粘贴的提示语
Use @api-fuzzing-bug-bounty to discover API endpointsUse @api-fuzzing-bug-bounty to discover API endpointsPhase 2: Authentication Testing
阶段2:身份验证测试
Skills to Invoke
需调用的技能
- - Auth testing
broken-authentication - - API auth
api-security-best-practices
- - 身份验证测试
broken-authentication - - API身份验证最佳实践
api-security-best-practices
Actions
操作步骤
- Test API key validation
- Test JWT tokens
- Test OAuth2 flows
- Test token expiration
- Test refresh tokens
- 测试API密钥验证
- 测试JWT令牌
- 测试OAuth2流程
- 测试令牌过期机制
- 测试刷新令牌
Copy-Paste Prompts
可复制粘贴的提示语
Use @broken-authentication to test API authenticationUse @broken-authentication to test API authenticationPhase 3: Authorization Testing
阶段3:授权测试
Skills to Invoke
需调用的技能
- - IDOR testing
idor-testing
- - IDOR测试
idor-testing
Actions
操作步骤
- Test object-level authorization
- Test function-level authorization
- Test role-based access
- Test privilege escalation
- Test multi-tenant isolation
- 测试对象级授权
- 测试功能级授权
- 测试基于角色的访问控制
- 测试权限提升
- 测试多租户隔离
Copy-Paste Prompts
可复制粘贴的提示语
Use @idor-testing to test API authorizationUse @idor-testing to test API authorizationPhase 4: Input Validation
阶段4:输入验证测试
Skills to Invoke
需调用的技能
- - API fuzzing
api-fuzzing-bug-bounty - - Injection testing
sql-injection-testing
- - API模糊测试
api-fuzzing-bug-bounty - - 注入测试
sql-injection-testing
Actions
操作步骤
- Test parameter validation
- Test SQL injection
- Test NoSQL injection
- Test command injection
- Test XXE injection
- 测试参数验证
- 测试SQL注入
- 测试NoSQL注入
- 测试命令注入
- 测试XXE注入
Copy-Paste Prompts
可复制粘贴的提示语
Use @api-fuzzing-bug-bounty to fuzz API parametersUse @api-fuzzing-bug-bounty to fuzz API parametersPhase 5: Rate Limiting
阶段5:速率限制测试
Skills to Invoke
需调用的技能
- - Rate limiting
api-security-best-practices
- - 速率限制测试
api-security-best-practices
Actions
操作步骤
- Test rate limit headers
- Test brute force protection
- Test resource exhaustion
- Test bypass techniques
- Document limitations
- 测试速率限制头
- 测试暴力破解防护
- 测试资源耗尽攻击
- 测试绕过技术
- 记录限制机制
Copy-Paste Prompts
可复制粘贴的提示语
Use @api-security-best-practices to test rate limitingUse @api-security-best-practices to test rate limitingPhase 6: GraphQL Testing
阶段6:GraphQL测试
Skills to Invoke
需调用的技能
- - GraphQL fuzzing
api-fuzzing-bug-bounty
- - GraphQL模糊测试
api-fuzzing-bug-bounty
Actions
操作步骤
- Test introspection
- Test query depth
- Test query complexity
- Test batch queries
- Test field suggestions
- 测试自省机制
- 测试查询深度
- 测试查询复杂度
- 测试批量查询
- 测试字段建议
Copy-Paste Prompts
可复制粘贴的提示语
Use @api-fuzzing-bug-bounty to test GraphQL securityUse @api-fuzzing-bug-bounty to test GraphQL securityPhase 7: Error Handling
阶段7:错误处理测试
Skills to Invoke
需调用的技能
- - Error handling
api-security-best-practices
- - 错误处理测试
api-security-best-practices
Actions
操作步骤
- Test error messages
- Check information disclosure
- Test stack traces
- Verify logging
- Document findings
- 测试错误消息
- 检查信息泄露
- 测试堆栈跟踪
- 验证日志记录
- 记录发现的问题
Copy-Paste Prompts
可复制粘贴的提示语
Use @api-security-best-practices to audit API error handlingUse @api-security-best-practices to audit API error handlingAPI Security Checklist
API安全检查清单
- Authentication working
- Authorization enforced
- Input validated
- Rate limiting active
- Errors sanitized
- Logging enabled
- CORS configured
- HTTPS enforced
- 身份验证功能正常
- 授权机制已生效
- 输入已完成验证
- 速率限制已启用
- 错误信息已脱敏
- 日志记录已开启
- CORS已正确配置
- HTTPS已强制启用
Quality Gates
质量门禁
- All endpoints tested
- Vulnerabilities documented
- Remediation provided
- Report generated
- 所有端点已完成测试
- 漏洞已记录在案
- 已提供修复建议
- 已生成测试报告
Related Workflow Bundles
相关工作流包
- - Security auditing
security-audit - - Web security
web-security-testing - - API development
api-development
- - 安全审计
security-audit - - Web安全测试
web-security-testing - - API开发
api-development