D

dsh-image-gen

github.com/GooDAnDReaDY/dsh-image-gen

v0.11.43 模型与账号 可执行外部程序写入文件发起网络请求

DeepSeek Harness 全能图像生成与视觉处理插件

作者原文(英文)

Image generation for DeepSeek Harness: a generate_image tool with pluggable providers — the FAL queue, any OpenAI-compatible images API, or a ChatGPT/Grok subscription with no API key at all. The picture is shown inline in the conversation; the model rece

中文简介由 DeepSeek 模型翻译,仅供参考。

deepseek-harnessdshdsh-pluginimage-generationtext-to-imagefalfal.aiflux
分类
model
发布
2026-10-11
版本
v0.11.43

检测报告

关注度高。命中了不少能力模式,其中可能有需要留意的。逐条看下面的清单。
1高关注5需留意4一般14未命中
高关注需留意一般

能力清单

  • 可执行外部程序spawns-processes高关注1 处命中
    • lib/updater.js:1import { spawn } from 'node:child_process'
    • 看它调用哪些程序。调用本机已有的工具是常见做法。
  • 写入文件writes-files需留意83 处命中
    • lib/attachment-helper.js:34await mkdir(outDir, { recursive: true })
    • lib/attachment-helper.js:36await writeFile(filePath, bytes)
    • lib/attachment-helper.js:38await writeFile(
    • lib/batch-queue.js:34fs.mkdirSync(dir, { recursive: true })
    • 看写入位置。写自己的配置目录是正常的,写系统目录不是。
  • 发起网络请求network需留意2 处命中
    • lib/client.js:115const res = await fetch(path, { ...rest, signal: sig })
    • lib/updater.js:224const response = await fetch(`${registry.replace(/\/$/, '')}/${encodeURIComponent(packageName)}/latest`, {
    • 看请求发往哪些域名。发往作者自己的后端是常见做法。
  • 可终止进程kills-processes需留意1 处命中
    • lib/updater.js:17process.kill(pid, 0)
    • 看它终止的是自己启动的进程,还是按名字匹配到的任意进程。
  • 动态执行代码dynamic-code需留意1 处命中
    • lib/providers/backends/local.js:22return (new Function('return typeof WebSocket !== "undefined" ? WebSocket : undefined'))()
    • 看 eval / new Function 的入参来自哪里。常量字符串和用户输入是两回事。
  • R011 客户端可疑脚本client-side-risk需留意1 处命中
    • client.js: postMessage 无 origin 校验
    • 浏览器侧代码能改你看到的界面。确认改动范围符合插件用途。
  • 接触凭据或密钥credentials一般128 处命中
    • lib/tools/character-sheet.js:30resolveApiKey,
    • lib/tools/character-sheet.js:133{ fetchImpl: fetch, resolveKey: (ref) => resolveApiKey(ctx, ref), cfg, subscriptionImages },
    • lib/client.js:398{ field: 'apiKeyEnv', spec: textField('apiKeyEnv'), kind: 'text', labelKey: 'f.apiKeyEnv', hintKey: 'f.apiKeyEnvHint', p…
    • lib/client.js:2639'f.apiKeyEnv': 'FAL Key Reference',
    • 看它读取哪些凭据、发往哪里。用于登录自己的服务是正常的。
  • 读取文件reads-files一般45 处命中
    • lib/batch-queue.js:21if (!fs.existsSync(filePath)) return []
    • lib/batch-queue.js:22const raw = fs.readFileSync(filePath, 'utf8')
    • lib/batch-queue.js:33if (!fs.existsSync(dir)) {
    • lib/cost-meter.js:108const raw = readFileSync(filePath, 'utf8')
    • 读文件是绝大多数插件的正常工作方式,本身不构成顾虑。
  • 读取环境变量reads-env一般16 处命中
    • lib/batch-queue.js:13if (process.env.DSH_BATCH_QUEUE_PATH) return process.env.DSH_BATCH_QUEUE_PATH
    • lib/cost-meter.js:97const base = process.env.DSH_HOME || join(homedir(), '.dsh')
    • lib/generation-cache.js:33const base = process.env.DSH_HOME || join(homedir(), '.dsh')
    • lib/history.js:29return path.join(process.env.DSH_HOME || path.join(os.homedir(), '.dsh'), 'dsh-image-gen', 'history.json')
    • 环境变量里常混有密钥。看它是否把整个 env 都读走。
  • 动态加载模块dynamic-import一般5 处命中
    • lib/client.js:24runtime = require(id)
    • lib/tools/editing.js:104const sharpMod = await import('sharp')
    • lib/tools/pattern.js:105const { scoreImageEdgeWrap } = await import('../pattern-helpers.js')
    • lib/tools/vision-ocr.js:156const sharpMod = await import('sharp')
    • 动态导入本身无害,但会让依赖关系难以静态审阅。
逐条扫描明细
能力标识关注度命中次数
可执行外部程序spawns-processes高关注1
写入文件writes-files需留意83
发起网络请求network需留意2
可终止进程kills-processes需留意1
动态执行代码dynamic-code需留意1
R011 客户端可疑脚本client-side-risk需留意1
接触凭据或密钥credentials一般128
读取文件reads-files一般45
读取环境变量reads-env一般16
动态加载模块dynamic-import一般5

这份报告的口径

扫描读的是包里的源码,全程不执行第三方代码。 本次读了 83 个文件,扫描于 2026-10-14。 命中次数只说明源码里出现过这类调用,不说明行为好坏——一个插件读写文件 500 次和 1 次 都会被记为「读取文件」。这是能力清单,不是信任评分,也不是安全结论: 没扫出来的能力可能只是写法没被规则覆盖。

依赖安全公告

这个插件声明的依赖中,有 3 条已公开的安全公告 :

等级依赖包编号摘要
未分级sharpGHSA-f88m-g3jw-g9cjsharp inherited vulnerabilities in libvips: CVE-2026-33327, CVE-2026-33328, CVE-2026-35590, CVE-2026-35591
修复版本:0.35.0 详情 →
未分级sharpGHSA-rgj7-g3m4-5g8csharp: Vulnerabilities in libheif: GHSA-g89c-p67h-r497 and GHSA-2jg2-4ch7-h545
修复版本:0.35.4 详情 →
未分级sharpGHSA-wq5f-xc86-pv6wsharp : Vulnerability in librsvg dependency CVE-2026-96889
修复版本:0.35.5 详情 →

查询的是依赖声明范围的下界(如 ^4.2.0 查 4.2.0), 不是实际安装到的版本。真正装的时候如果解析到了修复版本,就不受影响—— 所以这是「可能受影响」,不是「这个插件有漏洞」。数据来自 OSV.dev。

← 返回全部插件