浏览全部

界面与主题 · v0.1.16

dsh-client-ui-skin-center

github.com/neystan/dsh-web-ui

能力写入文件发起网络请求动态执行代码

@neystan/dsh-client-ui-skin-center(cordis 插件 id 为 ui-skin-center)将皮肤列表、试穿、应用嵌入到真实 dsh Web GUI 的插件配置页面中。

作者原文(英文)

@neystan/dsh-client-ui-skin-center (cordis plugin id ui-skin-center) embeds the skin list / try-on / apply into the plugin configuration page of the real dsh Web GUI.

简介取自插件 README 开头,由 DeepSeek 模型翻译,仅供参考。

认证 L0已扫描 ✓健康 C/75周下载 119
6 项能力
许可
Apache-2.0
发布
2026-08-18
维护者
neystan
插件 ID
991

安装命令

dsh plugin --profile web add @neystan/dsh-client-ui-skin-center@0.1.16

已试装 · 层已挂载

已在一个隔离的 profile 里真装过:包能装上,并且插件层挂载成功。这一条是实测结果,不是作者的声明。

检测报告

有一定能力。命中了若干能力模式,大多是插件正常工作时会用到的。
3需留意3一般18未命中
高关注需留意一般

能力清单

  • 写入文件writes-files需留意16 处命中
    • lib/index.js:68await mkdir(this.root, { recursive: true });
    • lib/index.js:74if (now - (await stat(path)).mtimeMs > TEMP_MAX_AGE_MS) await unlink(path);
    • lib/index.js:90await mkdir(this.root, { recursive: true });
    • lib/index.js:99await writeFile(temporary, bytes, { flag: "wx" });
    • 看写入位置。写自己的配置目录是正常的,写系统目录不是。
  • 发起网络请求network需留意3 处命中
    • lib/client.js:1469fetch("/api/skin-center/state").then(async (response) => {
    • lib/client.js:1501fetch(window.location.href, { cache: "no-store" }).then(async (response) => {
    • lib/client.js:1535const response = await fetch("/api/skin-center/apply", {
    • 看请求发往哪些域名。发往作者自己的后端是常见做法。
  • 动态执行代码dynamic-code需留意1 处命中
    • README.md:113- [x] On-demand loading: cold start does not parse the ~700KB embedded base64 (`generated/skins.ts` is only ~5KB of meta…
    • 看 eval / new Function 的入参来自哪里。常量字符串和用户输入是两回事。
  • 读取文件reads-files一般26 处命中
    • lib/index.js:69const entries = await readdir(this.root, { withFileTypes: true });
    • lib/index.js:179for (const entry of readdirSync(scoped)) {
    • lib/index.js:235const meta = JSON.parse(readFileSync(join(absDir, "skin.json"), "utf8"));
    • lib/index.js:269entries = readdirSync(skinsDir);
    • 读文件是绝大多数插件的正常工作方式,本身不构成顾虑。
  • 读取环境变量reads-env一般4 处命中
    • lib/index.js:205const fromEnv = process.env.DSH_SKINS_DIR;
    • lib/index.js:587* @param env - environment map (defaults to process.env).
    • lib/index.js:589function resolveHarnessHome(optsHome, env = process.env) {
    • lib/index.js:606* @param env - environment map (defaults to process.env).
    • 环境变量里常混有密钥。看它是否把整个 env 都读走。
  • 动态加载模块dynamic-import一般3 处命中
    • lib/client.js:1052* REGISTERS the factory. `window.__DSH_MODULES__.import(package)` (the
    • lib/client.js:1249const apply = (await modules.import(entry.package)).apply;
    • README.md:60- Try-on loading: the host route `/api/skin-center/bundle/<id>` serves `lib/client.js` on demand (same-origin script, lo…
    • README.zh.md:60- 试穿加载:host 路由 `/api/skin-center/bundle/<id>` 按需提供 `lib/client.js`(同源 script,`<script>` 标签加载——与内核 `defaultLoadBundle` 同一…
    • 动态导入本身无害,但会让依赖关系难以静态审阅。
逐条扫描明细
能力标识关注度命中次数
写入文件writes-files需留意16
发起网络请求network需留意3
动态执行代码dynamic-code需留意1
读取文件reads-files一般26
读取环境变量reads-env一般4
动态加载模块dynamic-import一般3

这份报告的口径

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

可信度

75 健康分 C 扣分项下方逐条附证据
  • -20宿主启动时导入失败fail:ui-skin-center
  • -5cordis entry id「ui-skin-center」被 2 个包共用,同时安装会互相替换warn:@linxin666/dsh-client-ui-skin-center

认证等级 L0

  • L0静态结构与契约✓sha512-Ssd2ymUmpWQYmLv7… 与本地 tarball 复算一致,补丁与入口齐备
  • L1配置组合与依赖图—entry id ui-skin-center 被 2 个包共用
  • L2隔离沙箱冒烟—宿主启动时该插件导入失败
  • L3运行时健康监控✓抽样会话内未观测到外部进程 / 越界写 / 外连(2 个事件)(前一级未通过,本项不计入等级)前一级未通过,不计入等级
评分口径与作者信息

从 100 分开始按规则扣减:fail −20 / major −10 / warn −5 / minor −2;star 数、下载量、LLM 输出都不参与评分

维护者
neystan
仓库
https://github.com/neystan/dsh-web-ui
许可
Apache-2.0
最后发布
2026-08-18
周下载
119
star
2

扫描状态:已扫描。能力是事实,不是缺陷; 周下载与 star 只作参考,不参与评分。

认证等级只回答四件事:包本身是否完整可解析(L0)、能不能与别的插件组合(L1)、隔离环境里装不装得上并起得来(L2)、抽样运行时有没有异常(L3)。依赖漏洞、仓库存活、下载量都不参与评级,只作为独立信号标注。可信 ≠ 无漏洞,上架 ≠ 推荐。

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

元数据

仓库最近提交2026-08-21
仓库创建2026-08-15

返回首页