AGENT SKILL

security-review

Review code changes for security vulnerabilities, authentication gaps, injection risks, and unsafe patterns. Use before merging PRs or after security-sensitive changes.

License 许可
Apache-2.0
所属仓库
tamarillo-ai/theta
最近更新
2026-07-15
Stars
★ 15
Forks
1

01 前言 Front Matter

name
security-review
description
Review code changes for security vulnerabilities, authentication gaps, injection risks, and unsafe patterns. Use before merging PRs or after security-sensitive changes.

02 资源文件 2

03 SKILL.md 正文

Diff to review

Review the current branch changes against main:

git diff main...HEAD

If no diff is available, review the most recent commit:

git diff HEAD~1

Audit the changes for:

  1. Injection vulnerabilities — SQL injection, XSS, command injection via unsanitized input
  2. Authentication & authorization gaps — missing auth checks, broken RBAC, token handling issues
  3. Hardcoded secrets — API keys, passwords, tokens in source code
  4. Path traversal — unsanitized file paths that could escape intended directories
  5. Unsafe subprocess calls — raw subprocess without CLICommunicator, shell=True usage
  6. Dependency issues — known vulnerable packages, pinning concerns

Use the checklist in this skill directory

See references/checklist.md for the full security review checklist.

Report format

For each finding:

  • Severity: Critical / High / Medium / Low
  • File: path and line number
  • Issue: what the vulnerability is
  • Fix: concrete remediation steps

04 同仓库更多 Skills