D

dsh-wx-bridge

github.com/zhy5/dsh-wx-bridge

v1.1.8 会话与记忆 以 shell 执行命令可执行外部程序R010 向其他插件注入
认证 L3已扫描 ✓健康 S/100周下载 635

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.

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

deepseek-harnessdsh-pluginwechatweixinilinkclawbot
分类
session
发布
2026-09-27
版本
v1.1.8

检测报告

关注度高。命中了不少能力模式,其中可能有需要留意的。逐条看下面的清单。
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 次 都会被记为「读取文件」。这是能力清单,不是信任评分,也不是安全结论: 没扫出来的能力可能只是写法没被规则覆盖。

依赖安全公告

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

← 返回全部插件