Skill Trust Decision

x402-compute

x402-compute 是合法的云算力供给技能,处理区块链支付和云实例管理。代码质量高,安全设计良好(如移除.env自动加载、OWS路径验证),唯一显著风险是文档中声明的远程脚本执行(CLI安装),但属于行业标准做法。

Install decision first Source: ClawHub Scanned: 28 days ago
Files 33
Artifacts 56
Violations 0
Findings 4

Why this conclusion was reached

1/4 dimensions flagged
Pass
Declared vs actual capability

Declared resources and inferred behavior are broadly aligned.

Block
Hidden execution and egress

2 high-risk artifacts or egress signals were extracted.

Pass
Attack chain and severe findings

There is no explicit malicious chain in the report.

Review
Dependencies and supply chain hygiene

4 dependency or supply-chain issues need attention.

What drove the risk score up

声明的远程脚本执行 +15

SKILL.md:613 声明了 curl|sh 安装 sgl CLI 的模式,虽然是行业标准但存在供应链风险

依赖版本未锁定 +5

requirements.txt 使用 >= 版本约束,存在依赖混淆攻击风险

一次性密码磁盘写入 +2

get_one_time_password.py 将临时密码写入 .compute_password_* 文件(0600权限),风险较低

Most important evidence

Medium Supply Chain

远程脚本执行(已声明)

SKILL.md 文档中声明了 `curl -sSf https://grid.x402compute.cc/install.sh | sh` 用于安装节点CLI。这是行业标准做法,但存在供应链风险:远程服务器可被篡改以执行恶意代码。

SKILL.md:613
这是提供算力节点的合法需求。建议使用可信网络环境部署,或在执行前验证脚本哈希。
Medium Supply Chain

依赖版本未锁定

requirements.txt 中所有依赖使用 >= 约束(eth-account>=0.8.0, web3>=6.0.0, requests>=2.28.0, solders>=0.20.0),存在依赖混淆攻击风险。

requirements.txt:1
考虑固定具体版本(如 eth-account==0.12.0)以确保构建可重现性。
Low Sensitive Access

临时凭证文件写入

get_one_time_password.py 将一次性root密码写入 .compute_password_{instance_id} 文件,权限设为0600。虽然密码是一次性的且文件权限受限,但存在磁盘持久化风险。

scripts/get_one_time_password.py:44
可考虑仅输出到stdout而非写入文件,或使用临时文件系统。
Info Doc Mismatch

文档占位符(非安全风险)

api-reference.md 中包含示例IP地址 1.2.3.4,明显是占位符,非真实敏感数据泄露。

references/api-reference.md:265
无需处理。

Declared capability vs actual capability

Filesystem Pass
Declared WRITE
→
Inferred WRITE
scripts/get_one_time_password.py:44 写入凭证文件
Network Pass
Declared READ
→
Inferred READ
所有脚本仅调用 compute.x402layer.cc 和 grid.x402compute.cc API
Shell Pass
Declared WRITE
→
Inferred WRITE
OWS CLI 通过 subprocess 执行(已验证路径)
Environment Pass
Declared READ
→
Inferred READ
wallet_signing.py 读取 PRIVATE_KEY 等密钥,环境隔离

Suspicious artifacts and egress

Critical Dangerous Command
curl -sSf https://grid.x402compute.cc/install.sh | sh

SKILL.md:613

High IP Address
1.2.3.4

references/api-reference.md:265

Medium External URL
https://docs.x402layer.cc/agentic-access/x402-compute

SKILL.md:48

Medium External URL
https://cloud.x402compute.cc

SKILL.md:52

Medium External URL
https://compute.x402layer.cc

SKILL.md:97

Medium External URL
https://grid.x402compute.cc

SKILL.md:99

Medium External URL
https://staking.x402layer.cc

SKILL.md:113

Medium External URL
https://grid.x402compute.cc/v1/models?type=systemone

SKILL.md:245

Medium External URL
https://grid.x402compute.cc/v1/systemone

SKILL.md:248

Medium External URL
https://compute.x402layer.cc/compute/provision

SKILL.md:326

Medium External URL
https://compute.x402layer.cc/compute/instances/

SKILL.md:370

Medium External URL
https://compute.x402layer.cc/compute/credits/topup

SKILL.md:418

Dependencies and supply chain

PackageVersionSourceKnown vulnNotes
eth-account >=0.8.0 pip No 无版本锁定
web3 >=6.0.0 pip No 无版本锁定
requests >=2.28.0 pip No 无版本锁定
solders >=0.20.0 pip No 无版本锁定

File composition

33 files · 6873 lines
Markdown 14 files · 3982 linesPython 17 files · 2882 linesJSON 1 files · 5 linesText 1 files · 4 lines
Files of concern · 8
scripts/get_one_time_password.py Python · 72 lines
临时凭证文件写入
SKILL.md Markdown · 893 lines
远程脚本执行(已声明) · curl -sSf https://grid.x402compute.cc/install.sh | sh · https://docs.x402layer.cc/agentic-access/x402-compute · https://cloud.x402compute.cc · https://compute.x402layer.cc · https://grid.x402compute.cc · https://staking.x402layer.cc · https://grid.x402compute.cc/v1/models?type=systemone · https://grid.x402compute.cc/v1/systemone · https://compute.x402layer.cc/compute/provision · https://compute.x402layer.cc/compute/instances/ · https://compute.x402layer.cc/compute/credits/topup · https://compute.x402layer.cc/compute/credits/balance · 0x5fc5360D0400a0Fd4f2af552ADD042D716F1d168 · https://grid.x402compute.cc/v1/models · https://grid.x402compute.cc/grid/capacity · https://grid.x402compute.cc/v1/chat/completions · https://grid.x402compute.cc/v1 · https://grid.x402compute.cc/install.sh · http://127.0.0.1:8765 · https://docs.x402layer.cc/cloud/provide/node-setup · https://compute.x402layer.cc/pods/catalog · https://compute.x402layer.cc/pods · https://openrouter.ai/api/v1 · https://compute.x402layer.cc/pods/trial · https://compute.x402layer.cc/pods/ · https://x402compute.cc
references/processors.md Markdown · 448 lines
https://processors.x402compute.cc · https://processors.x402compute.cc/processors · 0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913
references/api-reference.md Markdown · 583 lines
文档占位符(非安全风险) · 1.2.3.4 · https://grid.x402compute.cc/v1/models?type=embedding · https://grid.x402compute.cc/v1/models?type=transcription · https://grid.x402compute.cc/v1/providers?model=llama-3.2-3b · https://grid.x402compute.cc/grid/nodes/
scripts/wallet_signing.py Python · 552 lines
0x3600000000000000000000000000000000000000
references/agent-pods-api.md Markdown · 297 lines
https://compute.x402layer.cc/pods/v1 · https://compute.x402layer.cc/pods/v1/pods · https://compute.x402layer.cc/pods/v1/pods/$POD · https://compute.x402layer.cc/pods/v1/pods/$POD/keys · https://compute.x402layer.cc/pods/$POD/v1/chat/completions · https://compute.x402layer.cc/pods/v1/events?after=41&limit=50
scripts/solana_signing.py Python · 299 lines
https://api.mainnet-beta.solana.com · 11111111111111111111111111111111
references/multimodal-embeddings.md Markdown · 248 lines
https://grid.x402compute.cc/v1/embeddings
Other files · agent-pods.md · agent_pod.py · provision.py · grid_embeddings.py

Security positives

代码质量高,安全意识强:明确移除了 .env 自动加载功能(wallet_signing.py 注释详述原因)
OWS 二进制执行有严格验证:要求绝对路径、文件存在、可执行、禁止全局可写
明确禁止 npx 动态下载执行钱包操作(防止供应链攻击)
私钥仅用于本地签名,从不传输到外部
声明的 allowed-tools 与实际代码能力完全匹配
无阴影功能(shadow functionality):所有行为均有文档说明
无凭证收割、远程代码执行(除声明的CLI安装)、数据外泄
使用行业标准 x402 支付协议处理加密货币支付