D

dsh-maestro-remote

github.com/ddtcorex/dsh-maestro-remote

v0.6.0 模型与账号 可执行外部程序以 shell 执行命令写入文件
认证 L3已扫描 ✓健康 S/100周下载 511

DeepSeek Harness 的远程访问插件: 一个 Cloudflare 隧道(quick 或 named)加上一个局域网远程代理,让 DSH 会话可以从本机之外访问, 并由第二个 PIN 配合二维码配置来把关。

作者原文(英文)

Maestro remote — tunnel + remote-proxy + PIN + QR for DeepSeek Harness

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

分类
model
发布
2026-10-09
版本
v0.6.0

检测报告

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

能力清单

  • 可执行外部程序spawns-processes高关注6 处命中
    • lib/cloudflared-fetch.js:1import { spawn, execSync } from 'node:child_process';
    • lib/tunnel.js:1import { spawn } from 'node:child_process';
    • lib/cloudflared-fetch.d.ts:1import { spawn } from 'node:child_process';
    • src/host/cloudflared-fetch.ts:1import { spawn, execSync, type ChildProcess } from 'node:child_process'
    • 看它调用哪些程序。调用本机已有的工具是常见做法。
  • 以 shell 执行命令shell-exec高关注2 处命中
    • lib/cloudflared-fetch.js:271execSync(process.platform === 'win32' ? 'where cloudflared' : 'command -v cloudflared', { stdio: 'ignore' });
    • src/host/cloudflared-fetch.ts:300execSync(process.platform === 'win32' ? 'where cloudflared' : 'command -v cloudflared', { stdio: 'ignore' })
    • 看命令字符串是拼出来的还是写死的。拼接用户输入才是真正的风险。
  • 写入文件writes-files需留意48 处命中
    • lib/access-log.js:41await rename(from, to);
    • lib/access-log.js:56* between listing and stat/unlink (rotated or pruned concurrently) is not
    • lib/access-log.js:76await unlink(full);
    • lib/access-log.js:86await mkdir(dirname(path), { recursive: true });
    • 看写入位置。写自己的配置目录是正常的,写系统目录不是。
  • 发起网络请求network需留意2 处命中
    • lib/tunnel.js:8import { resolveCloudflared } from './cloudflared-fetch.js';
    • src/host/tunnel.ts:9import { resolveCloudflared } from './cloudflared-fetch.js'
    • 看请求发往哪些域名。发往作者自己的后端是常见做法。
  • 动态执行代码dynamic-code需留意2 处命中
    • lib/client.js:122const doImport = new Function("s", "return import(s)");
    • …/client/patch/patches/welcome.ts:59const doImport = new Function('s', 'return import(s)') as (s: string) => Promise<unknown>
    • 看 eval / new Function 的入参来自哪里。常量字符串和用户输入是两回事。
  • 读取文件reads-files一般25 处命中
    • lib/access-log.js:64entries = await readdir(dir);
    • lib/cloudflared-fetch.js:92const rs = createReadStream(file);
    • lib/cloudflared-fetch.js:235const versions = await import('node:fs/promises').then((fs) => fs.readdir(versionDir)).catch(() => []);
    • lib/config-store.js:20return JSON.parse(await readFile(runtimeStatePath(dshHome), 'utf8'));
    • 读文件是绝大多数插件的正常工作方式,本身不构成顾虑。
  • 读取环境变量reads-env一般25 处命中
    • lib/access-log.js:18const home = process.env.DSH_HOME ?? join(homedir(), '.dsh');
    • lib/cloudflared-fetch.js:284const dshHome = options.home ?? process.env.DSH_HOME ?? join(homedir(), '.dsh');
    • lib/config-store.js:6return dshHome ?? process.env.DSH_HOME ?? join(homedir(), '.dsh');
    • lib/pin-store.js:7const home = dshHome ?? process.env.DSH_HOME ?? join(homedir(), '.dsh');
    • 环境变量里常混有密钥。看它是否把整个 env 都读走。
  • 动态加载模块dynamic-import一般18 处命中
    • lib/client.js:122const doImport = new Function("s", "return import(s)");
    • lib/cloudflared-fetch.js:222await rename(tmpFile, binPath).catch(async () => { await rm(binPath, { force: true }).catch(() => { }); await import('no…
    • lib/cloudflared-fetch.js:235const versions = await import('node:fs/promises').then((fs) => fs.readdir(versionDir)).catch(() => []);
    • lib/cloudflared-fetch.js:247await rename(found, binPath).catch(async () => { await rm(binPath, { force: true }).catch(() => { }); await import('node…
    • 动态导入本身无害,但会让依赖关系难以静态审阅。
逐条扫描明细
能力标识关注度命中次数
可执行外部程序spawns-processes高关注6
以 shell 执行命令shell-exec高关注2
写入文件writes-files需留意48
发起网络请求network需留意2
动态执行代码dynamic-code需留意2
读取文件reads-files一般25
读取环境变量reads-env一般25
动态加载模块dynamic-import一般18

这份报告的口径

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

依赖安全公告

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

← 返回全部插件