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