Scan Report
This report was generated in Chinese. Some content may be in Chinese.
5 /100
media-generation
Generate images, edit existing images, create short videos, run inpainting/outpainting and object-focused edits, use reference images as provider inputs, batch related media jobs from a manifest, and fetch returned media from URLs/HTML/JSON/data URLs/base64.
标准 AI 媒体生成技能,所有操作与声明一致,无恶意行为发现。subprocess 调用仅用于调用声明的脚本 helpers,requests 库用于调用外部 AI provider API,无敏感数据外泄风险。
Safe to install
可安全使用。建议在生产环境中锁定 requests 和 Pillow 依赖版本。
Findings 1 items
| Severity | Finding | Location |
|---|---|---|
| Low | 依赖包无版本锁定 Supply Chain | scripts/generate_image.py:14 |
| Resource | Declared | Inferred | Status | Evidence |
|---|---|---|---|---|
| Filesystem | WRITE | WRITE | ✓ Aligned | 所有脚本写入 tmp/images/ 和 tmp/videos/,符合声明 |
| Network | READ | WRITE | ✓ Aligned | 调用 AI provider API (POST) 和下载媒体 (GET),符合媒体生成核心功能 |
| Shell | NONE | WRITE | ✓ Aligned | subprocess.run 调用其他脚本 helpers,但 SKILL.md 明确列出这些脚本作为 helpers |
File Tree
17 files · 100.0 KB · 2493 lines Python 13f · 2014L
Markdown 4f · 479L
├─
▾
references
│ ├─
batch-workflows.md
Markdown
│ ├─
model-capabilities.md
Markdown
│ └─
reference-image-workflow.md
Markdown
├─
▾
scripts
│ ├─
edit_image.py
Python
│ ├─
fetch_generated_media.py
Python
│ ├─
generate_batch_media.py
Python
│ ├─
generate_consistent_media.py
Python
│ ├─
generate_image.py
Python
│ ├─
generate_video.py
Python
│ ├─
mask_inpaint.py
Python
│ ├─
media_request_common.py
Python
│ ├─
object_select_edit.py
Python
│ ├─
outpaint_image.py
Python
│ ├─
prepare_object_mask.py
Python
│ ├─
reference_media.py
Python
│ └─
smoke_test.py
Python
└─
SKILL.md
Markdown
Dependencies 2 items
| Package | Version | Source | Known Vulns | Notes |
|---|---|---|---|---|
requests | * | pip | No | 无版本锁定,建议锁定 >=2.28.0 |
Pillow | * | pip | No | 无版本锁定,建议锁定 >=9.0.0 |
Security Positives
✓ 代码结构清晰,13 个 Python 脚本共 2014 行,职责分离良好
✓ SKILL.md 文档完整,涵盖所有 9 个主要 helper 脚本
✓ 配置文件加载逻辑健壮,支持 ~/.openclaw/openclaw.json 和 OPENCLAW_CONFIG 环境变量
✓ 错误处理完善,提供 failure_hints 帮助诊断 API 调用失败
✓ 无凭证收割行为,仅读取本地配置文件中的 API key 用于认证
✓ 无数据外泄,生成媒体保存到本地 tmp/ 目录
✓ 无代码混淆或隐藏执行路径
✓ subprocess 调用范围明确,仅用于调用声明的脚本 helpers
✓ batch manifest 支持 JSONL 格式和模板变量,实用性强
✓ async video polling 逻辑完善,支持状态查询和超时控制