浏览全部

会话与记忆 · v1.1.8

dsh-wx-bridge

github.com/zhy5/dsh-wx-bridge

能力以 shell 执行命令可执行外部程序R010 向其他插件注入

DSH(DeepSeek Harness)插件:把手机微信接到本机 DSH,让微信消息驱动本机执行任务。

作者原文(英文)

DSH plugin: connect WeChat (official iLink/ClawBot) to DeepSeek Harness — settings page with live bridge status, QR device pairing, in-WeChat tool approvals, proactive push, and the bundled bridge + keeper kernel.

简介取自插件自己的 README 原文。

deepseek-harnessdsh-pluginwechatweixinilinkclawbot
认证 L3已扫描 ✓健康 S/100周下载 635
13 项能力
许可
MIT
发布
2026-09-27
维护者
zmainer
插件 ID
1396

安装命令

dsh plugin --profile web add @zmainer/dsh-wx-bridge@1.1.8

已试装 · 层已挂载

已在一个隔离的 profile 里真装过:包能装上,并且插件层挂载成功。这一条是实测结果,不是作者的声明。

检测报告

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

能力清单

  • 以 shell 执行命令shell-exec高关注5 处命中
    • lib/kernel/bridge.mjs:80const raw = execFileSync('powershell.exe', ['-NoProfile', '-Command', ps], { encoding: 'utf8', windowsHide: true, timeou…
    • lib/kernel/bridge.mjs:2185execFileSync(NODE_BIN, [helper, '--text', '自测推送:来自 wxpush', '--data-dir', tmp], { stdio: 'ignore' })
    • lib/kernel/keeper.mjs:177try { execFileSync('taskkill', ['/PID', String(pid), '/T', '/F'], { windowsHide: true, stdio: 'ignore' }) } catch {}
    • lib/kernel/keeper.mjs:185const out = execFileSync('powershell.exe', ['-NoProfile', '-Command', ps], { encoding: 'utf8', windowsHide: true, timeou…
    • 看命令字符串是拼出来的还是写死的。拼接用户输入才是真正的风险。
  • 可执行外部程序spawns-processes高关注4 处命中
    • lib/kernel/acp-preset-shim.mjs:17import { spawnSync } from 'node:child_process'
    • lib/kernel/acp.mjs:17import { spawn } from 'node:child_process'
    • lib/kernel/bridge.mjs:15import { spawn, execFileSync } from 'node:child_process'
    • lib/kernel/keeper.mjs:17import { spawn, execFileSync } from 'node:child_process'
    • 看它调用哪些程序。调用本机已有的工具是常见做法。
  • R010 向其他插件注入plugin-tree-injection高关注1 处命中
    • @zmainer/dsh-wx-bridge
    • 看 patch 里 insert 的包是不是本项目自己的。插入第三方代码要格外留意。
  • R012 改写用户 profileprofile-tamper高关注1 处命中
    • bridge.mjs
    • 看它改的是自己那一段还是别人的。改用户 profile 通常应由用户手动做。
  • 写入文件writes-files需留意87 处命中
    • lib/index.js:138writeFileSync(f, JSON.stringify({ pid: process.pid, port, at: new Date().toISOString() }, null, 2))
    • lib/index.js:197mkdirSync(dataDir, { recursive: true })
    • lib/index.js:198writeFileSync(join(dataDir, 'host-runtime.json'), JSON.stringify({
    • lib/index.js:430if (title && webCtx.sessions && typeof webCtx.sessions.rename === 'function') { await webCtx.sessions.rename(sessionId, …
    • 看写入位置。写自己的配置目录是正常的,写系统目录不是。
  • 发起网络请求network需留意40 处命中
    • lib/client.js:135fetch('/wxbridge/status', { cache: 'no-store' }),
    • lib/client.js:136fetch('/wxbridge/log', { cache: 'no-store' }),
    • lib/client.js:152fetch('/wxbridge/info', { cache: 'no-store' })
    • lib/client.js:156fetch('/wxbridge/approval', { cache: 'no-store' })
    • 看请求发往哪些域名。发往作者自己的后端是常见做法。
  • 可终止进程kills-processes需留意5 处命中
    • lib/kernel/bridge.mjs:284try { process.kill(old.pid, 0); alive = true } catch {}
    • lib/kernel/bridge.mjs:2385const alive = (pid) => { try { process.kill(pid, 0); return true } catch { return false } }
    • lib/kernel/keeper.mjs:107const alive = (pid) => { try { process.kill(pid, 0); return true } catch { return false } }
    • lib/kernel/keeper.mjs:235if (pid > 0) { killTree(pid); if (alive(pid)) { try { process.kill(pid) } catch {} } stopped = true }
    • 看它终止的是自己启动的进程,还是按名字匹配到的任意进程。
  • 启动伪终端spawns-pty需留意4 处命中
    • lib/kernel/bridge.mjs:80const raw = execFileSync('powershell.exe', ['-NoProfile', '-Command', ps], { encoding: 'utf8', windowsHide: true, timeou…
    • lib/kernel/bridge.mjs:309try { spawn('cmd.exe', ['/c', 'icacls "' + AUTH_FILE + '" /inheritance:r /grant:r "' + process.env.USERNAME + ':R"'], { …
    • lib/kernel/bridge.mjs:424try { spawn('cmd.exe', ['/c', 'icacls "' + target + '" /inheritance:r /grant:r "' + process.env.USERNAME + ':R"'], { win…
    • lib/kernel/keeper.mjs:185const out = execFileSync('powershell.exe', ['-NoProfile', '-Command', ps], { encoding: 'utf8', windowsHide: true, timeou…
    • 伪终端等于给了一个完整 shell。确认这是插件的核心功能。
  • 运行时改写自身配置modifies-own-manifest需留意2 处命中
    • lib/kernel/bridge.mjs:408writeFileSync(join(prof, 'package.json'), JSON.stringify({
    • lib/kernel/bridge.mjs:413writeFileSync(join(prof, 'cordis.patch.yml'),
    • 运行时改写自身配置会让下次启动的行为和你看过的源码不一致。
  • 读取文件reads-files一般101 处命中
    • lib/index.js:12try { return JSON.parse(readFileSync(join(dirname(fileURLToPath(import.meta.url)), '..', 'package.json'), 'utf8')).versi…
    • lib/index.js:99try { return JSON.parse(readFileSync(f, 'utf8')) || {} } catch { return {} }
    • lib/index.js:136try { const cur = JSON.parse(readFileSync(f, 'utf8')); if (cur && cur.port && cur.pid === process.pid) return } catch {}
    • lib/index.js:186const bin = (existsSync(a1) && /(^|[\\/])bin\.js$/i.test(a1)) ? a1 : ''
    • 读文件是绝大多数插件的正常工作方式,本身不构成顾虑。
  • 读取环境变量reads-env一般96 处命中
    • lib/index.js:15const TASK_TIMEOUT_MS = Number(process.env.WXBRIDGE_TASK_TIMEOUT_MS || 180000)
    • lib/index.js:30const home = process.env.DSH_HOME || join(process.env.USERPROFILE || process.env.HOME || '', '.dsh')
    • lib/index.js:98const f = process.env.WXBRIDGE_CONFIG || join(process.env.DSH_HOME || '', 'wxbridge', 'config.json')
    • lib/index.js:122if (!port) port = Number(process.env.WXBRIDGE_HOST_PORT || 0)
    • 环境变量里常混有密钥。看它是否把整个 env 都读走。
  • 接触凭据或密钥credentials一般11 处命中
    • lib/pairing.js:125const credFile = opts.credFile || join(dshHome || join(dataDir, 'dsh-home'), '.credentials.yaml')
    • lib/pairing.js:163const t = readTokenFromFile(credFile) || process.env.DSH_WEIXIN_BOT_TOKEN
    • lib/kernel/bridge.mjs:305if (process.env.DSH_BRIDGE_TOKEN) return process.env.DSH_BRIDGE_TOKEN.trim()
    • lib/kernel/bridge.mjs:374const file = join(home, '.credentials.yaml')
    • 看它读取哪些凭据、发往哪里。用于登录自己的服务是正常的。
  • 动态加载模块dynamic-import一般3 处命中
    • lib/index.js:73try { const m = await import(spec); if (typeof m[key] === 'function') return m[key] } catch {}
    • lib/index.js:219const { createKeeper } = await import(new URL('./kernel/keeper.mjs', import.meta.url).href)
    • lib/index.js:254const { createPairing } = await import(new URL('./pairing.js', import.meta.url).href)
    • 动态导入本身无害,但会让依赖关系难以静态审阅。
逐条扫描明细
能力标识关注度命中次数
以 shell 执行命令shell-exec高关注5
可执行外部程序spawns-processes高关注4
R010 向其他插件注入plugin-tree-injection高关注1
R012 改写用户 profileprofile-tamper高关注1
写入文件writes-files需留意87
发起网络请求network需留意40
可终止进程kills-processes需留意5
启动伪终端spawns-pty需留意4
运行时改写自身配置modifies-own-manifest需留意2
读取文件reads-files一般101
读取环境变量reads-env一般96
接触凭据或密钥credentials一般11
动态加载模块dynamic-import一般3

这份报告的口径

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

可信度

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

认证等级 L3

  • L0静态结构与契约✓sha512-XLqTMgL9q6F74Y64… 与本地 tarball 复算一致,补丁与入口齐备
  • L1配置组合与依赖图✓跨包无 entry id 冲突,插入模块可解析,目录内 peer 满足
  • L2隔离沙箱冒烟✓隔离 profile 安装成功,3.4s,层已挂载;宿主带它启动(booted)
  • L3运行时健康监控✓抽样会话内未观测到外部进程 / 越界写 / 外连(2 个事件)
评分口径与作者信息

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

维护者
zmainer
仓库
https://github.com/zhy5/dsh-wx-bridge
许可
MIT
最后发布
2026-09-27
周下载
635
star
1

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

认证等级只回答四件事:包本身是否完整可解析(L0)、能不能与别的插件组合(L1)、隔离环境里装不装得上并起得来(L2)、抽样运行时有没有异常(L3)。依赖漏洞、仓库存活、下载量都不参与评级,只作为独立信号标注。可信 ≠ 无漏洞,上架 ≠ 推荐。

Node 要求>=22.19.0
第三方依赖0 个(纯自包含)
bundle patch./cordis.patch.yml
依赖安全公告已查询全部依赖,没有匹配到已公开的安全公告(含 DSH 框架包在内的 @deepseek-ai/* 不作查询——那是运行时自己的问题,不是插件的。)

元数据

主页https://github.com/zhy5/dsh-wx-bridge#readme
仓库最近提交2026-09-27
仓库创建2026-09-21

返回首页