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

Flux Kontext Skill 安全审计

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

>

第三方安全检查结论

发现安全风险

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

安装步骤会获取并执行未固定版本的第三方 npm 软件

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

文档要求通过 npm 全局安装 CLI,并提供通过 npx 安装 Skill 的命令;两条命令都没有固定具体版本或校验内容。运行时获得的代码取决于当时软件包或仓库发布状态。

为什么需要注意

如果软件包、发布账户、依赖链或仓库被入侵,安装过程可能以当前用户权限执行恶意代码;全局安装还会在用户环境中留下持久的 CLI。

文档给出未固定版本或提交的 `npx` Skill 安装命令,并要求用 npm 全局安装未指定版本的 RunComfy CLI。执行这些命令会下载并运行当时发布的第三方内容,且全局安装会修改用户的软件环境。用户可要求固定包版本、仓库提交和完整性校验,并先在隔离环境中检查依赖。

SKILL.md:27来自说明文档打开原文件
```bashnpx skills add agentspace-so/runcomfy-skills --skill flux-kontext -g```
查看另外 2 个位置
SKILL.md:45来自说明文档打开原文件
1. **RunComfy CLI** — `npm i -g @runcomfy/cli`2. **RunComfy account** — `runcomfy login` opens a browser device-code flow.
SKILL.md:43来自说明文档打开原文件
## Prerequisites1. **RunComfy CLI** — `npm i -g @runcomfy/cli`2. **RunComfy account** — `runcomfy login` opens a browser device-code flow.3. **CI / containers** — set `RUNCOMFY_TOKEN=<token>` instead of `runcomfy login`.
会不会泄露文件和密钥?检查是否发送含密码或密钥的文件,以及代码里是否直接写了密钥。发现 1 项风险
中风险

源图和编辑提示会披露给第三方模型服务

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

CLI 会把包含提示和图片 URL 的 JSON 请求发送到 RunComfy。图片还必须通过公开可获取的 HTTPS URL 提供,因此图片也可能暴露给 URL 托管方以及任何获得该 URL 的主体。

为什么需要注意

人像、品牌素材、未发布产品图或提示中的机密要求可能离开用户设备,并受 RunComfy及图片托管服务的保存、访问和处理政策约束。

实际工作流要求提交编辑提示和一个可公开获取的 HTTPS 图片 URL;文档还明确说明 CLI 会将 JSON 请求发送给 RunComfy 模型 API,并由模型服务器获取该 URL。因此,使用私密图片或敏感提示时会向 RunComfy及图片托管方披露数据。用户可仅使用非敏感素材、采用短期受限链接,并询问服务方的数据保留与训练政策。

SKILL.md:55来自说明文档打开原文件
|---|---|---|---|---|| `prompt` | string | yes | — | Single declarative edit instruction. || `image` | string | yes | — | Single source image URL (publicly fetchable HTTPS). || `aspect_ratio` | enum | no | (input) | Pick from supported W:H options on the model page. |
查看另外 2 个位置
SKILL.md:159来自说明文档打开原文件
The skill invokes `runcomfy run blackforestlabs/flux-1-kontext/pro/edit` with a JSON body matching the schema. The CLI POSTs to `https://model-api.runcomfy.net/v1/models/blackforestlabs/flux-1-kontext/pro/edit`, polls the request, fetches the result, and downloads any `.runcomfy.net`/`.runcomfy.com` URL into `--output-dir`. `Ctrl-C` cancels the remote request before exit.
SKILL.md:165来自说明文档打开原文件
- **Input boundary**: the user prompt is passed as a JSON string to the CLI via `--input`. The CLI does NOT shell-expand the prompt; it transmits the JSON body directly to the Model API over HTTPS. No shell injection surface from prompt content.- **Third-party content**: image / mask / video URLs you pass are fetched by the RunComfy model server, not by the CLI on your machine. Treat external URLs as untrusted; image-based prompt injection is a known risk for any image-edit / video-edit model.- **Outbound endpoints**: only `model-api.runcomfy.net` (request submission) and `*.runcomfy.net` / `*.runcomfy.com` (download whitelist for generated outputs). No telemetry, no callbacks.
会不会删除文件或一直在后台运行?检查是否大范围删除文件、改写磁盘,或设置自动启动。未发现风险
会不会绕过安全保护?检查是否跳过网站安全验证、开放过多文件权限,或取消操作前的确认。发现 2 项风险
低风险

安装命令没有固定依赖版本

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

安装命令没有指定依赖版本。同样的命令以后可能下载不同代码,你实际安装的内容可能与这次检查时不同。

为什么需要注意

即使命令和报告没变,以后安装时也可能下载到另一份代码。

安装命令直接从 GitHub 仓库添加 Skill,未固定提交哈希、标签或版本。若仓库内容之后变化,同一命令可能安装与本次所审文本不同的内容。用户可要求作者提供固定提交和校验值,或在安装前审查解析出的版本。

SKILL.md:28来自说明文档打开原文件
```bashnpx skills add agentspace-so/runcomfy-skills --skill flux-kontext -g```
查看另外 1 个位置
SKILL.md:27来自说明文档打开原文件
```bashnpx skills add agentspace-so/runcomfy-skills --skill flux-kontext -g```
低风险

交互式登录会把可用的 API 令牌持久保存到用户主目录

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

文档称登录会在 `~/.config/runcomfy/token.json` 写入 API 令牌。0600 可阻止其他本地账户直接读取,但该令牌仍是保存在磁盘上的长期凭据。

为什么需要注意

能够以同一操作系统账户读取文件的恶意程序或被入侵进程可能取得令牌,并以用户的 RunComfy 身份调用服务。

交互式登录被列为前置步骤,安全说明明确称其把 API 令牌写入用户主目录。0600 限制其他本地账户读取,但不能防止以该用户身份运行的程序、账户被攻破或备份泄露后访问令牌。用户可询问令牌有效期和撤销方式,或在隔离环境中使用短期环境变量令牌并限制其权限。

SKILL.md:46来自说明文档打开原文件
1. **RunComfy CLI** — `npm i -g @runcomfy/cli`2. **RunComfy account** — `runcomfy login` opens a browser device-code flow.3. **CI / containers** — set `RUNCOMFY_TOKEN=<token>` instead of `runcomfy login`.
查看另外 2 个位置
SKILL.md:163来自说明文档打开原文件
- **Token storage**: `runcomfy login` writes the API token to `~/.config/runcomfy/token.json` with mode 0600 (owner-only read/write). Set `RUNCOMFY_TOKEN` env var to bypass the file entirely in CI / containers.- **Input boundary**: the user prompt is passed as a JSON string to the CLI via `--input`. The CLI does NOT shell-expand the prompt; it transmits the JSON body directly to the Model API over HTTPS. No shell injection surface from prompt content.
SKILL.md:45来自说明文档打开原文件
1. **RunComfy CLI** — `npm i -g @runcomfy/cli`2. **RunComfy account** — `runcomfy login` opens a browser device-code flow.3. **CI / containers** — set `RUNCOMFY_TOKEN=<token>` instead of `runcomfy login`.
会不会误导 AI 或隐藏内容?检查工作说明是否要求 AI 忽略你的指令、干扰检查结果,或夹带看不见的文字。未发现风险
会不会偷偷改推广链接或收款方?检查是否强制替换推广链接或收款对象,同时要求隐瞒更改。未发现风险

Skill 逻辑拆解

8 个说明模块

该 Skill 通过本地 RunComfy CLI 将编辑提示和单张源图提交给 RunComfy 的托管模型 API,轮询结果后把生成文件下载到指定目录。

查看原文
SKILL.md:159来自说明文档打开原文件
The skill invokes `runcomfy run blackforestlabs/flux-1-kontext/pro/edit` with a JSON body matching the schema. The CLI POSTs to `https://model-api.runcomfy.net/v1/models/blackforestlabs/flux-1-kontext/pro/edit`, polls the request, fetches the result, and downloads any `.runcomfy.net`/`.runcomfy.com` URL into `--output-dir`. `Ctrl-C` cancels the remote request before exit.

使用前需要全局安装 RunComfy CLI,并登录 RunComfy;CI 或容器也可通过环境变量提供令牌。

查看原文
SKILL.md:45来自说明文档打开原文件
1. **RunComfy CLI** — `npm i -g @runcomfy/cli`2. **RunComfy account** — `runcomfy login` opens a browser device-code flow.3. **CI / containers** — set `RUNCOMFY_TOKEN=<token>` instead of `runcomfy login`.

该接口要求源图是 RunComfy 服务器能够公开获取的 HTTPS URL,而不是仅保留在本机的文件。

查看原文
SKILL.md:55来自说明文档打开原文件
|---|---|---|---|---|| `prompt` | string | yes | — | Single declarative edit instruction. || `image` | string | yes | — | Single source image URL (publicly fetchable HTTPS). || `aspect_ratio` | enum | no | (input) | Pick from supported W:H options on the model page. |
从这里开始 · 工作说明SKILL.md
flux-kontext
连线表示工作说明包含的模块,不是实际运行顺序。点击模块可查看原文。 另有 3 个章节,可在原文件中查看。
文件与检查记录1 个文件

检查范围与遗漏

逐文件查看涉及的内容

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

  • SKILL.md已纳入全文

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

  • SKILL.md工作说明

代码和说明中提到的操作

连接外部网站
SKILL.md:17来自说明文档打开原文件
  edit with this model.homepage: https://www.runcomfy.comlicense: MIT
SKILL.md:23来自说明文档打开原文件
[runcomfy.com](https://www.runcomfy.com/?utm_source=skills.sh&utm_medium=skill&utm_campaign=flux-kontext) · [Model page](https://www.runcomfy.com/models/blackforestlabs/flux-1-kontext-pro/image-to-image?utm_source=skills.sh&utm_medium=skill&utm_campaign=flux-kontext) · [GitHub](https://github.com/agentspace-so/runcomfy-skills/tree/main/flux-kontext)
SKILL.md:70来自说明文档打开原文件
    "prompt": "Keep the person'\''s face, pose, and clothing unchanged. Add an orange umbrella in her left hand and a slight smile.",    "image": "https://.../portrait.jpg"  }' \
运行命令
SKILL.md:27来自说明文档打开原文件
```bashnpx skills add agentspace-so/runcomfy-skills --skill flux-kontext -g
SKILL.md:66来自说明文档打开原文件
```bashruncomfy run blackforestlabs/flux-1-kontext/pro/edit \
SKILL.md:77来自说明文档打开原文件
```bashruncomfy run blackforestlabs/flux-1-kontext/pro/edit \
安装其他软件包
SKILL.md:28来自说明文档打开原文件
```bashnpx skills add agentspace-so/runcomfy-skills --skill flux-kontext -g```
读取了多少行
168
文件校验值(用于核对版本)
666a3eb6bd1a7a411f4bbfe6acc50c9c107f68eed60baceba4a22523cbe15a39