D

dsh-plugin-restart

github.com/SOH4C4759/dsh-plugin-restart

v1.0.2 界面与主题 可执行外部程序以 shell 执行命令写入文件
认证 L2已扫描 ✓健康 S/100周下载 507

插件迭代后,**点一下界面上的「重启 DSH」按钮**,整个 DeepSeek Harness 桌面应用(Electron 外壳 + Host)会退出并自动重新启动,让刚重建的插件包、组合(bundle)、preset 立即生效。

作者原文(英文)

One-click DSH restart: a sidebar button plus a detached supervisor that relaunches the DeepSeek Harness desktop app, so a rebuilt plugin or profile change takes effect immediately.

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

dshdeepseek-harnesspluginbundlecordisrestartrelaunchelectron
发布
2026-10-08

检测报告

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

能力清单

  • 可执行外部程序spawns-processes高关注5 处命中
    • index.js:22import { spawn } from 'node:child_process'
    • scripts/verify-bundle.mjs:22import { execFileSync } from 'node:child_process'
    • tests/host-arm-e2e.ps1:111import { spawn } from 'node:child_process'
    • tests/supervisor-e2e.ps1:149$shellScript = "const{spawn}=require('child_process');spawn(process.execPath,['-e','setInterval(()=>{},1000)'],{stdio:'i…
    • 看它调用哪些程序。调用本机已有的工具是常见做法。
  • 以 shell 执行命令shell-exec高关注1 处命中
    • scripts/verify-bundle.mjs:289execFileSync(process.execPath, ['--check', absolute], { stdio: ['ignore', 'ignore', 'pipe'] })
    • 看命令字符串是拼出来的还是写死的。拼接用户输入才是真正的风险。
  • 写入文件writes-files需留意7 处命中
    • index.js:510writeFileSync(payloadPath, Buffer.from(commandLine, 'utf8').toString('base64'), 'utf8')
    • index.js:512writeFileSync(
    • index.js:572mkdirSync(dirname(plan.triggerPath), { recursive: true })
    • index.js:573writeFileSync(
    • 看写入位置。写自己的配置目录是正常的,写系统目录不是。
  • 启动伪终端spawns-pty需留意3 处命中
    • tests/host-arm-e2e.ps1:116const c = spawn('cmd.exe', ['/c','start','','/min', ps, ...argv], { detached: true, stdio: 'ignore', windowsHide: true }…
    • 伪终端等于给了一个完整 shell。确认这是插件的核心功能。
  • 发起网络请求network需留意2 处命中
    • client.js:175const response = await fetch(url, {
    • scripts/verify-live.mjs:22const response = await fetch(`${BASE}${path}`, {
    • 看请求发往哪些域名。发往作者自己的后端是常见做法。
  • 动态执行代码dynamic-code需留意2 处命中
    • tests/ui-render.mjs:214vm.createContext(sandbox)
    • tests/ui-render.mjs:215vm.runInContext(source, sandbox, { filename: file })
    • 看 eval / new Function 的入参来自哪里。常量字符串和用户输入是两回事。
  • 读取文件reads-files一般48 处命中
    • index.js:52if (existsSync(manifest)) {
    • index.js:53const parsed = JSON.parse(readFileSync(manifest, 'utf8'))
    • index.js:91candidates.push({ path, exists: existsSync(path), source: base.source })
    • index.js:237const stat = readFileSync(`/proc/${String(pid)}/stat`, 'utf8')
    • 读文件是绝大多数插件的正常工作方式,本身不构成顾虑。
  • 读取环境变量reads-env一般13 处命中
    • index.js:154export function resolveDshHome(env = process.env) {
    • index.js:160export function resolveStateDir(env = process.env) {
    • index.js:165export function resolveNodeExecutable(env = process.env) {
    • index.js:181export function resolveSupervisorRuntime(env = process.env) {
    • 环境变量里常混有密钥。看它是否把整个 env 都读走。
  • 动态加载模块dynamic-import一般6 处命中
    • index.js:502const { execFile } = await import('node:child_process')
    • index.js:503const { mkdtempSync, writeFileSync } = await import('node:fs')
    • index.js:504const { tmpdir } = await import('node:os')
    • tests/routes.mjs:21const host = await import(pathToFileURL(join(packageRoot, 'index.js')).href)
    • 动态导入本身无害,但会让依赖关系难以静态审阅。
  • 接触凭据或密钥credentials一般1 处命中
    • index.js:381if (url.username !== '' || url.password !== '' || url.pathname !== '/' || url.search !== '' || url.hash !== '') return u…
    • 看它读取哪些凭据、发往哪里。用于登录自己的服务是正常的。
  • 使用 vm 模块做隔离uses-vm-module一般1 处命中
    • tests/ui-render.mjs:35import vm from 'node:vm'
    • 用 node:vm 是在建立隔离,不是在突破它。本身不是顾虑,但值得知道这个插件会执行动态代码。
逐条扫描明细
能力标识关注度命中次数
可执行外部程序spawns-processes高关注5
以 shell 执行命令shell-exec高关注1
写入文件writes-files需留意7
启动伪终端spawns-pty需留意3
发起网络请求network需留意2
动态执行代码dynamic-code需留意2
读取文件reads-files一般48
读取环境变量reads-env一般13
动态加载模块dynamic-import一般6
接触凭据或密钥credentials一般1
使用 vm 模块做隔离uses-vm-module一般1

这份报告的口径

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

依赖安全公告

已查询这个插件声明的全部依赖,没有匹配到已公开的安全公告。(含 DSH 框架包在内的 @deepseek-ai/* 不作查询——那是运行时自己的问题,不是插件的。)

可信度

100 健康分 S 扣分项下方逐条附证据
  • 0没有可扣分的项

认证等级 L2

  • L0内容完整性✓sha512-8ZVhLwVrLI1AgcwY… 与本地 tarball 复算一致
  • L1来源✓维护者 sorabot,仓库 SOH4C4759/dsh-plugin-restart(未做仓库审计)
  • L2发行✓隔离 profile 安装成功,5.5s,层已挂载
  • L3生态—还没有契约/启动记录
  • L4多方独立验证—本站不做第三方独立背书
评分口径与作者信息

从 100 分开始按规则扣减:fail −20 / major −10 / warn −5 / minor −2;star 数、下载量、LLM 输出都不参与评分

维护者
sorabot
仓库
https://github.com/SOH4C4759/dsh-plugin-restart
许可
MIT
最后发布
2026-10-08
周下载
507
star
1

扫描状态:已扫描。能力是事实,不是缺陷; 周下载与 star 只作参考,不参与评分。

认证等级核验的是这个包本身(内容指纹、来源、能否安装、声明是否属实);依赖漏洞是独立标注的,两者正交、不互相掩盖。可信 ≠ 无漏洞,上架 ≠ 推荐。

← 返回首页