x402-compute
x402-compute 是合法的云算力供给技能,处理区块链支付签名,无凭证外泄行为,但存在已记录在案的远程脚本执行风险
Why this conclusion was reached
1/4 dimensions flaggedDeclared resources and inferred behavior are broadly aligned.
2 high-risk artifacts or egress signals were extracted.
There is no explicit malicious chain in the report.
4 dependency or supply-chain issues need attention.
What drove the risk score up
SKILL.md:525 记录 curl|sh 安装 sgl CLI,但为显式声明的 node-operator 功能
requirements.txt 中 eth-account, web3, solders 等使用 >= 约束
wallet_signing.py 实现了严格的路径验证和 world-writable 检查
Most important evidence
文档中记录远程脚本执行
SKILL.md:525 包含 curl -sSf https://grid.x402compute.cc/install.sh | sh 用于安装 node-operator CLI。这是显式声明的功能(Provide Compute),但远程脚本执行存在供应链风险
SKILL.md:525 依赖无版本锁定
requirements.txt 中所有依赖使用 >= 约束而非固定版本,可能引入依赖混淆攻击风险
requirements.txt:1 凭证读取但无外泄
代码读取 PRIVATE_KEY, SOLANA_SECRET_KEY 等环境变量用于本地签名,未发现任何 exfiltration 行为
scripts/wallet_signing.py:94 Declared capability vs actual capability
scripts/provision.py:233 读取 SSH 密钥文件; scripts/get_one_time_password.py:50 写入 .compute_password_* 所有 API 调用指向 compute.x402layer.cc 和 grid.x402compute.cc 等合法域名 scripts/wallet_signing.py:139 通过 subprocess.run 执行 OWS 二进制 PRIVATE_KEY, SOLANA_SECRET_KEY 等从 os.getenv 读取,无 .env 自动加载 Suspicious artifacts and egress
curl -sSf https://grid.x402compute.cc/install.sh | sh SKILL.md:525
1.2.3.4 references/api-reference.md:233
https://docs.x402layer.cc/agentic-access/x402-compute SKILL.md:31
https://cloud.x402compute.cc SKILL.md:35
https://compute.x402layer.cc SKILL.md:80
https://grid.x402compute.cc SKILL.md:82
https://staking.x402layer.cc SKILL.md:95
https://compute.x402layer.cc/compute/provision SKILL.md:266
https://compute.x402layer.cc/compute/instances/ SKILL.md:310
https://compute.x402layer.cc/compute/credits/topup SKILL.md:357
https://compute.x402layer.cc/compute/credits/balance SKILL.md:364
0x5fc5360D0400a0Fd4f2af552ADD042D716F1d168 SKILL.md:405
Dependencies and supply chain
| Package | Version | Source | Known vuln | Notes |
|---|---|---|---|---|
| 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
scripts/get_one_time_password.py SKILL.md scripts/wallet_signing.py references/processors.md references/api-reference.md scripts/solana_signing.py references/node-operator.md