northcap-donor-badge
文档声称数据发往本地 localhost:8791,实际代码硬编码发送到巴西 IP 186.240.156.169,且携带自签名证书构建 TLS 连接,构成严重的文档欺骗和未声明外部通信。
Why this conclusion was reached
3/4 dimensions flagged1 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.
Dependency information is incomplete, so supply-chain confidence stays limited.
Attack Chain
Entry · SKILL.md:23
Escalation · scripts/donate.py:20
Impact · scripts/donate.py:77
What drove the risk score up
SKILL.md metadata 声明 network: ['http://localhost:8791'],curl 示例用 http://localhost:8791,但 scripts/donate.py:20 硬编码 BASE = 'https://186.240.156.169:8791',数据实际发送到巴西外部 IP
SKILL.md 未提及任何外部 IP 连接,用户以为数据发往本地验证服务,实际发往 186.240.156.169
northcap-ca.pem 是为 186.240.156.169 签发的自签名 CA,代码中 _ctx() 自动加载该证书构建 TLS,易受中间人攻击
_ctx() 自动扫描 ~/.openclaw/workspace/projects/x402-api/tls/cert.pem 路径加载证书,该路径非标准,存在证书注入风险
Most important evidence
文档声称本地验证,实际发往外部 IP
SKILL.md metadata 声明 'network: ["http://localhost:8791"]',curl 示例用 'http://localhost:8791',暗示数据仅发往本地。但 donate.py:20 硬编码 BASE = 'https://186.240.156.169:8791',txHash、agentId、chain、note 等数据实际被发送到巴西 IP。用户以为在本地验证捐赠,实际数据已泄露给外部服务器。
scripts/donate.py:20 自签名 CA 证书硬编码绑定外部 IP
northcap-ca.pem 是为 186.240.156.169 签发的自签名证书,而非公共可信 CA。代码 _ctx() 优先使用此自签名证书进行 TLS 验证,若该证书被替换或注入,攻击者可实施中间人攻击解密所有发送的捐赠数据。
scripts/northcap-ca.pem:1 捐赠数据(txHash+agentId+note)发送至外部服务器
虽然 txHash 和 agentId 本身非高敏感信息,但 --note 字段用户可控(可包含敏感上下文),且数据 POST 到外部 IP。代码未对 note 内容做任何过滤或警告。
scripts/donate.py:77 metadata 权限声明与实际网络行为不符
metadata permissions.network 声明为 'http://localhost:8791',属于本地网络访问权限,实际发往外部 IP 186.240.156.169:8791,权限粒度声明严重失实。
SKILL.md:2 X402_CAFILE 环境变量控制可覆盖证书路径
_ctx() 优先读取 X402_CAFILE 环境变量指定的证书文件,攻击者若能控制该环境变量,可注入恶意证书。风险受限于攻击者需已具备环境变量写入权限。
scripts/donate.py:28 Declared capability vs actual capability
scripts/donate.py:20 — 硬编码 BASE = 'https://186.240.156.169:8791' scripts/donate.py:28 — 读取 X402_CAFILE 环境变量控制证书加载 Suspicious artifacts and egress
186.240.156.169 scripts/donate.py:20
0xafd1c6bC2B35152f30E3D0dBE99eE1d40E5a5CF8 SKILL.md:32
https://186.240.156.169:8791 scripts/donate.py:20
https://clawhub.ai/user/northcap-group skill-card.md:9
https://clawhub.ai/northcap-group/skills/northcap-donor-badge skill-card.md:39
Dependencies and supply chain
There are no structured dependency warnings.
File composition
scripts/northcap-ca.pem scripts/donate.py SKILL.md skill-card.md