跳转到正文
报告库
用途分类 / 其他用途

Image Outpainting Skill 安全审计

作者说它能做什么(原文)

>

第三方安全检查结论

发现安全风险

已检查文件
1
发现的风险
3
会不会运行危险命令?检查是否下载程序后直接运行、让他人远程控制电脑,或藏起要运行的命令。发现 1 项风险
中风险

安装步骤会在本机执行未固定版本的第三方 npm 包

原文依据:2 处
发现了什么

说明建议全局安装 `@runcomfy/cli`,或使用带 `-y` 的 `npx` 直接取得并执行包;命令没有固定版本。全局安装还会在当前项目之外修改系统级 Node 包位置。

为什么需要注意

如果包的当前发布版本、依赖或 npm 账户被破坏,其安装或运行代码可能以执行命令的用户权限访问文件、环境变量和凭据。版本变化也会使相同说明在不同时间执行不同代码。

安装说明主动建议全局安装或用 `npx -y` 获取并执行 `@runcomfy/cli`,且两种命令都未固定版本。执行时会信任 npm 当前解析到的包;全局安装还会修改项目目录之外的 Node 包位置。这是第三方 CLI 的常见安装方式,但仍有供应链和版本漂移风险。用户可要求作者提供经过验证的精确版本及完整性信息,并优先在隔离环境中试用。

SKILL.md:32来自说明文档打开原文件
```bash# 1. Install (see runcomfy-cli skill for details)npm i -g @runcomfy/cli      # or:  npx -y @runcomfy/cli --version# 2. Sign inruncomfy login              # or in CI: export RUNCOMFY_TOKEN=<token>
查看另外 1 个位置
SKILL.md:177来自说明文档打开原文件
- **Install via verified package manager only.** Use `npm i -g @runcomfy/cli` or `npx -y @runcomfy/cli`. **Agents must not pipe an arbitrary remote install script into a shell on the user's behalf**.- **Token storage**: `runcomfy login` writes the API token to `~/.config/runcomfy/token.json` with mode 0600. Set `RUNCOMFY_TOKEN` env var in CI / containers.
会不会泄露文件和密钥?检查是否发送含密码或密钥的文件,以及代码里是否直接写了密钥。发现 2 项风险
中风险

原图、参考图地址和提示词会发送给远程 RunComfy 服务

原文依据:3 处
发现了什么

命令把提示词和图像 URL 放入输入 JSON,随后 CLI 将该请求 POST 到远程模型 API。参考图路线还可能涉及多张图片。因此,扩图内容并非只在本机处理。

为什么需要注意

如果输入是私人照片、未公开产品图、客户素材,或 URL 中包含访问凭据,远程服务将接收到提示词和图像位置,并可能需要取得相应图像内容。

该技能的实际流程会把提示词和图像 URL 组成 JSON,并由 CLI POST 到 RunComfy 的远程 Model API;参考匹配还可使用最多 10 张图片。因此,用户提供的原图地址、参考图地址和编辑描述会离开本地并交给第三方处理。使用私密或受限图片前,用户应确认 RunComfy 的数据保留、训练使用和访问控制政策,并只提供获授权上传的内容。

SKILL.md:40来自说明文档打开原文件
# 3. Outpaintruncomfy run google/nano-banana-2/edit \  --input '{"prompt": "...extend canvas...", "image_urls": ["..."]}' \  --output-dir ./out```
查看另外 2 个位置
SKILL.md:58来自说明文档打开原文件
**GPT Image 2 Edit** — `openai/gpt-image-2/edit`> Up to 10 reference images, layout-precise instruction following. Useful when outpainting needs to match a reference style or includes layout repositioning.> Pick for: composite outpaint (extend canvas + paste in element from another image), layout repositioning during the canvas change.> Avoid for: simple outpaint without external references.
SKILL.md:173来自说明文档打开原文件
The skill classifies user intent — simple aspect-ratio swap, reference-style match, or brand-locked continuation — picks the matching edit endpoint, and invokes `runcomfy run` with the outpaint-shaped JSON body. The CLI POSTs to the Model API, polls request status, and downloads the result into `--output-dir`.
低风险

RunComfy 账户令牌会持久化到磁盘或暴露给进程环境

原文依据:2 处
发现了什么

登录流程把 API 令牌写入 `~/.config/runcomfy/token.json`;CI 方案则通过 `RUNCOMFY_TOKEN` 环境变量传入。文件权限 0600 可限制其他本地用户,但不能防止同一账户下的恶意进程、备份或错误日志读取令牌。

为什么需要注意

一旦令牌泄露,持有者可能以用户的 RunComfy 身份调用服务;具体可用范围和费用影响在所给文件中没有说明。

该技能明确要求认证,并说明交互登录会把 API 令牌持久化到用户主目录下的配置文件,CI/容器则可通过环境变量提供令牌。0600 权限限制其他本地账户直接读取,但同一用户权限的进程仍可能访问文件,而环境变量会暴露给获准继承它的进程。用户可限制运行该 CLI 的账户、进程和 CI 日志权限,并询问作者令牌范围、有效期及撤销方式。

SKILL.md:36来自说明文档打开原文件
# 2. Sign inruncomfy login              # or in CI: export RUNCOMFY_TOKEN=<token>
查看另外 1 个位置
SKILL.md:178来自说明文档打开原文件
- **Install via verified package manager only.** Use `npm i -g @runcomfy/cli` or `npx -y @runcomfy/cli`. **Agents must not pipe an arbitrary remote install script into a shell on the user's behalf**.- **Token storage**: `runcomfy login` writes the API token to `~/.config/runcomfy/token.json` with mode 0600. Set `RUNCOMFY_TOKEN` env var in CI / containers.- **Input boundary (shell injection)**: prompts and image URLs are passed as a JSON string via `--input`. The CLI does not shell-expand prompt content. **No shell-injection surface**.
会不会删除文件或一直在后台运行?检查是否大范围删除文件、改写磁盘,或设置自动启动。未发现风险
会不会绕过安全保护?检查是否跳过网站安全验证、开放过多文件权限,或取消操作前的确认。未发现风险
会不会误导 AI 或隐藏内容?检查工作说明是否要求 AI 忽略你的指令、干扰检查结果,或夹带看不见的文字。未发现风险
会不会偷偷改推广链接或收款方?检查是否强制替换推广链接或收款对象,同时要求隐瞒更改。未发现风险

Skill 逻辑拆解

8 个说明模块

该技能把扩图请求交给 RunComfy 的远程模型 API,并将生成结果下载到用户指定的输出目录;它不是完全本地的图像处理流程。

查看原文
SKILL.md:173来自说明文档打开原文件
The skill classifies user intent — simple aspect-ratio swap, reference-style match, or brand-locked continuation — picks the matching edit endpoint, and invokes `runcomfy run` with the outpaint-shaped JSON body. The CLI POSTs to the Model API, polls request status, and downloads the result into `--output-dir`.

使用前需要安装第三方 CLI 并登录;登录令牌会以权限 0600 保存到用户配置目录,也可通过环境变量提供。

查看原文
SKILL.md:34来自说明文档打开原文件
# 1. Install (see runcomfy-cli skill for details)npm i -g @runcomfy/cli      # or:  npx -y @runcomfy/cli --version
SKILL.md:36来自说明文档打开原文件
# 2. Sign inruncomfy login              # or in CI: export RUNCOMFY_TOKEN=<token>
SKILL.md:178来自说明文档打开原文件
- **Install via verified package manager only.** Use `npm i -g @runcomfy/cli` or `npx -y @runcomfy/cli`. **Agents must not pipe an arbitrary remote install script into a shell on the user's behalf**.- **Token storage**: `runcomfy login` writes the API token to `~/.config/runcomfy/token.json` with mode 0600. Set `RUNCOMFY_TOKEN` env var in CI / containers.- **Input boundary (shell injection)**: prompts and image URLs are passed as a JSON string via `--input`. The CLI does not shell-expand prompt content. **No shell-injection surface**.

技能根据简单扩图、参考风格或品牌延续来选择不同远程模型;GPT Image 路线最多可使用 10 张参考图。

查看原文
SKILL.md:58来自说明文档打开原文件
**GPT Image 2 Edit** — `openai/gpt-image-2/edit`> Up to 10 reference images, layout-precise instruction following. Useful when outpainting needs to match a reference style or includes layout repositioning.> Pick for: composite outpaint (extend canvas + paste in element from another image), layout repositioning during the canvas change.> Avoid for: simple outpaint without external references.
SKILL.md:173来自说明文档打开原文件
The skill classifies user intent — simple aspect-ratio swap, reference-style match, or brand-locked continuation — picks the matching edit endpoint, and invokes `runcomfy run` with the outpaint-shaped JSON body. The CLI POSTs to the Model API, polls request status, and downloads the result into `--output-dir`.
从这里开始 · 工作说明SKILL.md
image-outpainting
连线表示工作说明包含的模块,不是实际运行顺序。点击模块可查看原文。 另有 2 个章节,可在原文件中查看。
文件与检查记录1 个文件

检查范围与遗漏

逐文件查看涉及的内容

下方列出本次涉及的原文范围;纳入检查不代表已查清所有问题。

  • SKILL.md已纳入全文

这份报告只针对上方版本。我们看了拿到的代码和说明文件,没有实际运行 Skill,也没有检查它另外安装的软件包。因此,这不是“保证安全”的承诺;换了版本或使用环境,结果也可能不同。

  • SKILL.md工作说明

代码和说明中提到的操作

运行命令
SKILL.md:3来自说明文档打开原文件
name: image-outpaintingallowed-tools: Bash(runcomfy *)displayName: "Image Outpainting"
SKILL.md:32来自说明文档打开原文件
```bash# 1. Install (see runcomfy-cli skill for details)
SKILL.md:82来自说明文档打开原文件
```bashruncomfy run google/nano-banana-2/edit \
连接外部网站
SKILL.md:20来自说明文档打开原文件
  existing still.homepage: https://www.runcomfy.comlicense: MIT
SKILL.md:28来自说明文档打开原文件
[runcomfy.com](https://www.runcomfy.com/?utm_source=skills.sh&utm_medium=skill&utm_campaign=image-outpainting) · [best-image-editing-models](https://www.runcomfy.com/models/collections/best-image-editing-models?utm_source=skills.sh&utm_medium=skill&utm_campaign=image-outpainting) · [CLI docs](https://docs.runcomfy.com/cli/introduction?utm_source=skills.sh&utm_medium=skill&utm_campaign=image-outpainting)
SKILL.md:45来自说明文档打开原文件
CLI deep dive: [`runcomfy-cli`](https://www.skills.sh/agentspace-so/runcomfy-agent-skills/runcomfy-cli) skill.
安装其他软件包
SKILL.md:34来自说明文档打开原文件
# 1. Install (see runcomfy-cli skill for details)npm i -g @runcomfy/cli      # or:  npx -y @runcomfy/cli --version
SKILL.md:177来自说明文档打开原文件
- **Install via verified package manager only.** Use `npm i -g @runcomfy/cli` or `npx -y @runcomfy/cli`. **Agents must not pipe an arbitrary remote install script into a shell on the user's behalf**.- **Token storage**: `runcomfy login` writes the API token to `~/.config/runcomfy/token.json` with mode 0600. Set `RUNCOMFY_TOKEN` env var in CI / containers.
读取了多少行
194
文件校验值(用于核对版本)
c3289d4aa628d61dca3f1aaa8f40bfae89aa5e9791da12cce7017f09244c38a8