D

dsh-settings-search

github.com/objectivex666/dsh-settings-search

v1.13.1 界面与主题 可执行外部程序以 shell 执行命令写入文件

本插件是一个标准的 **DSH profile bundle**:安装后自动写入设置面板, 无需手动修改任何 DSH 配置文件。

作者原文(英文)

DSH settings panel search plugin – instantly filter setting sections and general items with navigation guidance. Installable via `dsh plugin add`.

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

dshcordissettingssearchpluginkoishichatbot
分类
ui
发布
2026-10-06
版本
v1.13.1

检测报告

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

能力清单

  • 可执行外部程序spawns-processes高关注2 处命中
    • lib/index.js:24import { spawn } from 'node:child_process'
    • scripts/release.mjs:17import { execFileSync } from 'node:child_process'
    • 看它调用哪些程序。调用本机已有的工具是常见做法。
  • 以 shell 执行命令shell-exec高关注2 处命中
    • scripts/release.mjs:99return execFileSync(cmd, args, { cwd: ROOT, stdio: 'inherit' })
    • scripts/release.mjs:104const out = execFileSync('git', ['tag', '--list', tag], { cwd: ROOT, encoding: 'utf8' })
    • 看命令字符串是拼出来的还是写死的。拼接用户输入才是真正的风险。
  • 写入文件writes-files需留意13 处命中
    • lib/index.js:182mkdirSync(dir, { recursive: true })
    • lib/index.js:200if (existsSync(legacy) && !existsSync(target)) renameSync(legacy, target)
    • lib/index.js:254unlinkSync(entry.path)
    • lib/index.js:307appendFileSync(target, `${accepted.join('\n')}\n`, 'utf8')
    • 看写入位置。写自己的配置目录是正常的,写系统目录不是。
  • 发起网络请求network需留意9 处命中
    • lib/client.js:576const response = await fetch(LOG_ROUTE, {
    • lib/client.js:626const response = await fetch(LOG_ROUTE, { method: 'GET' })
    • lib/client.js:650const response = await fetch(`${LOG_ROUTE}?count=1`, { method: 'GET' })
    • lib/client.js:942const response = await fetch(url, {
    • 看请求发往哪些域名。发往作者自己的后端是常见做法。
  • 动态执行代码dynamic-code需留意3 处命中
    • scripts/ai.test.mjs:64vm.runInNewContext(instrumentedModel, sandbox, { filename: 'lib/client.js' })
    • scripts/check.mjs:42vm.createContext(sandbox)
    • scripts/check.mjs:43vm.runInContext(source, sandbox, { filename: clientExport })
    • 看 eval / new Function 的入参来自哪里。常量字符串和用户输入是两回事。
  • 接触凭据或密钥credentials一般80 处命中
    • lib/client.js:104aiApiKey: 'API Key',
    • lib/client.js:251aiApiKey: 'API Key',
    • lib/client.js:280aiTestErrUnsafeUrl: 'Unsafe URL — only http(s) is allowed, remote hosts must use https, and embedded credentials are not…
    • lib/client.js:720const AI_API_KEY_KEY = 'dsh-settings-search:ai-api-key'
    • 看它读取哪些凭据、发往哪里。用于登录自己的服务是正常的。
  • 读取文件reads-files一般29 处命中
    • lib/index.js:200if (existsSync(legacy) && !existsSync(target)) renameSync(legacy, target)
    • lib/index.js:216if (!existsSync(candidate) || statSync(candidate).size < maxBytes) return candidate
    • lib/index.js:226return readdirSync(dir).filter((name) => LOG_FILE_PATTERN.test(name)).map((name) => join(dir, name))
    • lib/index.js:233const info = statSync(path)
    • 读文件是绝大多数插件的正常工作方式,本身不构成顾虑。
  • 读取环境变量reads-env一般7 处命中
    • lib/index.js:73const defaultLogDir = () => join(process.env.DSH_HOME || join(homedir(), '.dsh'), 'logs', LOG_DIR_NAME)
    • lib/index.js:78for (const [key, value] of Object.entries(process.env)) {
    • lib/index.js:174const dir = options.dir ?? process.env.DSH_SETTINGS_SEARCH_LOG_DIR ?? defaultLogDir()
    • scripts/log.test.mjs:327const previous = process.env.DSH_SETTINGS_SEARCH_LOG_DIR
    • 环境变量里常混有密钥。看它是否把整个 env 都读走。
  • 使用 vm 模块做隔离uses-vm-module一般2 处命中
    • scripts/ai.test.mjs:4import vm from 'node:vm'
    • scripts/check.mjs:10import vm from 'node:vm'
    • 用 node:vm 是在建立隔离,不是在突破它。本身不是顾虑,但值得知道这个插件会执行动态代码。
  • 动态加载模块dynamic-import一般1 处命中
    • scripts/check.mjs:22const host = await import('../lib/index.js')
    • 动态导入本身无害,但会让依赖关系难以静态审阅。
逐条扫描明细
能力标识关注度命中次数
可执行外部程序spawns-processes高关注2
以 shell 执行命令shell-exec高关注2
写入文件writes-files需留意13
发起网络请求network需留意9
动态执行代码dynamic-code需留意3
接触凭据或密钥credentials一般80
读取文件reads-files一般29
读取环境变量reads-env一般7
使用 vm 模块做隔离uses-vm-module一般2
动态加载模块dynamic-import一般1

这份报告的口径

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

依赖安全公告

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

← 返回全部插件