security-review

作成者: mastra-ai

セキュリティに焦点を当てたコードレビューのチェックリストで、脆弱性を特定するためのものです。

npx skills add https://github.com/mastra-ai/template-github-review-agent --skill security-review

Security Review

When reviewing code for security issues, check each category below. Reference the detailed checklist in references/security-checklist.md.

Injection Vulnerabilities

  • SQL injection: Look for string concatenation in database queries
  • Command injection: Check for unsanitized input passed to shell commands (exec, spawn)
  • XSS: Look for unsanitized user input rendered in HTML/templates
  • Path traversal: Check for user input in file paths without sanitization

Authentication & Authorization

  • Verify authentication checks on protected routes/endpoints
  • Ensure authorization checks match the required access level
  • Look for privilege escalation paths (e.g., user can modify other users' data)
  • Check that password/token comparison uses constant-time comparison

Secrets & Credentials

  • Hardcoded API keys, passwords, tokens, or connection strings
  • Secrets in configuration files that might be committed
  • Sensitive data in logs or error messages
  • Credentials passed via URL query parameters

Input Validation

  • Validate and sanitize all external input (user input, API responses, file contents)
  • Check for missing or weak input validation on API endpoints
  • Verify type coercion doesn't bypass validation
  • Look for overly permissive CORS or CSP configurations

Data Exposure

  • Sensitive data returned in API responses unnecessarily
  • PII or secrets in application logs
  • Information leakage in error messages (stack traces, internal paths)
  • Missing data encryption for sensitive fields

Severity Levels

  • 🔴 CRITICAL: Exploitable vulnerability (injection, auth bypass, exposed secrets)
  • 🟠 HIGH: Potential vulnerability that needs investigation
  • 🟡 MEDIUM: Security weakness or missing best practice
  • 🔵 LOW: Minor security improvement suggestion

mastra-aiのその他のスキル

testing-mastracode-tui
mastra-ai
Konsole上でmastracode TUIの機能をインタラクティブにテストします。モデル設定、スレッドライフサイクル、タスク状態の分離、一般的なブロッカーをカバーします。
official
mastra-smoke-test
mastra-ai
Mastraプロジェクトをローカルでスモークテストするか、ステージング/本番環境にデプロイします。Studio UI、エージェント、ツール、ワークフロー、トレース、メモリなどをテストします。ローカルと…の両方をサポートします。
official
technical-writing
mastra-ai
明確で構造化された技術文書を作成するためのガイドライン
official
code-standards
mastra-ai
プルリクエストをレビューするためのコード品質基準とスタイルガイド
official
debugging-difficult-bugs
mastra-ai
中程度または難しいバグのデバッグ時、特にテストだけでは実際のランタイム障害が明らかにならない可能性がある場合に、早い段階で使用してください。長期にわたるTDDの反復を始める前に、これを起動してください…
official
e2e-frontend-validation
mastra-ai
Playgroundパッケージにおけるフロントエンド変更のための、Playwright MCPを使用したE2E検証ワークフロー
official
e2e-tests-studio
mastra-ai
packages/playground-ui または packages/playground 内のファイルを変更する場合に必須。対象: React コンポーネントの作成・変更・リファクタリング、UI 変更、…
official
general-tasks
mastra-ai
ファイル、シェル、またはウェブに触れるオープンエンドなタスクを処理するためのデフォルトのプロセス。
official