reviewing-security
OWASP API Security Top 10 (2023) と Rust セキュリティベストプラクティス。脆弱性検出。Use when: セキュリティ、脆弱性、OWASP、認証、認可、監査を依頼された時。
When & Why to Use This Skill
This Claude skill is a specialized security auditing tool designed to identify vulnerabilities based on the OWASP API Security Top 10 (2023) and Rust-specific security best practices. It automates the detection of critical risks such as Broken Object Level Authorization (BOLA), authentication flaws, and resource exhaustion, while also scanning Rust codebases for unsafe blocks, dependency vulnerabilities, and hardcoded secrets to ensure robust application security.
Use Cases
- API Security Auditing: Automatically checking API endpoints against OWASP Top 10 standards to prevent unauthorized data access and broken authentication mechanisms.
- Rust Code Hardening: Identifying 'unsafe' code blocks and performing dependency audits to ensure memory safety and supply chain security in Rust-based projects.
- Credential Leak Prevention: Scanning source code for hardcoded passwords, API keys, and sensitive secrets to prevent accidental exposure in repositories.
- Resource Management Review: Evaluating file size limits and pagination implementations to protect services from resource exhaustion and Denial of Service (DoS) attacks.
| name | reviewing-security |
|---|---|
| description | "OWASP API Security Top 10 (2023) と Rust セキュリティベストプラクティス。脆弱性検出。Use when: セキュリティ、脆弱性、OWASP、認証、認可、監査を依頼された時。" |
セキュリティレビュー
OWASP API Security Top 10 (2023) と Rust セキュリティベストプラクティスに基づくレビュースキル。
OWASP チェック項目
| ID | リスク | チェック内容 |
|---|---|---|
| API1 | BOLA | tenant_id 検証、file_id との組み合わせ検証 |
| API2 | Broken Auth | gRPC メタデータ認証 |
| API3 | Property | レスポンスの不要情報 |
| API4 | Resource | ファイルサイズ制限、ページネーション |
Rust セキュリティ
| 項目 | 検索パターン |
|---|---|
| 依存関係脆弱性 | cargo audit |
| unsafe コード | grep -rn "unsafe {" src/ |
| ハードコード認証情報 | grep -rn "(password|secret|api_key)" src/ |