precc
SKILL.md 声明为 Claude Code 成本优化工具,但包含 curl|bash 远程脚本执行这一高危模式,存在供应链风险
Why this conclusion was reached
2/4 dimensions flaggedDeclared resources and inferred behavior are broadly aligned.
1 high-risk artifacts or egress signals were extracted.
The report includes 3 attack-chain steps and 1 severe findings.
2 dependency or supply-chain issues need attention.
Attack Chain
Entry · SKILL.md:1
Escalation · SKILL.md:101
Impact · SKILL.md:101
What drove the risk score up
Line 101: curl -fsSL https://peria.ai/install.sh | bash — 允许远程服务器注入任意代码
install.sh 和 releases URL 无固定版本,易遭依赖劫持攻击
注入 PreToolUse hook 到 ~/.claude/settings.json,存在持久化风险
Most important evidence
curl|bash 远程脚本执行
Line 101 使用 curl -fsSL https://peria.ai/install.sh | bash 安装工具,这是已知的高危模式,允许远程服务器在任何时候注入任意代码。虽然声称会验证 SHA256,但文档未提供校验值或验证命令。
SKILL.md:101 外部 URL 无版本锁定
依赖 GitHub Releases 和 peria.ai/install.sh,但未锁定版本或 commit hash,易遭依赖劫持(dependency hijacking)攻击。
SKILL.md:36 修改 Claude Code hook 配置
安装过程会修改 ~/.claude/settings.json 注入 PreToolUse hook,实现持久化。虽然声称功能是合法的命令修正,但修改核心配置文件存在被滥用风险。
SKILL.md:136 遥测功能设计复杂
v1.1 引入的 counterfactual telemetry 设计了加密存储、k-anonymity、daily-rotated salt 等复杂机制,声称 opt-in 但实现路径复杂,文档未明确数据何时及如何外传。
SKILL.md:72 Declared capability vs actual capability
SKILL.md:101 调用 curl|bash 安装 SKILL.md:136 修改 ~/.claude/settings.json SKILL.md:21 读取 PRECC_LICENSE_KEY Suspicious artifacts and egress
curl -fsSL https://peria.ai/install.sh | bash SKILL.md:101
https://peria.ai/install.sh SKILL.md:101
https://clawhub.ai/skills/precc SKILL.md:179
Dependencies and supply chain
| Package | Version | Source | Known vuln | Notes |
|---|---|---|---|---|
| precc | unspecified | GitHub Releases | No | 无版本锁定 |
| install.sh | dynamic | peria.ai | No | 远程脚本,无校验 |
| cocoindex-code | unspecified | pypi | No | 可选依赖,无版本锁定 |
File composition
SKILL.md