D

dsh-server-monitor

github.com/GooDAnDReaDY/dsh-server-monitor

v0.1.17 界面与主题 可执行外部程序写入文件启动伪终端

用于 DeepSeek Harness 侧边栏的独立只读 Linux 服务器监控器

作者原文(英文)

SSH server monitor and terminal sidebar for DeepSeek Harness

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

dshdsh-plugindeepseek-harnessserver-monitorlinuxssh
分类
ui
发布
2026-10-07
版本
v0.1.17

检测报告

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

能力清单

  • 可执行外部程序spawns-processes高关注1 处命中
    • lib/plugin-updater.js:1import { spawn } from 'node:child_process';
    • 看它调用哪些程序。调用本机已有的工具是常见做法。
  • 写入文件writes-files需留意16 处命中
    • lib/metric-store.js:67fs.mkdirSync(path.dirname(file), { recursive: true, mode: 0o700 });
    • lib/metric-store.js:69fs.writeFileSync(file, body ? `${body}\n` : '');
    • lib/metric-store.js:97fs.mkdirSync(dir, { recursive: true, mode: 0o700 });
    • lib/metric-store.js:98fs.appendFileSync(path.join(dir, 'raw.jsonl'), `${JSON.stringify(point)}\n`);
    • 看写入位置。写自己的配置目录是正常的,写系统目录不是。
  • 启动伪终端spawns-pty需留意9 处命中
    • lib/linux-collector.js:252result = await this.sshService.exec({ ...profile, shell: 'powershell' }, snapshotCommand({ shell: 'powershell' }), optio…
    • lib/ssh-service.js:306const res = await this.exec(profile, cmd, { timeout: 25, cleanAnsi: true, maxOutputBytes: 8000 });
    • lib/ssh-service.js:363const res = await this.exec(profile, cmd, { timeout: 15, cleanAnsi: true });
    • lib/ssh-service.js:395const res = await this.exec(profile, cmd, { timeout: 10, cleanAnsi: true });
    • 伪终端等于给了一个完整 shell。确认这是插件的核心功能。
  • 发起网络请求network需留意4 处命中
    • lib/client.js:160const response = await fetch(API + path, { credentials: 'same-origin', ...options, headers: { 'Content-Type': 'applicati…
    • lib/client.js:1082socket = new WebSocket(protocol + '//' + location.host + API + '/pty?profileId=' + encodeURIComponent(profile.id) + tmux…
    • lib/index.js:179const res = await fetch(url, {
    • lib/plugin-updater.js:117const response = await fetch(`${registry.replace(/\/$/, '')}/${encodeURIComponent(packageName)}/latest`, {
    • 看请求发往哪些域名。发往作者自己的后端是常见做法。
  • 硬编码外部上报地址hardcoded-endpoint需留意1 处命中
    • lib/client.js:871placeholder: 'https://webhook.site/...',
    • 确认这个地址属于插件作者,且不是临时或匿名托管。
  • R011 客户端可疑脚本client-side-risk需留意1 处命中
    • client.js: postMessage 无 origin 校验
    • 浏览器侧代码能改你看到的界面。确认改动范围符合插件用途。
  • 接触凭据或密钥credentials一般77 处命中
    • lib/agent-tools.js:36description: 'List saved Server Monitor hosts. Secrets are omitted. Filter with an optional tag.',
    • lib/agent-tools.js:185export const MONITOR_PROMPT = 'Server Monitor lists saved hosts with server_monitor_hosts, runs diagnostic commands with…
    • lib/client.js:22key: 'Private key', password: 'Password', passphrase: 'Key passphrase', keyPath: 'Key path',
    • lib/client.js:23keyHint: 'The key is stored only in this plugin vault.', keepSecret: 'Leave empty to keep stored value',
    • 看它读取哪些凭据、发往哪里。用于登录自己的服务是正常的。
  • 读取文件reads-files一般23 处命中
    • lib/metric-store.js:52if (!fs.existsSync(file)) return [];
    • lib/metric-store.js:53const lines = fs.readFileSync(file, 'utf8').split(/\n/).filter(Boolean);
    • lib/metric-store.js:133if (!fs.existsSync(file)) return { month: monthKey(), rx: 0, tx: 0 };
    • lib/metric-store.js:135const parsed = JSON.parse(fs.readFileSync(file, 'utf8'));
    • 读文件是绝大多数插件的正常工作方式,本身不构成顾虑。
  • 读取环境变量reads-env一般4 处命中
    • lib/plugin-updater.js:61const profileDir = resolve(process.env.DSH_PROFILE_DIR
    • lib/plugin-updater.js:170env: { ...process.env, NO_COLOR: '1' },
    • lib/ssh-service.js:205} else if (process.env.SSH_AUTH_SOCK) {
    • lib/ssh-service.js:206config.agent = process.env.SSH_AUTH_SOCK;
    • 环境变量里常混有密钥。看它是否把整个 env 都读走。
  • 动态加载模块dynamic-import一般3 处命中
    • lib/client.js:1071import(API + '/vendor/xterm.mjs'),
    • lib/client.js:1072import(API + '/vendor/addon-fit.mjs')
    • lib/index.js:292const { defineTool } = await import('@deepseek-ai/dsh-tools');
    • 动态导入本身无害,但会让依赖关系难以静态审阅。
逐条扫描明细
能力标识关注度命中次数
可执行外部程序spawns-processes高关注1
写入文件writes-files需留意16
启动伪终端spawns-pty需留意9
发起网络请求network需留意4
硬编码外部上报地址hardcoded-endpoint需留意1
R011 客户端可疑脚本client-side-risk需留意1
接触凭据或密钥credentials一般77
读取文件reads-files一般23
读取环境变量reads-env一般4
动态加载模块dynamic-import一般3

这份报告的口径

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

依赖安全公告

这个插件声明的依赖中,有 2 条已公开的安全公告 (最高等级:中):

等级依赖包编号摘要
中wsCVE-2026-45736ws: Uninitialized memory disclosure
修复版本:8.20.1 详情 →
中wsCVE-2026-48779ws: Memory exhaustion DoS from tiny fragments and data chunks
修复版本:5.2.5, 6.2.4, 7.5.11 详情 →

查询的是依赖声明范围的下界(如 ^4.2.0 查 4.2.0), 不是实际安装到的版本。真正装的时候如果解析到了修复版本,就不受影响—— 所以这是「可能受影响」,不是「这个插件有漏洞」。数据来自 OSV.dev。

← 返回全部插件