dsh-messenger-gateway
github.com/GooDAnDReaDY/dsh-messenger-gateway
v0.4.15
会话与记忆
可执行外部程序发起网络请求写入文件
面向 DeepSeek Harness 的 Telegram 消息桥接,支持交互按钮、论坛话题与语音消息
作者原文(英文)
Telegram messenger bridge for DeepSeek Harness: sessions, steer, homes, inline asks, notify bridge, and optional TTS voice notes.
中文简介由 DeepSeek 模型翻译,仅供参考。
dshdsh-plugintelegrammessengerdeepseek-harnessbot
检测报告
关注度高。命中了不少能力模式,其中可能有需要留意的。逐条看下面的清单。
1高关注3需留意3一般17未命中
高关注需留意一般
能力清单
- 可执行外部程序
spawns-processes高关注2 处命中lib/tts.js:3import { spawn } from 'node:child_process'lib/updater.js:3import { spawn } from 'node:child_process'- 看它调用哪些程序。调用本机已有的工具是常见做法。
- 发起网络请求
network需留意21 处命中lib/client.js:605const res = await fetch(`${ROUTE_PREFIX}/status`, { cache: 'no-store', signal: timeoutSignal(10000) })lib/client.js:617const res = await fetch(`${ROUTE_PREFIX}/pairing`, { credentials: 'same-origin', cache: 'no-store', signal: timeoutSigna…lib/client.js:638const res = await fetch(`${ROUTE_PREFIX}/update`, { cache: 'no-store', signal: timeoutSignal(15000) })lib/client.js:660const res = await fetch(`${ROUTE_PREFIX}/update`, {- 看请求发往哪些域名。发往作者自己的后端是常见做法。
- 写入文件
writes-files需留意19 处命中lib/media.js:48mkdirSync(cacheDir, { recursive: true })lib/media.js:50writeFileSync(path, bytes)lib/pairing.js:16mkdirSync(dir, { recursive: true })lib/pairing.js:19writeFileSync(tmpPath, JSON.stringify(data, null, 2), 'utf8')- 看写入位置。写自己的配置目录是正常的,写系统目录不是。
- 硬编码外部上报地址
hardcoded-endpoint需留意3 处命中lib/client.js:1246placeholder: 'https://discord.com/api/webhooks/...',lib/client.js:1294placeholder: 'https://hooks.slack.com/services/...',lib/adapters/telegram-inbound.js:108const res = await fetch(`https://api.telegram.org/bot${adapter.token}/getMe`, {- 确认这个地址属于插件作者,且不是临时或匿名托管。
- 接触凭据或密钥
credentials一般94 处命中lib/client.js:50telegramSub: 'Main bot credentials, whitelist, and message delivery settings.',lib/client.js:104webhookSecret: 'Webhook Secret Token',lib/client.js:105webhookSecretHint: 'Leave empty to keep current configured secret',lib/client.js:106webhookSecretConfigured: 'Secret set',- 看它读取哪些凭据、发往哪里。用于登录自己的服务是正常的。
- 读取文件
reads-files一般17 处命中lib/adapters/discord.js:114const bytes = file.bytes || (file.path ? await readFile(file.path) : null)lib/file-manager.js:109const rawEntries = await readdir(target, { withFileTypes: true })lib/file-manager.js:197const bytes = await readFile(target)lib/gateway-turn.js:100const bytes = new Uint8Array(await readFile(att.path))- 读文件是绝大多数插件的正常工作方式,本身不构成顾虑。
- 读取环境变量
reads-env一般4 处命中lib/gateway.js:51const home = process.env.DSH_HOME || join(homedir(), '.dsh')lib/index.js:27const home = process.env.DSH_HOME || join(homedir(), '.dsh')lib/updater.js:92const profileDir = resolve(process.env.DSH_PROFILE_DIRlib/updater.js:201env: { ...process.env, NO_COLOR: '1' },- 环境变量里常混有密钥。看它是否把整个 env 都读走。
逐条扫描明细
| 能力 | 标识 | 关注度 | 命中次数 |
|---|---|---|---|
| 可执行外部程序 | spawns-processes | 高关注 | 2 |
| 发起网络请求 | network | 需留意 | 21 |
| 写入文件 | writes-files | 需留意 | 19 |
| 硬编码外部上报地址 | hardcoded-endpoint | 需留意 | 3 |
| 接触凭据或密钥 | credentials | 一般 | 94 |
| 读取文件 | reads-files | 一般 | 17 |
| 读取环境变量 | reads-env | 一般 | 4 |
这份报告的口径
扫描读的是包里的源码,全程不执行第三方代码。 本次读了 52 个文件,扫描于 2026-10-14。 命中次数只说明源码里出现过这类调用,不说明行为好坏——一个插件读写文件 500 次和 1 次 都会被记为「读取文件」。这是能力清单,不是信任评分,也不是安全结论: 没扫出来的能力可能只是写法没被规则覆盖。
依赖安全公告
已查询这个插件声明的全部依赖,没有匹配到已公开的安全公告。(含 DSH 框架包在内的 @deepseek-ai/* 不作查询——那是运行时自己的问题,不是插件的。)