gpt-image-2
图片生成技能将用户访问密钥和提示词通过明文HTTP发送至未披露的硬编码IP服务器,SKILL.md明确要求隐藏服务器地址,构成文档-行为差异。
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.
1 dependency or supply-chain issues need attention.
Attack Chain
Entry · SKILL.md:10
Escalation · scripts/generate_image.py:23
Impact · scripts/generate_image.py:21
What drove the risk score up
SKILL.md: '不要向用户透露服务器地址',但代码硬编码IP 124.156.166.147,构成阴影功能
用户访问密钥和提示词通过未加密HTTP POST到外部IP,无TLS保护
requests 库无版本锁定,存在供应链更新风险
skill-card.md承认了'undisclosed unencrypted HTTP'风险并列出缓解措施,态度相对透明
代码仅调用API并保存图片,无命令注入、无混淆代码、无遍历敏感路径
Most important evidence
SKILL.md要求隐藏服务器地址,代码却硬编码外部IP
SKILL.md第62行明确要求'不要向用户透露服务器地址、API 密钥等任何后端信息',但scripts/generate_image.py第21行硬编码了IP地址124.156.166.147:8765。skill-card.md第19行承认这是'undisclosed unencrypted HTTP image service'。这是典型的文档-行为差异:文档禁止披露的信息正是实际行为的核心组件。
scripts/generate_image.py:21 用户访问密钥通过明文HTTP发送至外部服务器
用户提供的IMGKEY-HK-XXXXXX格式访问密钥,通过HTTP(非HTTPS)请求头'x-access-key'发送至124.156.166.147。在网络传输层面无TLS加密保护,存在中间人攻击(MITM)窃取凭证风险。SKILL.md未披露该服务器地址,使得用户无法评估信任边界。
scripts/generate_image.py:23 requests依赖无版本锁定
脚本import requests但未指定版本号。requirements.txt不存在,pip install requests将拉取最新版本。虽然requests库本身目前无已知严重漏洞,但版本不稳定可能导致依赖混淆或未来引入漏洞。
scripts/generate_image.py:10 图片保存至系统临时目录后未清理
生成的PNG图片默认保存到系统临时目录(/tmp/或%TEMP%),使用固定文件名'generated.png'。skill-card.md也承认'Generated PNG files may remain in the system temporary directory'。临时文件长期留存存在信息泄露风险。
scripts/generate_image.py:57 脚本文件名暗示使用GPT模型但实际调用的服务与GPT无关
SKILL.md和_meta.json使用名称'gpt-image-2'和描述'使用 gpt-image-2 模型',但代码中实际调用的是位于124.156.166.147的私有API服务器,没有任何GPT模型标识。名称具有误导性,可能让用户误以为使用了OpenAI的GPT-4o image generation服务。
SKILL.md:1 Declared capability vs actual capability
scripts/generate_image.py:58 写入PNG到output路径,SKILL.md声明保存到系统临时目录 scripts/generate_image.py:21 硬编码IP服务器,requests.post发送JSON(含key+prompt),SKILL.md未披露该IP 无subprocess.run等shell执行,脚本为纯API客户端 无os.environ遍历或敏感变量访问 无剪贴板操作 无浏览器自动化 无数据库操作 无跨skill调用 Suspicious artifacts and egress
124.156.166.147 scripts/generate_image.py:21
http://124.156.166.147:8765 scripts/generate_image.py:21
https://clawhub.ai/user/kiribon43567 skill-card.md:7
https://clawhub.ai/kiribon43567/gpt-image-2 skill-card.md:29
Dependencies and supply chain
| Package | Version | Source | Known vuln | Notes |
|---|---|---|---|---|
| requests | * | pip | No | 无版本锁定,存在供应链更新风险 |
File composition
scripts/generate_image.py SKILL.md skill-card.md