浏览全部

其他 · v0.1.5

cqai-dsh-plugin-track

github.com/g-dxw/dsh-plugin-track

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

e宝工坊中的轨迹与旅程素材工作台。 导入路线,查看地图和山体,整理沿途照片,再制作可编辑的路线图与地图镜头。

作者原文(英文)

轨迹:二维与 3D 沙盘、卫星底图、分析编辑、SVG 标注和 AI 动画美化

简介取自插件自己的 README 原文。

认证 未评级已扫描 ✓健康 S/100周下载 122
10 项能力
许可
AGPL-3.0-only
发布
2026-10-10
维护者
gdxw

安装命令

dsh plugin --profile web add cqai-dsh-plugin-track@0.1.5

声明可安装

这个包的 tarball 里确实有 dsh.bundle.patch,补丁文件存在且可解析。但「有补丁」是静态检查的结果,不是装过——它能不能在这台机器上装成,还没有验证。

检测报告

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

能力清单

  • 可执行外部程序spawns-processes高关注8 处命中
    • lib/index.js:5import { spawn, spawnSync } from "node:child_process";
    • …pts/generate-source-snapshot.mjs:1import { execFileSync } from 'node:child_process';
    • …s/release-package-utils.test.mjs:3import { spawnSync } from 'node:child_process'
    • tests/openmontage-backend.test.ts:2import {spawnSync} from 'node:child_process'
    • 看它调用哪些程序。调用本机已有的工具是常见做法。
  • 以 shell 执行命令shell-exec高关注2 处命中
    • …pts/generate-source-snapshot.mjs:8const git = (...args) => execFileSync('git', args, { cwd: root, encoding: 'utf8' }).trim();
    • …pts/generate-source-snapshot.mjs:28const packOutput = execFileSync(process.platform === 'win32' ? 'npm.cmd' : 'npm',
    • 看命令字符串是拼出来的还是写死的。拼接用户输入才是真正的风险。
  • 写入文件writes-files需留意285 处命中
    • lib/index.js:146rmSync(dir, {
    • lib/index.js:194mkdirSync(root, { recursive: true });
    • lib/index.js:200mkdirSync(dir, { recursive: true });
    • lib/index.js:212writeFileSync(join(dir, "track.json"), JSON.stringify({
    • 看写入位置。写自己的配置目录是正常的,写系统目录不是。
  • 发起网络请求network需留意134 处命中
    • lib/index.js:7945const response = await fetch(origin + path, {
    • lib/index.js:8368const response = await fetch(url + "/api/track-owner", { signal: AbortSignal.timeout(1e3) }), value = await response.jso…
    • lib/index.js:8460const response = await fetch(`${base}/api/project/${encodeURIComponent(projectId)}/state`, { signal: AbortSignal.timeout…
    • lib/index.js:8795const upstream = await fetch(`${base}/api/project/${encodeURIComponent(projectId)}/events`, { signal: controller.signal …
    • 看请求发往哪些域名。发往作者自己的后端是常见做法。
  • 运行时改写自身配置modifies-own-manifest需留意1 处命中
    • …pts/generate-source-snapshot.mjs:61writeFileSync(resolve(root, 'package.json'), JSON.stringify(manifest, null, 2) + '\n');
    • 运行时改写自身配置会让下次启动的行为和你看过的源码不一致。
  • 读取文件reads-files一般553 处命中
    • lib/index.js:104if (!existsSync(file)) return null;
    • lib/index.js:105const parsed = JSON.parse(readFileSync(file, "utf8"));
    • lib/index.js:119if (!existsSync(root)) return [];
    • lib/index.js:121for (const id of readdirSync(root)) {
    • 读文件是绝大多数插件的正常工作方式,本身不构成顾虑。
  • 读取环境变量reads-env一般260 处命中
    • lib/index.js:80function tracksRoot(env = process.env) {
    • lib/index.js:84function trackDir(id, env = process.env) {
    • lib/index.js:117function listTracks(env = process.env) {
    • lib/index.js:133function readTrack(id, env = process.env) {
    • 环境变量里常混有密钥。看它是否把整个 env 都读走。
  • 动态加载模块dynamic-import一般59 处命中
    • scripts/verify-client-bundle.mjs:12throw new Error(`Track client bundle contains unsupported require(): ${unsupported.join(', ')}`)
    • scripts/verify-client-bundle.mjs:16throw new Error('Track client bundle has no external require() calls; check the verifier against the generated format')
    • tests/geomotion-editor-ui.test.ts:37vi.mock('../src/client/util.ts', async original => ({...await original<typeof import('../src/client/util.ts')>(), api: v…
    • …eomotion-project-storage.test.ts:15const fs = await original<typeof import('node:fs')>()
    • 动态导入本身无害,但会让依赖关系难以静态审阅。
  • 文中出现远程脚本地址remote-url-reference一般16 处命中
    • licenses/manifest.json:29"repositoryUrl": "https://github.com/mrdoob/three.js",
    • licenses/manifest.json:44"repositoryUrl": "https://github.com/chartjs/Chart.js",
    • licenses/manifest.json:45"npmVersionUrl": "https://registry.npmjs.org/chart.js/4.5.1",
    • licenses/manifest.json:46"sourceTarballUrl": "https://registry.npmjs.org/chart.js/-/chart.js-4.5.1.tgz",
    • 只是文本里出现了远程脚本地址,没有看到加载它的调用。多半是文档或注释;若确实可疑,搜一下这个地址在包里的其他出现位置。
  • 接触凭据或密钥credentials一般14 处命中
    • lib/index.js:569return ["http:", "https:"].includes(url.protocol) && !url.username && !url.password ? url.href : null;
    • lib/index.js:1861if (url.username || url.password) throw new PlacemarkPhotoError("图片链接不能包含用户名或密码");
    • lib/index.js:6738if (!["http:", "https:"].includes(url.protocol) || url.username || url.password) throw new Error();
    • lib/index.js:7934if (origin.protocol !== "http:" || !["127.0.0.1", "[::1]"].includes(origin.hostname) || origin.username || origin.passwo…
    • 看它读取哪些凭据、发往哪里。用于登录自己的服务是正常的。
逐条扫描明细
能力标识关注度命中次数
可执行外部程序spawns-processes高关注8
以 shell 执行命令shell-exec高关注2
写入文件writes-files需留意285
发起网络请求network需留意134
运行时改写自身配置modifies-own-manifest需留意1
读取文件reads-files一般553
读取环境变量reads-env一般260
动态加载模块dynamic-import一般59
文中出现远程脚本地址remote-url-reference一般16
接触凭据或密钥credentials一般14

这份报告的口径

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

可信度

100 健康分 S 扣分项下方逐条附证据
  • 0没有可扣分的项

认证等级 未评级

  • L0静态结构与契约—有 npm 哈希,但本站没有本地包可比对
  • L1配置组合与依赖图—还没有组合检查记录
  • L2隔离沙箱冒烟—尚未试装
  • L3运行时健康监控—未抽样(本层是抽样检测:没有会话不等于干净)
评分口径与作者信息

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

维护者
gdxw
仓库
https://github.com/g-dxw/dsh-plugin-track
许可
AGPL-3.0-only
最后发布
2026-10-10
周下载
122
star
0

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

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

DSH peer 依赖7 个cordisdsh-client-ui-layoutdsh-client-ui-rendererdsh-client-ui-sidebardsh-client-ui-slotsdsh-home-pathsdsh-host-webserver均为 @deepseek-ai/ 下的包
Node 要求^22.19.0 || >=24.0.0
第三方依赖9 个
bundle patch./cordis.patch.yml
依赖安全公告4 条,见下方

这个插件声明的依赖中,有 4 条已公开的安全公告 (最高等级:严重):

等级依赖包编号摘要
严重maplibre-glCVE-2026-85061MapLibre GL JS: XSS Sanitizer Bypass in DOM.sanitize() via Live NamedNodeMap Removal Skip
修复版本:6.4.1 详情
未分级sharpGHSA-f88m-g3jw-g9cjsharp inherited vulnerabilities in libvips: CVE-2026-33327, CVE-2026-33328, CVE-2026-35590, CVE-2026-35591
修复版本:0.35.0 详情
未分级sharpGHSA-rgj7-g3m4-5g8csharp: Vulnerabilities in libheif: GHSA-g89c-p67h-r497 and GHSA-2jg2-4ch7-h545
修复版本:0.35.4 详情
未分级sharpGHSA-wq5f-xc86-pv6wsharp : Vulnerability in librsvg dependency CVE-2026-96889
修复版本:0.35.5 详情

查询的是依赖声明范围的下界(如 ^4.2.0 查 4.2.0), 不是实际安装到的版本。真正装的时候如果解析到了修复版本,就不受影响—— 所以这是「可能受影响」,不是「这个插件有漏洞」。数据来自 OSV.dev。

元数据

主页https://github.com/g-dxw/dsh-plugin-track#readme
仓库最近提交2026-10-15
仓库创建2026-09-30

返回首页