浏览全部

其他 · v0.3.2

tydora

github.com/zuorn/tydora

能力以 shell 执行命令可执行外部程序写入文件

(无描述)

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

仅 GitHub
认证 L1已扫描 ✓健康 C/71星 —
12 项能力
许可
未声明

安装命令

dsh plugin --profile web add git+https://github.com/zuorn/tydora

实测:这条命令在隔离环境里没装上(构建超时)。安装前先看这个仓库的构建要求。

检测报告

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

能力清单

  • 以 shell 执行命令shell-exec高关注5 处命中
    • scripts/deploy-edgeone.mjs:43const build = spawnSync("npm", ["run", "docs:build"], { cwd: root, stdio: "inherit", shell: true });
    • scripts/deploy-edgeone.mjs:50const deploy = spawnSync("edgeone", deployArgs, { cwd: root, stdio: "inherit", shell: true });
    • scripts/replace-icon.js:12execSync(`npx tauri icon "${sourcePath}" --output "${iconsDir}"`, {
    • scripts/run-tauri.mjs:43const result = spawnSync("powershell", psArgs, { shell: true, stdio: "inherit" });
    • 看命令字符串是拼出来的还是写死的。拼接用户输入才是真正的风险。
  • 可执行外部程序spawns-processes高关注3 处命中
    • scripts/build-docs.mjs:8import { spawnSync } from "node:child_process";
    • scripts/deploy-edgeone.mjs:17import { spawnSync } from "node:child_process";
    • …-publish/tools/cli/run-build.mjs:1import { spawnSync } from 'node:child_process';
    • 看它调用哪些程序。调用本机已有的工具是常见做法。
  • 写入文件writes-files需留意47 处命中
    • app/tydora-web/src/export/index.ts:157await writeFile(filePath, content);
    • …b/src/export/xiaohongshu/save.ts:36await writeFile(`${dir}/${name}`, bytes);
    • …b/src/export/xiaohongshu/save.ts:49await writeFile(filePath, dataUrlToUint8(card.pngDataUrl));
    • …web/src/services/ImageManager.ts:190await mkdir(dirPath, { recursive: true });
    • 看写入位置。写自己的配置目录是正常的,写系统目录不是。
  • 发起网络请求network需留意3 处命中
    • app/tydora-web/src/analytics.ts:183const response = await fetch(UMAMI_ENDPOINT, {
    • app/tydora-web/src/export/dom.ts:174const response = await fetch(src);
    • …c/app/content/content.service.ts:56const res = await fetch(url);
    • 看请求发往哪些域名。发往作者自己的后端是常见做法。
  • 启动伪终端spawns-pty需留意3 处命中
    • scripts/run-tauri.mjs:43const result = spawnSync("powershell", psArgs, { shell: true, stdio: "inherit" });
    • …og/Publish-to-Microsoft-Store.md:174spawnSync('pwsh', ['-File', 'scripts/build-msix.ps1', ...args], { stdio: 'inherit' });
    • website/docs_zh/09-博客/上架微软商店.md:168spawnSync('pwsh', ['-File', 'scripts/build-msix.ps1', ...args], { stdio: 'inherit' });
    • 伪终端等于给了一个完整 shell。确认这是插件的核心功能。
  • 动态执行代码dynamic-code需留意1 处命中
    • …src/app/search/search-overlay.ts:322this.pagefind = new Function('u', 'return import(u)')(
    • 看 eval / new Function 的入参来自哪里。常量字符串和用户输入是两回事。
  • 安装时执行脚本install-scripts需留意1 处命中
    • 安装脚本:postinstall
  • 读取文件reads-files一般69 处命中
    • app/tydora-web/src/export/dom.ts:96const data = await readFile(path);
    • …eb/src/services/imageFallback.ts:28const data = await readFile(absPath);
    • …c/services/vault-file-scanner.ts:52entries = await readDir(dir);
    • …-web/src/tags/TagIndexService.ts:96const entries = await readDir(dir);
    • 读文件是绝大多数插件的正常工作方式,本身不构成顾虑。
  • 动态加载模块dynamic-import一般18 处命中
    • …ora-desktop/vendor/wry/README.md:197pkgs = import (fetchTarball("channel:nixpkgs-unstable")) { };
    • …ra-web/src/Editor/link-source.ts:25doc: import("prosemirror-model").Node,
    • app/tydora-web/src/boot-timing.ts:85const mod = await import("@tauri-apps/api/event");
    • app/tydora-web/src/export/index.ts:76const { buildHtmlDoc, buildWechatHtml, exportPdfBytes, renderToPng } = await import("./exporters");
    • 动态导入本身无害,但会让依赖关系难以静态审阅。
  • 读取环境变量reads-env一般17 处命中
    • scripts/build-docs.mjs:15const baseHref = process.env.BASE_HREF;
    • scripts/copy-landing.mjs:16const BASE_HREF = process.env.BASE_HREF || "/Tydora/";
    • scripts/deploy-edgeone.mjs:31const token = readArg("token") || process.env.EDGEONE_API_TOKEN;
    • scripts/deploy-edgeone.mjs:41process.env.BASE_HREF = "/";
    • 环境变量里常混有密钥。看它是否把整个 env 都读走。
  • 文中出现远程脚本地址remote-url-reference一般11 处命中
    • …rkdown-publish/package-lock.json:5016"resolved": "https://registry.npmjs.org/decimal.js/-/decimal.js-10.6.0.tgz",
    • …rkdown-publish/package-lock.json:5772"resolved": "https://registry.npmjs.org/highlight.js/-/highlight.js-11.11.1.tgz",
    • …rkdown-publish/package-lock.json:5986"resolved": "https://registry.npmjs.org/ipaddr.js/-/ipaddr.js-1.9.1.tgz",
    • …rkdown-publish/package-lock.json:7606"resolved": "https://registry.npmjs.org/punycode.js/-/punycode.js-2.3.1.tgz",
    • 只是文本里出现了远程脚本地址,没有看到加载它的调用。多半是文档或注释;若确实可疑,搜一下这个地址在包里的其他出现位置。
  • 接触凭据或密钥credentials一般1 处命中
    • scripts/deploy-edgeone.mjs:31const token = readArg("token") || process.env.EDGEONE_API_TOKEN;
    • 看它读取哪些凭据、发往哪里。用于登录自己的服务是正常的。
逐条扫描明细
能力标识关注度命中次数
以 shell 执行命令shell-exec高关注5
可执行外部程序spawns-processes高关注3
写入文件writes-files需留意47
发起网络请求network需留意3
启动伪终端spawns-pty需留意3
动态执行代码dynamic-code需留意1
安装时执行脚本install-scripts需留意1
读取文件reads-files一般69
动态加载模块dynamic-import一般18
读取环境变量reads-env一般17
文中出现远程脚本地址remote-url-reference一般11
接触凭据或密钥credentials一般1

这份报告的口径

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

可信度

这个插件只在 GitHub 上发布,没有走过 npm 的分发链路。下面的梯子按 GitHub 通道的证据计算:补丁审计、钉在 commit 上的源码快照、隔离试装;L2 的「宿主启动」这一层还没有对 git 通道跑过,所以等级停在 L1。

71 健康分 C 扣分项下方逐条附证据
  • -20隔离环境装不上fail:gin command failed; diagnostics: C:\Users\A01\AppData\Local\Temp\dsh-l2-home-w1\profiles\l2probe\.plugin-manager\logs\operation-97UT6w\pnpm.log dsh: git-hosted
  • -5没有声明许可warn
  • -2没有描述minor
  • -2没有 READMEminor

认证等级 L1

  • L0静态结构与契约✓源码快照钉在 commit 4af1de4d,补丁与入口齐备
  • L1配置组合与依赖图✓跨包无 entry id 冲突,插入模块可解析,目录内 peer 满足
  • L2隔离沙箱冒烟—试装未通过(install-failed)
  • L3运行时健康监控—未抽样(本层是抽样检测:没有会话不等于干净)
评分口径与作者信息

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

维护者
—
仓库
https://github.com/zuorn/tydora
许可
未声明
最后发布
—
周下载
—
star
—

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

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

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

返回首页