polish
代码审查技能存在 Phase 1 命令注入风险和文档-权限声明不符:声称移除 allowed-tools 但仍可执行任意 shell 命令,review mode 下 agent 可能越权访问文件系统。
技能执行 CLAUDE.md 中声明的验证命令(lint/typecheck),攻击者可通过 PR 修改 CLAUDE.md 注入恶意命令(如 curl|bash 管道),在 CI 环境中可造成 RCE。
SKILL.md:42 Why this conclusion was reached
2/4 dimensions flagged4 undeclared or violating capabilities were inferred.
5 lower-risk artifacts were extracted and still need context.
The report includes 0 attack-chain steps and 1 severe findings.
Dependency information is incomplete, so supply-chain confidence stays limited.
What drove the risk score up
执行 CLAUDE.md 中的验证命令无法限制恶意代码执行(如 'curl|bash' 链)
CHANGELOG 声称移除 allowed-tools 但 skill 实际仍拥有 shell:WRITE 全权
并行 agent 可读取代码库中的敏感信息(密钥、token)
Most important evidence
Phase 1 命令执行未受限
技能执行 CLAUDE.md 中声明的验证命令(lint/typecheck),攻击者可通过 PR 修改 CLAUDE.md 注入恶意命令(如 curl|bash 管道),在 CI 环境中可造成 RCE。
SKILL.md:42 CHANGELOG 声称移除 allowed-tools 但实际无限制
CHANGELOG 2.6.2 记录移除了 allowed-tools 字段,声称 'It existed only to keep that block from prompting',但 SKILL.md 全文未声明任何 allowed-tools 限制,模型可执行任意 shell 命令。
CHANGELOG.md:62 Agent 可读取代码库中的敏感信息
Phase 3 并行启动的 4 个 agent 需要读取 diff 和代码文件,若代码库包含 .env、AWS 凭证、API keys 等敏感信息,agent 可能无意中处理这些数据。
SKILL.md:85 Fix mode 可修改用户代码库
Fix mode 在 Phase 6 执行代码修复,若误用于外部 PR 可能造成未授权代码修改。虽然 review mode 设计了保护,但用户可能混淆模式选择。
SKILL.md:10 Declared capability vs actual capability
SKILL.md:0 - 无 allowed-tools 声明但 Phase 6 执行文件写入 SKILL.md:Phase 1 - 执行 CLAUDE.md 中的任意命令 SKILL.md:Setup - 使用 gh 与 GitHub API 交互 SKILL.md:Phase 3 - 并行启动 4 个子 agent Suspicious artifacts and egress
https://keepachangelog.com/en/2.0.0/ CHANGELOG.md:5
https://semver.org/spec/v2.0.0.html CHANGELOG.md:6
https://www.apache.org/licenses/ LICENSE.txt:3
https://clawhub.ai/user/tenequm skill-card.md:9
https://clawhub.ai/tenequm/skills/code-polish skill-card.md:35
Dependencies and supply chain
There are no structured dependency warnings.
File composition
SKILL.md LICENSE.txt CHANGELOG.md skill-card.md