image-knowledge-converter
合法图片转知识库工具,OCR+LLM调用云服务,无恶意行为。存在文档未声明的依赖自动安装(pip install)和依赖版本范围过宽的供应链瑕疵。
Why this conclusion was reached
1/4 dimensions flagged1 undeclared or violating capabilities were inferred.
26 lower-risk artifacts were extracted and still need context.
There is no explicit malicious chain in the report.
Dependencies are present but no obvious high-risk issue stands out.
What drove the risk score up
SKILL.md 未声明 setup_wizard.py 会执行 pip install,文档只说配置向导,但代码会触发依赖自动安装
requirements.txt 全部使用 >= 无上限锁定(如 requests>=2.28.0),未设置上限防止恶意新版(如 requests>=2.28.0,<3 才安全)
Most important evidence
依赖版本范围过宽,存在供应链攻击风险
requirements.txt 中所有依赖仅设置下限(>=)而无上限锁定,如 requests>=2.28.0、opencv-python>=4.5.0。setup_wizard.py 虽使用带上限的版本范围(如 requests>=2.31,<3),但仍依赖预设在 requirements.txt 中的包。建议统一使用双侧锁定。
requirements.txt:1 文档未声明依赖自动安装行为
SKILL.md 仅描述对话式配置向导流程,未提及 setup_wizard.py 首次运行时会自动通过 pip install 安装依赖。这属于轻微的文档-行为差异,不影响安全性但影响用户预期。
setup_wizard.py:175 环境变量读写但用途仅限于本地配置
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
SKILL.md声明配置文件生成,代码在WORK_DIR内操作 调用腾讯/百度/混元/Kimi/硅基流动/Doubao API,均为已知云服务 setup_wizard.py:175 subprocess仅用于pip install(合法工具行为) auto_process_all_v9_4.py 读取并写入环境变量(TENCENT_SECRET_ID等),但仅限配置用途,未外传 Suspicious artifacts and egress
https://img.shields.io/badge/license-MIT-blue.svg README.md:6
https://img.shields.io/github/stars/haoyiyong985/image-knowledge-converter?style=social README.md:7
https://img.shields.io/badge/WorkBuddy-Skill-green README.md:8
https://workbuddy.ai README.md:8
https://api.ima.tencent.com/v1 README.md:293
https://console.cloud.tencent.com/cam/capi README.md:300
https://console.bce.baidu.com/ README.md:301
https://cloud.tencent.com/product/ocr README.md:554
https://ai.baidu.com/tech/ocr README.md:555
https://www.snipaste.com/ assets/SCREENSHOTS_GUIDE.md:55
https://api.siliconflow.cn/v1 auto_process_all_v9_4.py:471
https://api.moonshot.cn/v1/chat/completions auto_process_all_v9_4.py:500
Dependencies and supply chain
| Package | Version | Source | Known vuln | Notes |
|---|---|---|---|---|
| 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
auto_process_all_v9_4.py setup_wizard.py README.md docs/usage.md docs/multi-engine-ocr.md