visionforge
github.com/LR611415/visionforge
v0.2.1
其他
可执行外部程序以 shell 执行命令写入文件
VisionForge 基于开源视觉插件 liustack/modlens(MIT)深度改造而来:接入千问(Qwen)引擎、新增图片生成与编辑能力、内置图形化设置卡片、支持官方 / 插件双解析优先级调度。改造点全部保留原插件的轻量架构——在 DSH 上只是一个插件目录,卸载即删除,不修改任何 DSH 官方组件,不影响原生功能。
作者原文(英文)
VisionForge: vision understanding + image generation for DeepSeek Harness (DSH)
中文简介由 DeepSeek 模型翻译,仅供参考。
dshvisionocrimage-generationimage-editqwenmultimodaldeepseek-harness
检测报告
关注度高。命中了不少能力模式,其中可能有需要留意的。逐条看下面的清单。
2高关注4需留意5一般13未命中
高关注需留意一般
能力清单
- 可执行外部程序
spawns-processes高关注3 处命中dsh/index.js:6import { spawn } from 'node:child_process'dsh/index.js:25import { spawnSync } from 'node:child_process'dsh/spawnHidden.js:16import { spawn } from 'node:child_process'- 看它调用哪些程序。调用本机已有的工具是常见做法。
- 以 shell 执行命令
shell-exec高关注1 处命中src/shim.js:21return execFileSync(file, args, { ...options, windowsHide: true });- 看命令字符串是拼出来的还是写死的。拼接用户输入才是真正的风险。
- 写入文件
writes-files需留意64 处命中src/analyze.js:76fs.copyFileSync(source, imageSource);src/config.js:51fs.copyFileSync(configPath, backupPath);src/config.js:350fs.mkdirSync(path.dirname(configPath), { recursive: true });src/config.js:351fs.writeFileSync(configPath, `${JSON.stringify(out, null, 2)}\n`, { mode: 0o600 });- 看写入位置。写自己的配置目录是正常的,写系统目录不是。
- 发起网络请求
network需留意23 处命中dsh/client.js:107fetch('/visionforge/paste', {dsh/client.js:195return fetch('/visionforge/paste?model=' + encodeURIComponent(label), { method: 'GET' })dsh/client.js:258fetch(u.origin + '/visionforge/open?path=' + encodeURIComponent(p), { method: 'GET' }).catch(function () {})dsh/client.js:269fetch(u.origin + '/visionforge/download-local?path=' + encodeURIComponent(p), { method: 'GET' })- 看请求发往哪些域名。发往作者自己的后端是常见做法。
- 启动伪终端
spawns-pty需留意5 处命中dsh/index.js:86const r = spawnSync(probe, [cmd], { encoding: 'utf8', stdio: ['ignore', 'pipe', 'ignore'] })dsh/index.js:814const child = spawn('cmd.exe', ['/c', 'start', '', file], { detached: true, stdio: 'ignore' })dsh/index.js:841const fb = spawn('cmd.exe', ['/c', 'start', '', dirname(dest)], { detached: true, stdio: 'ignore' })dsh/index.js:870const fb = spawn('cmd.exe', ['/c', 'start', '', dirname(dest)], { detached: true, stdio: 'ignore' })- 伪终端等于给了一个完整 shell。确认这是插件的核心功能。
- 动态执行代码
dynamic-code需留意1 处命中dsh/vendor/schemastery/index.mjs:42schema.callback = new Function("return " + schema.callback)();- 看 eval / new Function 的入参来自哪里。常量字符串和用户输入是两回事。
- 接触凭据或密钥
credentials一般555 处命中src/analyze.js:22import { assertNoRetiredEndpointBinding, isApiKeyFailure, redactSecrets, setErrorMessage, splitApiKeys } from './util.js…src/analyze.js:134setErrorMessage(explained, redactSecrets(explained.message));src/analyze.js:140redactSecrets(explained ?? `${providerName} provider failed with code ${code}.${stderr ? ` stderr: ${stderr.trim()}` : '…src/analyze.js:210async function runProvider(provider, model, options, resolvedInput, timeoutMs, settings, warnings, apiKeySecrets = []) {- 看它读取哪些凭据、发往哪里。用于登录自己的服务是正常的。
- 读取文件
reads-files一般72 处命中src/analyze.js:52if (!fs.existsSync(filePath)) {src/analyze.js:55const stat = fs.statSync(filePath);src/analyze.js:184const missingCwd = !fs.existsSync(invocation.cwd);src/providers/antigravity.js:100.readdirSync(dir)- 读文件是绝大多数插件的正常工作方式,本身不构成顾虑。
- 读取环境变量
reads-env一般30 处命中src/analyze.js:97const childEnv = invocation.env ? { ...process.env, ...invocation.env } : undefined;src/analyze.js:98const plan = resolveSpawnPlan(invocation.command, invocation.args, childEnv ?? process.env, invocation.cwd);src/analyze.js:265const chain = [...providerChain(kind, config, autoOptions?.env ?? process.env)];src/analyze.js:288return reorderByCooldown(chain, cooldown, config, autoOptions?.env ?? process.env);- 环境变量里常混有密钥。看它是否把整个 env 都读走。
- 动态加载模块
dynamic-import一般8 处命中dsh/index.js:1631const { readdir, stat, rm } = await import('node:fs/promises')dsh/index.js:1743const { mkdir, lstat, realpath } = await import('node:fs/promises')dsh/index.js:1770const { chmod } = await import('node:fs/promises')dsh/index.js:1780const { randomBytes } = await import('node:crypto')- 动态导入本身无害,但会让依赖关系难以静态审阅。
- 文中出现远程脚本地址
remote-url-reference一般2 处命中src/analyze.js:341'No vision provider is set up on this machine. Install Antigravity CLI (curl -fsSL https://antigravity.google/cli/instal…src/providers/index.js:58install: 'curl -fsSL https://antigravity.google/cli/install.sh | bash && agy # sign in, then exit',- 只是文本里出现了远程脚本地址,没有看到加载它的调用。多半是文档或注释;若确实可疑,搜一下这个地址在包里的其他出现位置。
逐条扫描明细
| 能力 | 标识 | 关注度 | 命中次数 |
|---|---|---|---|
| 可执行外部程序 | spawns-processes | 高关注 | 3 |
| 以 shell 执行命令 | shell-exec | 高关注 | 1 |
| 写入文件 | writes-files | 需留意 | 64 |
| 发起网络请求 | network | 需留意 | 23 |
| 启动伪终端 | spawns-pty | 需留意 | 5 |
| 动态执行代码 | dynamic-code | 需留意 | 1 |
| 接触凭据或密钥 | credentials | 一般 | 555 |
| 读取文件 | reads-files | 一般 | 72 |
| 读取环境变量 | reads-env | 一般 | 30 |
| 动态加载模块 | dynamic-import | 一般 | 8 |
| 文中出现远程脚本地址 | remote-url-reference | 一般 | 2 |
这份报告的口径
扫描读的是包里的源码,全程不执行第三方代码。 本次读了 50 个文件,扫描于 2026-10-14。 命中次数只说明源码里出现过这类调用,不说明行为好坏——一个插件读写文件 500 次和 1 次 都会被记为「读取文件」。这是能力清单,不是信任评分,也不是安全结论: 没扫出来的能力可能只是写法没被规则覆盖。
依赖安全公告
已查询这个插件声明的全部依赖,没有匹配到已公开的安全公告。(含 DSH 框架包在内的 @deepseek-ai/* 不作查询——那是运行时自己的问题,不是插件的。)