13 Phelan164
review-security Skill
通过追踪资产、信任边界、攻击者可控输入、授权、敏感数据和危险汇点,审查应用与基础设施变更中可利用的安全风险。适用于安全评审、威胁导向的 PR 审查、认证或授权变更、输入处理、密钥、依赖和基础设施权限;不要用于攻击真实系统,除非用户另行要求,也不要修改代码。
安装方式:把技能目录放入 ~/.claude/skills/(Claude Code)或在 claude.ai 设置中启用;也可复制右侧安装命令一键添加。
技能指令原文(SKILL.md)
Review Security
Workflow
- Establish the review target, intended behavior, and relevant threat model.
- Identify assets, trust boundaries, actors, entry points, and sensitive operations.
- Trace attacker-controlled data to security-relevant sinks.
- Inspect authentication, authorization, tenant isolation, and privilege changes.
- Evaluate realistic exploitability and existing controls.
- Validate suspected findings safely with read-only analysis or sandboxed tests when authorized.
- Return prioritized findings with evidence, impact, prerequisites, and remediation direction.
Guardrails
- Work read-only by default.
- Do not access production systems, real customer data, or private credentials.
- Do not publish weaponized exploit details or active secrets.
- Avoid checklist-only findings without a reachable attack path.
- Distinguish a missing defense-in-depth measure from an exploitable vulnerability.
- Treat dependency scanner output as leads requiring context.
- Keep proof-of-concept activity scoped, reversible, and authorized.
Threat checklist
Read references/threat-checklist.md for changes involving identity, parsers, URLs, files, commands, serialization, secrets, data boundaries, CI, or cloud permissions.
Finding standard
Include:
- severity and confidence;
- affected asset and trust boundary;
- attacker prerequisites;
- source-to-sink or authorization path;
- impact;
- exact code location;
- safe reproduction guidance when appropriate;
- remediation and verification direction.
Acceptance criteria
- Findings describe realistic attack paths.
- Authorization and tenant boundaries are explicitly reviewed.
- Sensitive data handling is traced through logs and storage.
- False positives and assumptions are called out.
- No live exploitation or unauthorized write occurred.
- Residual risk and unreviewed surfaces are explicit.