Skill Trust Decision

image-knowledge-converter

合法图片转知识库工具,OCR+LLM调用云服务,无恶意行为。存在文档未声明的依赖自动安装(pip install)和依赖版本范围过宽的供应链瑕疵。

Install decision first Source: ClawHub Scanned: 29 days ago
Files 30
Artifacts 26
Violations 1
Findings 3

Why this conclusion was reached

1/4 dimensions flagged
Block
Declared vs actual capability

1 undeclared or violating capabilities were inferred.

Review
Hidden execution and egress

26 lower-risk artifacts were extracted and still need context.

Pass
Attack chain and severe findings

There is no explicit malicious chain in the report.

Pass
Dependencies and supply chain hygiene

Dependencies are present but no obvious high-risk issue stands out.

What drove the risk score up

文档-行为差异(依赖安装) +10

SKILL.md 未声明 setup_wizard.py 会执行 pip install,文档只说配置向导,但代码会触发依赖自动安装

供应链版本范围过宽 +10

requirements.txt 全部使用 >= 无上限锁定(如 requests>=2.28.0),未设置上限防止恶意新版(如 requests>=2.28.0,<3 才安全)

Most important evidence

Medium Supply Chain

依赖版本范围过宽,存在供应链攻击风险

requirements.txt 中所有依赖仅设置下限(>=)而无上限锁定,如 requests>=2.28.0、opencv-python>=4.5.0。setup_wizard.py 虽使用带上限的版本范围(如 requests>=2.31,<3),但仍依赖预设在 requirements.txt 中的包。建议统一使用双侧锁定。

requirements.txt:1
改为双侧版本锁定,如 requests>=2.31,<3,opencv-python>=4.5.0,<5,参考 setup_wizard.py 的 core_packages 定义
Low Doc Mismatch

文档未声明依赖自动安装行为

SKILL.md 仅描述对话式配置向导流程,未提及 setup_wizard.py 首次运行时会自动通过 pip install 安装依赖。这属于轻微的文档-行为差异,不影响安全性但影响用户预期。

setup_wizard.py:175
在 SKILL.md 的「首次使用」部分补充说明:运行向导时会自动检查并安装依赖
Info Sensitive Access

环境变量读写但用途仅限于本地配置

auto_process_all_v9_4.py 的 LLMAnalyzer._load_config() 将 api_keys.yaml 中的凭证写入 os.environ,这是为了统一接口(TENCENT_SECRET_ID 等)。凭证不会外传,仅在本地内存中使用后通过 HTTPS 发送到目标云服务 API。

auto_process_all_v9_4.py:186
无需修改,当前设计合理。可在文档中说明凭证仅本地使用

Declared capability vs actual capability

Filesystem Pass
Declared WRITE
→
Inferred WRITE
SKILL.md声明配置文件生成,代码在WORK_DIR内操作
Network Pass
Declared READ
→
Inferred READ
调用腾讯/百度/混元/Kimi/硅基流动/Doubao API,均为已知云服务
Shell Pass
Declared NONE
→
Inferred NONE
setup_wizard.py:175 subprocess仅用于pip install(合法工具行为)
Environment Block
Declared NONE
→
Inferred READ
auto_process_all_v9_4.py 读取并写入环境变量(TENCENT_SECRET_ID等),但仅限配置用途,未外传

Suspicious artifacts and egress

Medium External URL
https://img.shields.io/badge/license-MIT-blue.svg

README.md:6

Medium External URL
https://img.shields.io/github/stars/haoyiyong985/image-knowledge-converter?style=social

README.md:7

Medium External URL
https://img.shields.io/badge/WorkBuddy-Skill-green

README.md:8

Medium External URL
https://workbuddy.ai

README.md:8

Medium External URL
https://api.ima.tencent.com/v1

README.md:293

Medium External URL
https://console.cloud.tencent.com/cam/capi

README.md:300

Medium External URL
https://console.bce.baidu.com/

README.md:301

Medium External URL
https://cloud.tencent.com/product/ocr

README.md:554

Medium External URL
https://ai.baidu.com/tech/ocr

README.md:555

Medium External URL
https://www.snipaste.com/

assets/SCREENSHOTS_GUIDE.md:55

Medium External URL
https://api.siliconflow.cn/v1

auto_process_all_v9_4.py:471

Medium External URL
https://api.moonshot.cn/v1/chat/completions

auto_process_all_v9_4.py:500

Dependencies and supply chain

PackageVersionSourceKnown vulnNotes
requests >=2.28.0 (无上限) requirements.txt No 建议改为 >=2.31,<3
opencv-python >=4.5.0 (无上限) requirements.txt No 建议设上限
Pillow >=8.0.0 (无上限) requirements.txt No 建议设上限
numpy >=1.19.0 (无上限) requirements.txt No 建议设上限
python-dotenv >=0.21.0 (无上限) requirements.txt No 建议设上限
PyYAML >=5.4.0 (无上限) requirements.txt No 建议设上限
scikit-learn >=0.24.0 (无上限) requirements.txt No 建议设上限
scipy >=1.6.0 (无上限) requirements.txt No 建议设上限
pandas >=1.2.0 (无上限) requirements.txt No 建议设上限

File composition

30 files · 7532 lines
Python 7 files · 3897 linesMarkdown 12 files · 2789 linesYAML 5 files · 555 linesText 5 files · 286 linesJSON 1 files · 5 lines
Files of concern · 5
auto_process_all_v9_4.py Python · 2330 lines
环境变量读写但用途仅限于本地配置 · https://api.siliconflow.cn/v1 · https://api.moonshot.cn/v1/chat/completions · https://ark.cn-beijing.volces.com/api/v3 · https://ima.qq.com/openapi/note/v1
setup_wizard.py Python · 756 lines
文档未声明依赖自动安装行为 · https://hunyuan.tencent.com/\n · https://platform.moonshot.cn/\n
README.md Markdown · 567 lines
https://img.shields.io/badge/license-MIT-blue.svg · https://img.shields.io/github/stars/haoyiyong985/image-knowledge-converter?style=social · https://img.shields.io/badge/WorkBuddy-Skill-green · https://workbuddy.ai · https://api.ima.tencent.com/v1 · https://console.cloud.tencent.com/cam/capi · https://console.bce.baidu.com/ · https://cloud.tencent.com/product/ocr · https://ai.baidu.com/tech/ocr
docs/usage.md Markdown · 179 lines
https://ima.qq.com/agent-interface
docs/multi-engine-ocr.md Markdown · 215 lines
https://ai.baidu.com/tech/ocr/general
Other files · README_EN.md · wizard_processor.py · SKILL.md · tencent_ocr.py · categories.yaml · quick-start.md +1

Security positives

LLM base_url 有严格白名单校验(_validate_trusted_url),防止 SSRF + 凭证泄漏
API 密钥通过本地模板文件传递,不经过对话传输(安全设计优秀)
所有文件操作限制在用户指定的 WORK_DIR 内,无越权访问
网络请求全部发往已知云服务(腾讯云、百度云、火山引擎等),无未知 IP 请求
无 base64 解码执行、shell 管道、eval 滥用等危险模式
无 HTML 注释隐藏指令、提示词注入风险
OCR/LLM 调用链路清晰,代码可审计性强
base64 仅用于将本地图片编码后上传到官方 API,符合标准用法
setup_wizard.py 包含 API 密钥格式校验(validate_api_key),防止配置错误
LLM 输出长度限制(50000字符截断),防止存储/内存攻击