dsh-image-skin
github.com/Hwayn-pixel/dsh-image-skin
v0.4.11
界面与主题
以 shell 执行命令可执行外部程序发起网络请求
Region & sticker image skin for the DSH (DeepSeek Harness) web UI - paint the window, center, sidebar, welcome, right panel and composer with your own images, GIFs or videos, add two draggable stickers, and let the interface take its colour from your wall
该插件尚未翻译,显示作者原文。
dsh-plugindshdeepseek-harnesscordiscordis-pluginpluginweb-uitheme
检测报告
关注度高。命中了不少能力模式,其中可能有需要留意的。逐条看下面的清单。
2高关注3需留意4一般15未命中
高关注需留意一般
能力清单
- 以 shell 执行命令
shell-exec高关注2 处命中scripts/install.mjs:48const which = spawnSync("where", [name], { shell: true, encoding: "utf8" });scripts/install.mjs:81run("register bundle into profile", dsh, addArgs, isWin ? { shell: true } : {});- 看命令字符串是拼出来的还是写死的。拼接用户输入才是真正的风险。
- 可执行外部程序
spawns-processes高关注1 处命中scripts/install.mjs:16import { spawnSync } from "node:child_process";- 看它调用哪些程序。调用本机已有的工具是常见做法。
- 发起网络请求
network需留意28 处命中lib/client.js:2548const resp = await fetch(`${ROUTE_PREFIX}/gc`, { method: "POST" });lib/client.js:2725const res = await fetch(`${ROUTE_PREFIX}/providers`);lib/client.js:2747const res = await fetch(`${ROUTE_PREFIX}/prompt`, {lib/client.js:2802const res = await fetch(`${ROUTE_PREFIX}/test`, {- 看请求发往哪些域名。发往作者自己的后端是常见做法。
- 写入文件
writes-files需留意11 处命中lib/index.js:518writeFileSync(join(skinDir(), filename), bytes);lib/index.js:524mkdirSync(dir, { recursive: true });lib/index.js:596unlinkSync(file);lib/index.js:775writeFileSync(join(skinDir(), filename), Buffer.from(match[2], "base64"));- 看写入位置。写自己的配置目录是正常的,写系统目录不是。
- 动态执行代码
dynamic-code需留意1 处命中test/client-units.test.mjs:31new Function(bundleSource)();- 看 eval / new Function 的入参来自哪里。常量字符串和用户输入是两回事。
- 接触凭据或密钥
credentials一般48 处命中lib/client.js:2743apiKey: keyMode === "manual" ? String(v.accentApiKey ?? "") : "",lib/client.js:2744apiKeyEnv: String(v.accentKeyEnv ?? ""),lib/client.js:2951? field("envname", "变量名", textInput("accentKeyEnv", { placeholder: envName || "ARK_API_KEY", disabled: Boolean(envName) …lib/client.js:2952: field("key", "Key", textInput("accentApiKey", { type: "password", placeholder: "sk-..." })),- 看它读取哪些凭据、发往哪里。用于登录自己的服务是正常的。
- 读取文件
reads-files一般26 处命中lib/index.js:580names = readdirSync(skinDir()).filter((n) => FILE_RE.test(n));lib/index.js:593const stats = statSync(file);lib/index.js:790files = readdirSync(skinDir()).filter((n) => FILE_RE.test(n));lib/index.js:800const st = statSync(join(skinDir(), filename));- 读文件是绝大多数插件的正常工作方式,本身不构成顾虑。
- 读取环境变量
reads-env一般20 处命中lib/index.js:206const value = process.env[name] ?? process.env[name.toUpperCase()] ?? process.env[name.toLowerCase()];lib/index.js:522const base = process.env.DSH_HOME || join(homedir(), ".dsh");lib/index.js:665const v = process.env[n] ?? process.env[n.toUpperCase()] ?? process.env[n.toLowerCase()];test/host.test.mjs:16process.env.DSH_HOME = home;- 环境变量里常混有密钥。看它是否把整个 env 都读走。
- 动态加载模块
dynamic-import一般2 处命中test/client-units.test.mjs:69const host = await import(new URL("../lib/index.js", import.meta.url).href);test/host.test.mjs:18const mod = await import(new URL(`file://${HOST_ENTRY}`).href);- 动态导入本身无害,但会让依赖关系难以静态审阅。
逐条扫描明细
| 能力 | 标识 | 关注度 | 命中次数 |
|---|---|---|---|
| 以 shell 执行命令 | shell-exec | 高关注 | 2 |
| 可执行外部程序 | spawns-processes | 高关注 | 1 |
| 发起网络请求 | network | 需留意 | 28 |
| 写入文件 | writes-files | 需留意 | 11 |
| 动态执行代码 | dynamic-code | 需留意 | 1 |
| 接触凭据或密钥 | credentials | 一般 | 48 |
| 读取文件 | reads-files | 一般 | 26 |
| 读取环境变量 | reads-env | 一般 | 20 |
| 动态加载模块 | dynamic-import | 一般 | 2 |
这份报告的口径
扫描读的是包里的源码,全程不执行第三方代码。 本次读了 12 个文件,扫描于 2026-10-15。 命中次数只说明源码里出现过这类调用,不说明行为好坏——一个插件读写文件 500 次和 1 次 都会被记为「读取文件」。这是能力清单,不是信任评分,也不是安全结论: 没扫出来的能力可能只是写法没被规则覆盖。
依赖安全公告
已查询这个插件声明的全部依赖,没有匹配到已公开的安全公告。(含 DSH 框架包在内的 @deepseek-ai/* 不作查询——那是运行时自己的问题,不是插件的。)