Skill Trust Decision

precc

该技能通过预编译 Rust 二进制实现核心功能,但安装方式采用危险的 curl|bash 模式,攻击者可在安装阶段注入恶意代码。虽有 SHA256 校验但无法验证来源可信度。

Install decision first Source: ClawHub Scanned: Aug 8, 2026
Files 3
Artifacts 5
Violations 0
Findings 4
Most direct threat evidence
Critical RCE
危险的远程脚本执行安装方式

SKILL.md 直接展示 `curl -fsSL https://peria.ai/install.sh | bash` 命令,这是标准的供应链攻击向量。攻击者若能入侵 peria.ai 域名或中间人攻击,即可向用户机器注入任意代码。

SKILL.md:101

Why this conclusion was reached

2/4 dimensions flagged
Pass
Declared vs actual capability

Declared resources and inferred behavior are broadly aligned.

Block
Hidden execution and egress

1 high-risk artifacts or egress signals were extracted.

Block
Attack chain and severe findings

The report includes 3 attack-chain steps and 1 severe findings.

Review
Dependencies and supply chain hygiene

1 dependency or supply-chain issues need attention.

Attack Chain

01
用户安装时执行 curl|bash

Entry · SKILL.md:101

02
攻击者入侵peria.ai,在install.sh注入恶意代码

Escalation · install.sh:1

03
恶意代码获得用户shell权限,执行任意操作

Impact · N/A

What drove the risk score up

curl|bash 远程脚本执行 +25

SKILL.md:101 直接展示危险安装模式,攻击者可在peria.ai劫持后注入恶意代码

安装过程无用户确认 +10

install.sh 自动下载执行,无交互式验证环节

二进制来源不可验证 +10

虽然声称校验SHA256,但peria.ai域名的可信度未经验证

Most important evidence

Critical RCE

危险的远程脚本执行安装方式

SKILL.md 直接展示 `curl -fsSL https://peria.ai/install.sh | bash` 命令,这是标准的供应链攻击向量。攻击者若能入侵 peria.ai 域名或中间人攻击,即可向用户机器注入任意代码。

SKILL.md:101
改为提供预编译二进制包下载链接,让用户手动验证 SHA256 后执行。
Medium Supply Chain

安装源域名可信度未声明

install.sh 从 peria.ai 下载二进制,但未提供该域名的安全审计记录或证书透明度信息。

SKILL.md:100
补充 peria.ai 域名的安全背景,或改用 GitHub Releases 直接下载。
Medium Priv Escalation

PreToolUse 钩子具有命令拦截和修改能力

precc-hook 作为 PreToolUse 钩子运行,可拦截所有 Bash 命令并决定是否修改后执行。这是一个高权限操作,理论上可被滥用执行未预期的命令。

SKILL.md:58
明确告知用户钩子的完整行为范围,添加代码签名验证机制。
Low Doc Mismatch

文档未声明 allowedTools

SKILL.md 缺少 allowedTools 声明,用户和系统无法预知该技能需要的具体工具权限。

SKILL.md:1
添加 allowedTools 字段明确声明 filesystem:READ, shell:WRITE 等权限。

Declared capability vs actual capability

Shell Pass
Declared WRITE
Inferred WRITE
SKILL.md:101 curl -fsSL|bash
Filesystem Pass
Declared READ
Inferred READ+WRITE
SKILL.md:58 写入~/.claude/settings.json
Environment Pass
Declared READ
Inferred READ
SKILL.md:17 PRECC_LICENSE_KEY

Suspicious artifacts and egress

Critical Dangerous Command
curl -fsSL https://peria.ai/install.sh | bash

SKILL.md:101

Medium External URL
https://peria.ai/install.sh

SKILL.md:101

Medium External URL
https://clawhub.ai/skills/precc

SKILL.md:179

Medium External URL
https://clawhub.ai/user/yijunyu

skill-card.md:7

Medium External URL
https://clawhub.ai/yijunyu/skills/precc

skill-card.md:29

Dependencies and supply chain

PackageVersionSourceKnown vulnNotes
precc N/A binary No 预编译Rust二进制,从peria.ai/GitHub下载
precc-hook N/A binary No PreToolUse钩子,拦截Bash命令
cocoindex-code * pip No 可选依赖,无版本锁定

File composition

3 files · 233 lines
Markdown 2 files · 228 linesJSON 1 files · 5 lines
Files of concern · 2
SKILL.md Markdown · 181 lines
危险的远程脚本执行安装方式 · 安装源域名可信度未声明 · PreToolUse 钩子具有命令拦截和修改能力 · 文档未声明 allowedTools · curl -fsSL https://peria.ai/install.sh | bash · https://peria.ai/install.sh · https://clawhub.ai/skills/precc
skill-card.md Markdown · 47 lines
https://clawhub.ai/user/yijunyu · https://clawhub.ai/yijunyu/skills/precc
Other files · _meta.json

Security positives

核心功能为预编译 Rust 二进制,不执行动态脚本
反事实遥测默认禁用,数据不上传
声称 SHA256 校验二进制完整性
有 GitHub 源码仓库可审计
无 scripts/ 目录,无自定义脚本执行