D

dsh-mcp-tunnel

github.com/988hj7tczd-oss/dsh-mcp-tunnel

v0.1.0 模型与账号 可执行外部程序写入文件发起网络请求

DSH plugin: expose a local MCP server to remote agents through an outbound-only tunnel stack (mcp-proxy + cloudflared Quick Tunnel), and register the public URL into dsh-mcp-client streamable-http config.

该插件尚未翻译,显示作者原文。

分类
model
发布
2026-08-24
版本
v0.1.0

检测报告

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

能力清单

  • 可执行外部程序spawns-processes高关注9 处命中
    • lib/certs.js:18import { execFile as execFileCb } from 'node:child_process';
    • lib/index.js:20import { spawn } from 'node:child_process';
    • lib/index.js:21import { execFile as execFileCb } from 'node:child_process';
    • src/certs.ts:19import { execFile as execFileCb } from 'node:child_process'
    • 看它调用哪些程序。调用本机已有的工具是常见做法。
  • 写入文件writes-files需留意25 处命中
    • lib/certs.js:49await fs.mkdir(dir, { recursive: true });
    • lib/certs.js:92await fs.mkdir(dir, { recursive: true });
    • lib/certs.js:93await fs.writeFile(file, `${san}\n`, 'utf8');
    • lib/index.js:109await fs.writeFile(join(deployDir, DOTENV_FILENAME), `# dsh-mcp-tunnel 生成 — 请勿提交版本库\nAPI_KEY=${token}\n`, {
    • 看写入位置。写自己的配置目录是正常的,写系统目录不是。
  • 发起网络请求network需留意2 处命中
    • tests/tunnel.e2e.ts:103const res = await fetch(url!, {
    • tests/tunnel.e2e.ts:123await fetch(url!, { signal: AbortSignal.timeout(15_000) })
    • 看请求发往哪些域名。发往作者自己的后端是常见做法。
  • 读取文件reads-files一般20 处命中
    • lib/index.js:95const raw = await fs.readFile(join(deployDir, DOTENV_FILENAME), 'utf8');
    • lib/index.js:118const raw = await fs.readFile(file, 'utf8');
    • lib/mcp-client-config.js:113const raw = await fs.readFile(path, 'utf8');
    • lib/tunnel-stack.js:267return readFileSync(file, 'utf8');
    • 读文件是绝大多数插件的正常工作方式,本身不构成顾虑。
  • 接触凭据或密钥credentials一般19 处命中
    • lib/index.js:92/** 在部署目录读取 API_KEY(.env 解析;无则返回 null)。 */
    • lib/index.js:97const match = /^\s*API_KEY\s*=\s*(.*)\s*$/.exec(line);
    • lib/index.js:107/** 写 .env(0600),只写 API_KEY 一项,绝不把秘密写进 compose 文件(安全护栏 2)。 */
    • lib/index.js:109await fs.writeFile(join(deployDir, DOTENV_FILENAME), `# dsh-mcp-tunnel 生成 — 请勿提交版本库\nAPI_KEY=${token}\n`, {
    • 看它读取哪些凭据、发往哪里。用于登录自己的服务是正常的。
  • 读取环境变量reads-env一般3 处命中
    • lib/index.js:49env: process.env,
    • src/index.ts:98env: process.env,
    • tests/tunnel.e2e.ts:41const enabled = process.env.DSH_MCP_TUNNEL_E2E === '1'
    • 环境变量里常混有密钥。看它是否把整个 env 都读走。
逐条扫描明细
能力标识关注度命中次数
可执行外部程序spawns-processes高关注9
写入文件writes-files需留意25
发起网络请求network需留意2
读取文件reads-files一般20
接触凭据或密钥credentials一般19
读取环境变量reads-env一般3

这份报告的口径

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

依赖安全公告

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

← 返回全部插件