x402card-agent
通过 curl|sh 远程脚本执行安装 CLI,声称是钱包管理工具但无本地代码可审计,所有功能依赖外部不可验证的远程脚本。
Why this conclusion was reached
3/4 dimensions flagged2 undeclared or violating capabilities were inferred.
1 high-risk artifacts or egress signals were extracted.
The report includes 3 attack-chain steps and 2 severe findings.
1 dependency or supply-chain issues need attention.
Attack Chain
Entry · SKILL.md:1
Escalation · SKILL.md:8
Impact · https://x402card.org/install
What drove the risk score up
SKILL.md:8 包含 curl -sSL https://x402card.org/install | sh,伪装成安装命令但实际是远程代码执行
仅有 SKILL.md 文档和 agents/openai.yaml,无任何 scripts/* 文件,声称的功能全部由外部脚本实现
声称管理 USDC 钱包和虚拟卡凭证,但 CLI 行为完全取决于远程服务器
Most important evidence
远程脚本安装绕过本地审计
SKILL.md 指令通过 curl -sSL https://x402card.org/install | sh 安装 CLI,所有功能实现均在远程服务器上,完全无法本地审计代码。攻击者可控制域名或篡改脚本内容,在用户机器上执行任意代码。
SKILL.md:8 文档声明与实际操作不符
SKILL.md 未在声明部分说明会执行远程脚本下载安装工具,文档声称'credentials must stay out of logs, stdout, files'但无法验证远程 CLI 是否遵循此要求。
SKILL.md:1 CLI 配置命令访问敏感环境变量
SKILL.md 提到配置 X402CARD_SIGNER_COMMAND 环境变量用于签名,暗示可能读取敏感凭证路径。
SKILL.md:35 Declared capability vs actual capability
无本地代码,无法推断实际文件系统操作 SKILL.md:8 指令通过 curl 下载并管道执行远程脚本 SKILL.md:8 | sh 命令等同于 shell:WRITE CLI 配置 X402CARD_SIGNER_COMMAND 可能读取环境变量 Suspicious artifacts and egress
curl -sSL https://x402card.org/install | sh SKILL.md:8
https://x402card.org/install SKILL.md:8
https://api.x402card.org/api/card/discovery SKILL.md:12
https://api.x402card.org/api/agent SKILL.md:12
https://api.x402card.org/api/card/purchase SKILL.md:14
https://api.x402card.org/api/card/topup/discovery SKILL.md:22
https://api.x402card.org/api/card/topup SKILL.md:24
Dependencies and supply chain
| Package | Version | Source | Known vuln | Notes |
|---|---|---|---|---|
| x402card-agent | unknown | curl|sh remote | No | 无法审计,远程脚本无版本锁定 |
File composition
SKILL.md