dsh-custom-theme
github.com/Sparrived/dsh-custom-theme
v0.5.0
界面与主题
发起网络请求写入文件动态执行代码
User-editable CSS themes and background images for the DSH Web GUI and Desktop app, with pickers in Settings
该插件尚未翻译,显示作者原文。
dshcordisplugintheme
检测报告
有一定能力。命中了若干能力模式,大多是插件正常工作时会用到的。
3需留意4一般17未命中
高关注需留意一般
能力清单
- 发起网络请求
network需留意19 处命中src/client/update/client.cjs:78? await fetch(UPDATE_CHECK_URL, { method: 'POST', cache: 'no-store' })src/client/update/client.cjs:79: await fetch(UPDATE_URL, { cache: 'no-store' })src/client/update/client.cjs:96const response = await fetch(UPDATE_APPLY_URL, { method: 'POST', cache: 'no-store' })src/client/shared/host-api.cjs:12const response = await fetch(LIST_URL, { signal, cache: 'no-store' })- 看请求发往哪些域名。发往作者自己的后端是常见做法。
- 写入文件
writes-files需留意14 处命中src/host/backgrounds-store.mjs:119await mkdir(directory, { recursive: true })src/host/backgrounds-store.mjs:120await writeFile(join(directory, name), bytes)src/index.mjs:56mkdir(backgrounds, { recursive: true }),src/host/profile.mjs:92await mkdir(home, { recursive: true })- 看写入位置。写自己的配置目录是正常的,写系统目录不是。
- 动态执行代码
dynamic-code需留意1 处命中docs/desktop-tray.md:101单元测试与真实端到端互补:`test/desktop-inject.test.mjs` 用**序列化后的载荷源码**(`new Function(...)`,与注入路径一致)驱动 mock Electron,覆盖菜单分组、文本/颜色消毒、I…- 看 eval / new Function 的入参来自哪里。常量字符串和用户输入是两回事。
- 读取文件
reads-files一般14 处命中src/host/backgrounds-store.mjs:31entries = await readdir(directory, { withFileTypes: true })src/host/backgrounds-store.mjs:52bytes = await readFile(join(directory, name))src/host/backgrounds-store.mjs:111const existing = await readFile(join(directory, desired)).catch(() => undefined)src/host/profile.mjs:63const present = await readFile(file, 'utf8').then(() => true, () => false)- 读文件是绝大多数插件的正常工作方式,本身不构成顾虑。
- 读取环境变量
reads-env一般3 处命中src/host/home.mjs:16const configured = process.env.DSH_HOMEsrc/host/profile.mjs:42const declared = process.env.DSH_PROFILE_DIRsrc/host/profile.mjs:51const profile = process.env.DSH_PROFILE- 环境变量里常混有密钥。看它是否把整个 env 都读走。
- 动态加载模块
dynamic-import一般2 处命中lib/client.js:53return require(request)ARCHITECTURE.md:235request scanner reads `require(` inside a regex literal as a request, so a module- 动态导入本身无害,但会让依赖关系难以静态审阅。
- 接触凭据或密钥
credentials一般1 处命中ARCHITECTURE.md:149selection is delegated to `uiWorkspace`. No Host session logic, credentials or second- 看它读取哪些凭据、发往哪里。用于登录自己的服务是正常的。
逐条扫描明细
| 能力 | 标识 | 关注度 | 命中次数 |
|---|---|---|---|
| 发起网络请求 | network | 需留意 | 19 |
| 写入文件 | writes-files | 需留意 | 14 |
| 动态执行代码 | dynamic-code | 需留意 | 1 |
| 读取文件 | reads-files | 一般 | 14 |
| 读取环境变量 | reads-env | 一般 | 3 |
| 动态加载模块 | dynamic-import | 一般 | 2 |
| 接触凭据或密钥 | credentials | 一般 | 1 |
这份报告的口径
扫描读的是包里的源码,全程不执行第三方代码。 本次读了 73 个文件,扫描于 2026-10-15。 命中次数只说明源码里出现过这类调用,不说明行为好坏——一个插件读写文件 500 次和 1 次 都会被记为「读取文件」。这是能力清单,不是信任评分,也不是安全结论: 没扫出来的能力可能只是写法没被规则覆盖。
依赖安全公告
已查询这个插件声明的全部依赖,没有匹配到已公开的安全公告。(含 DSH 框架包在内的 @deepseek-ai/* 不作查询——那是运行时自己的问题,不是插件的。)