D

dsh-plugin-tts

github.com/1624318455/dsh-plugin-tts

v0.6.7 界面与主题 可执行外部程序以 shell 执行命令写入文件
认证 L3已扫描 ✓健康 S/100周下载 632

Edge TTS 语音大集成插件:消息朗读按钮、自动朗读开关、语音设置面板(Edge TTS / RVC / Index-TTS2 / CosyVoice / Google Cloud TTS)

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

分类
ui
发布
2026-10-13
版本
v0.6.7

检测报告

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

能力清单

  • 可执行外部程序spawns-processes高关注4 处命中
    • lib/index.mjs:15import { spawn } from 'node:child_process';
    • tests/package-runtime-patch.mjs:7import { execFileSync } from 'node:child_process';
    • tests/rvc-server-live.mjs:16import { spawn } from 'node:child_process';
    • tests/smoke.mjs:9import { execFileSync } from 'node:child_process';
    • 看它调用哪些程序。调用本机已有的工具是常见做法。
  • 以 shell 执行命令shell-exec高关注4 处命中
    • tests/package-runtime-patch.mjs:33return execFileSync(cmd, [...pre, driverPath], { encoding: 'utf8' });
    • tests/smoke.mjs:770execFileSync(process.execPath, ['--version'], { encoding: 'utf8', stdio: ['ignore', 'pipe', 'pipe'] });
    • tests/smoke.mjs:784const out = execFileSync(process.execPath, [
    • tests/smoke.mjs:796const chk = execFileSync(process.execPath, [makePack, '--check', '--repo', repo], { encoding: 'utf8' });
    • 看命令字符串是拼出来的还是写死的。拼接用户输入才是真正的风险。
  • 写入文件writes-files需留意61 处命中
    • tools/gen-ui-preview.mjs:173writeFileSync(out, html, 'utf8');
    • lib/index.mjs:115fs.writeFileSync(outPath, buf);
    • lib/index.mjs:497writeFileSync(wavPath, wavBytes);
    • lib/index.mjs:695writeFileSync(wavPath, buf);
    • 看写入位置。写自己的配置目录是正常的,写系统目录不是。
  • 发起网络请求network需留意53 处命中
    • lib/client.js:1238fetch("/dsh-tts-api/rvc-config-save", {
    • lib/client.js:1247fetch("/dsh-tts-api/index-config-save", {
    • lib/client.js:1256fetch("/dsh-tts-api/cosy-config-save", {
    • lib/client.js:1268fetch("/dsh-tts-api/cloud-config-save", {
    • 看请求发往哪些域名。发往作者自己的后端是常见做法。
  • 动态执行代码dynamic-code需留意6 处命中
    • tests/client-load.mjs:93const fn = new Function('window', 'navigator', 'document', 'Audio', clientSrc + '\n;return window.__ModuleLoader__;');
    • tests/client-load.mjs:110const fn2 = new Function('window', 'navigator', 'document', 'Audio', src2 + '\n;return window.__ModuleLoader__;');
    • tests/client-load.mjs:133const fnS = new Function('window', 'navigator', 'document', 'Audio', srcS + '\n;return window.__ModuleLoader__;');
    • tests/client-load.mjs:161const fnC = new Function('window', 'navigator', 'document', 'Audio', srcS + '\n;return window.__ModuleLoader__;');
    • 看 eval / new Function 的入参来自哪里。常量字符串和用户输入是两回事。
  • 启动伪终端spawns-pty需留意2 处命中
    • pnpm-workspace.yaml:5node-pty: false
    • 伪终端等于给了一个完整 shell。确认这是插件的核心功能。
  • 读取文件reads-files一般72 处命中
    • tests/client-load.mjs:78const clientSrc = readFileSync(path.resolve(path.dirname(fileURLToPath(import.meta.url)), '..', 'lib', 'client.js'), 'ut…
    • tools/gen-ui-preview.mjs:17const clientSrc = readFileSync(path.resolve(here, '..', 'lib', 'client.js'), 'utf8')
    • tests/i18n-keys.mjs:8const client = readFileSync(path.resolve(path.dirname(fileURLToPath(import.meta.url)), '..', 'lib', 'client.js'), 'utf8'…
    • lib/index.mjs:479const audioBytes = readFileSync(mp3Path);
    • 读文件是绝大多数插件的正常工作方式,本身不构成顾虑。
  • 接触凭据或密钥credentials一般23 处命中
    • lib/client.js:4650if (cloudKey.trim() !== "") patch.apiKey = cloudKey.trim();
    • lib/client.js:4652if (!patch.apiKey && cloudProject === null) return;
    • docs/CLOUD-GUIDE.md:170- **Key 存放**:当前用户主目录下的 Host 配置文件(`tts-rvc` 目录下的 `settings.json`,`cloud.apiKey` 字段),
    • lib/index.mjs:804// Key lives in the Host file (~/.dsh/tts-rvc/settings.json, cloud.apiKey) and
    • 看它读取哪些凭据、发往哪里。用于登录自己的服务是正常的。
  • 读取环境变量reads-env一般12 处命中
    • tests/e2e-index-ab.mjs:56const COMPACT = process.env.AB_INDEX
    • lib/index.mjs:1333const o = process.env.DSH_TTS_HOME;
    • lib/index.mjs:1588return process.env.DSH_TTS_PACKS_DIR || path.join(os.homedir(), '.dsh', 'tts-rvc', 'packs');
    • tests/rvc-server-live.mjs:21const BASE = process.env.RVC_URL || 'http://127.0.0.1:4892';
    • 环境变量里常混有密钥。看它是否把整个 env 都读走。
  • 动态加载模块dynamic-import一般2 处命中
    • tests/smoke.mjs:1201const fs = await import('node:fs');
    • rvc-server.py:87from infer.lib.infer_pack.models import (
    • 动态导入本身无害,但会让依赖关系难以静态审阅。
逐条扫描明细
能力标识关注度命中次数
可执行外部程序spawns-processes高关注4
以 shell 执行命令shell-exec高关注4
写入文件writes-files需留意61
发起网络请求network需留意53
动态执行代码dynamic-code需留意6
启动伪终端spawns-pty需留意2
读取文件reads-files一般72
接触凭据或密钥credentials一般23
读取环境变量reads-env一般12
动态加载模块dynamic-import一般2

这份报告的口径

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

依赖安全公告

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

← 返回全部插件