安全决策报告

openInvest skill suite

合法的开源投资管理工具套件(invest + invest-backup + invest-setup),核心功能清晰,无恶意行为证据,存在轻微供应链风险

安装决策优先 来源: ClawHub 扫描时间: 2026/10/8
文件 24
IOC 17
越权项 0
发现 3

为什么得出这个结论

1/4 个维度触发
通过
声明与实际能力

声明资源与推断能力基本一致。

阻止
隐藏执行与外联

提取到 2 个高危 IOC 或外联信号。

通过
攻击链与高危发现

没有形成明确的恶意路径。

复核
依赖与供应链卫生

发现 2 项需要关注的依赖或供应链线索。

风险分是怎么被拉高的

curl|sh 管道式安装 uv +10

skills/invest/scripts/run.sh:26 使用 curl -LsSf https://astral.sh/uv/install.sh | sh,属于供应链风险但安装来源可信

依赖版本未锁定 +8

后端通过 uvx openinvest 从 PyPI 拉取,无版本锁定,可能拉取到恶意更新

涉及敏感数据备份 +5

invest-backup 打包 .env(含 API 密钥),备份文件本身需妥善保管

网络请求(合法) +2

调用 yfinance API 获取行情、LLM API 执行委员会分析,属于功能声明范围内

最关键的证据

中危 供应链

uv 工具通过管道式安装

run.sh 第26行使用 curl -LsSf https://astral.sh/uv/install.sh | sh 安装 uv。虽然来源(astral.sh)可信,但管道式安装是已知风险模式

skills/invest/scripts/run.sh:26
建议使用官方包管理器安装 uv(如 pip install uv),或在文档中说明此为必需依赖
低危 供应链

PyPI 依赖无版本锁定

后端 openinvest 通过 uvx --from openinvest 拉取,未指定版本。OPENINVEST_SPEC 环境变量支持手动指定版本

skills/invest/scripts/run.sh:53
生产环境建议设置 OPENINVEST_SPEC='openinvest==0.20.2' 锁定版本
低危 供应链

备份文件含敏感凭证

invest-backup 打包 .env(包含 DEEPSEEK_API_KEY、Gmail 密码等)进 zip 文件。备份文件需妥善保管

skills/invest-backup/scripts/run.sh:31
建议添加 .gitignore 规则排除备份文件;用户应将备份文件存放在安全位置

声明能力 vs 实际能力

命令执行 通过
声明 WRITE
→
推断 WRITE
skills/invest/scripts/run.sh:76 使用 uvx 执行后端命令
网络访问 通过
声明 READ
→
推断 READ
调用 yfinance API / LLM API
文件系统 通过
声明 WRITE
→
推断 WRITE
备份/恢复 memory/、db/、.env
环境变量 通过
声明 READ
→
推断 READ
读取 DEEPSEEK_API_KEY、INVEST_API_BASE 等

可疑产物与外联

严重 危险命令
rm -rf ~

skills/invest/README.md:77

严重 危险命令
curl -LsSf https://astral.sh/uv/install.sh | sh

skills/invest/scripts/run.sh:26

中危 外部 URL
https://docs.astral.sh/uv/

README.md:75

中危 外部 URL
https://agentskills.io

skills/invest/README.md:84

中危 外部 URL
https://your-hub.example.com

skills/invest/SKILL.md:189

中危 外部 URL
http://10.0.0.x:8765

skills/invest/SKILL.md:189

中危 外部 URL
http://127.0.0.1:8765/openapi.json

skills/invest/SKILL.md:223

中危 外部 URL
https://api.deepseek.com

skills/invest/references/onboarding.md:74

中危 外部 URL
https://platform.deepseek.com

skills/invest/references/onboarding.md:112

中危 外部 URL
https://myaccount.google.com/security

skills/invest/references/onboarding.md:122

中危 外部 URL
https://myaccount.google.com/apppasswords

skills/invest/references/onboarding.md:123

中危 外部 URL
https://myaccount.google.com/apppasswords.

skills/invest/references/onboarding.md:186

依赖与供应链

包名版本来源漏洞备注
openinvest * PyPI 否 通过 uvx 拉取,无版本锁定
uv * Astral 否 通过 curl|sh 安装,属于环境依赖

文件构成

24 个文件 · 2455 行
Markdown 16 个文件 · 2114 行Shell 2 个文件 · 253 行JSON 5 个文件 · 88 行
需关注文件 · 5
skills/invest/SKILL.md Markdown · 325 行
https://your-hub.example.com · http://10.0.0.x:8765 · http://127.0.0.1:8765/openapi.json
skills/invest/references/onboarding.md Markdown · 194 行
https://api.deepseek.com · https://platform.deepseek.com · https://myaccount.google.com/security · https://myaccount.google.com/apppasswords · https://myaccount.google.com/apppasswords.
skills/invest-setup/SKILL.md Markdown · 197 行
https://invest.example.com · http://10.0.0.6:8765
skills/invest-backup/scripts/run.sh Shell · 147 行
备份文件含敏感凭证
skills/invest/README.md Markdown · 99 行
rm -rf ~ · https://agentskills.io
其他文件 · logo.png · CHANGELOG.md · tools.md · committee-protocol.md · committee-protocol-hermes.md · two-paths.md +1

安全亮点

代码结构清晰,职责单一(invest 主逻辑、invest-backup 备份、invest-setup 初始化)
文档详尽,SKILL.md 完整声明了所有功能和权限
invest-backup 有防误覆盖机制(has_real_portfolio_data 检查)
使用 uvx 从 PyPI 拉取后端,减少本地代码量
支持 DeepSeek/Qwen/Zhipu 等多 LLM 提供商,用户可控密钥
无混淆代码、无可疑 API 调用模式