← スキル一覧に戻る

security-review
by place-to-stand
⭐ 0🍴 0📅 2026年1月19日
SKILL.md
name: security-review description: Perform OWASP Top 10 security audit, check auth/authz guards, find injection vulnerabilities, and identify data exposure. Use when reviewing security-sensitive code, before merging auth changes, or when asked to check for vulnerabilities.
Security Review
Perform a comprehensive security audit focusing on OWASP Top 10 vulnerabilities and application-specific risks.
Scope
Review the specified files or recent changes for:
1. Injection Vulnerabilities
- SQL injection (check Drizzle query construction)
- Command injection in Bash/shell commands
- XSS in React components (raw HTML rendering, unsanitized user input)
- Server-side template injection
2. Authentication & Authorization
- Verify
requireUser()andrequireRole()guards on all protected routes - Check
ensureClientAccess()usage before data queries - Review session handling in
lib/auth/session.ts - Verify RLS bypass is properly handled (per CLAUDE.md: RLS is disabled, app-level guards required)
3. Data Exposure
- Sensitive data in API responses (passwords, tokens, PII)
- Overly permissive data fetching
- Missing field-level access control
- Secrets in client-side code or logs
4. Security Misconfigurations
- Missing rate limiting on sensitive endpoints
- CORS misconfigurations
- Missing security headers (CSP, X-Frame-Options)
- Environment variable exposure
5. Cryptographic Issues
- Weak or missing encryption
- Hardcoded secrets
- Insecure token generation
6. Business Logic Vulnerabilities
- Privilege escalation paths
- IDOR (Insecure Direct Object References)
- Race conditions in state changes
Output Format
For each finding:
[SEVERITY: CRITICAL|HIGH|MEDIUM|LOW]
File: path/to/file.ts:lineNumber
Issue: Brief description
Risk: What could happen if exploited
Fix: Recommended remediation
Actions
- If reviewing staged changes:
git diff --cached - If reviewing a PR: Use the Greptile MCP tools to fetch PR details
- If reviewing specific files: Read and analyze each file
- Cross-reference with
lib/auth/permissions.tspatterns - Check for missing guards by comparing with similar protected routes
Post-Review
Generate a summary with:
- Total findings by severity
- Priority remediation order
- Architectural recommendations if systemic issues found
スコア
総合スコア
50/100
リポジトリの品質指標に基づく評価
✓SKILL.md
SKILL.mdファイルが含まれている
+20
○LICENSE
ライセンスが設定されている
0/10
○説明文
100文字以上の説明がある
0/10
○人気
GitHub Stars 100以上
0/15
○最近の活動
3ヶ月以内に更新がある
0/10
○フォーク
10回以上フォークされている
0/5
✓Issue管理
オープンIssueが50未満
+5
✓言語
プログラミング言語が設定されている
+5
○タグ
1つ以上のタグが設定されている
0/5
レビュー
💬
レビュー機能は近日公開予定です