浏览全部

其他 · v3.11.2

dsh

github.com/btspoony/mstar-harness

能力可执行外部程序以 shell 执行命令发起网络请求

晨星作为一等 dsh(DeepSeek Harness)宿主——一个 cordis 函数插件,在进程内挂载 mstar 引擎,实现引擎 HostAdapter(host: 'dsh'),守护 {HARNESS_DIR}/status.json 的写入(校验 + 建议;…

作者原文(英文)

Morning Star as a first-class dsh (DeepSeek Harness) host — a cordis function plugin that mounts the mstar engine in-process, implements the engine HostAdapter (host: 'dsh'), guards {HARNESS_DIR}/status.json writes (validate + advisory;…

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

dshdsh-plugin
认证 L1已扫描 ✓健康 A/90周下载 399
10 项能力
许可
MIT
发布
2026-09-19
维护者
btspoony
插件 ID
977

安装命令

dsh plugin --profile web add @mstar-harness/dsh@3.11.2

强装可用 · 需绕过门禁

当前 DSH 版本上 CLI 拒绝安装这个包。用 --accept-risk 绕过门禁之后,它能装上并挂载——限制来自版本策略,不是包坏了。要用它,得自己决定这个风险值不值得承担。

检测报告

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

能力清单

  • 可执行外部程序spawns-processes高关注3 处命中
    • dist/index.js:1142import { execFileSync } from "node:child_process";
    • dist/index.js:1153import { execFileSync as execFileSync2 } from "node:child_process";
    • dist/index.js:1158import { execFileSync as execFileSync3, spawn } from "node:child_process";
    • 看它调用哪些程序。调用本机已有的工具是常见做法。
  • 以 shell 执行命令shell-exec高关注1 处命中
    • dist/index.js:2976const cdup = execFileSync("git", ["rev-parse", "--show-cdup"], {
    • 看命令字符串是拼出来的还是写死的。拼接用户输入才是真正的风险。
  • 发起网络请求network需留意10 处命中
    • dist/client.js:277const request = this.fetch(sessionId, cwd, anchorTime).finally(() => {
    • dist/client.js:375this.fetch(sessionId, entry.cwd, entry.anchorTime).finally(() => {
    • dist/client.js:380async fetch(sessionId, cwd, anchorTime) {
    • dist/client.js:4720} else if (entry.fetch.status === "unavailable") {
    • 看请求发往哪些域名。发往作者自己的后端是常见做法。
  • 写入文件writes-files需留意3 处命中
    • dist/index.js:6147appendFileSync(file, `${JSON.stringify(event)}
    • dist/index.js:7167rmSync(tmp, { force: true });
    • dist/index.js:7282rmSync(tmp, { force: true });
    • 看写入位置。写自己的配置目录是正常的,写系统目录不是。
  • 动态执行代码dynamic-code需留意3 处命中
    • dist/index.js:486schema.callback = new Function("return " + schema.callback)();
    • …eferences/regression-fixation.md:35vm.runInNewContext(script, sandbox); // 被测路径
    • harness-skills/mstar-host/SKILL.md:26Load topic skills **on demand** per `mstar-roles` (do not read every `mstar-*` skill by default). Cursor routing-eval (`…
    • 看 eval / new Function 的入参来自哪里。常量字符串和用户输入是两回事。
  • 读取文件reads-files一般8 处命中
    • dist/index.js:1170if (!existsSync(filePath))
    • dist/index.js:1172const content = readFileSync(filePath, "utf8").trim();
    • dist/index.js:1186const pkg = JSON.parse(readFileSync(candidate, "utf8"));
    • dist/index.js:1199const pkg = JSON.parse(readFileSync(ownManifest, "utf8"));
    • 读文件是绝大多数插件的正常工作方式,本身不构成顾虑。
  • 读取环境变量reads-env一般7 处命中
    • dist/index.js:1955const branch = forms.createForm?.name ?? forms.workingBranch ?? forms.directOn?.branch ?? process.env.MSTAR_WORKING_BRAN…
    • dist/index.js:2951const explicit = opts.harnessDir ?? process.env.MSTAR_HARNESS_DIR;
    • dist/index.js:3089const raw = process.env.MSTAR_GIT_PROBE_TIMEOUT_MS;
    • dist/index.js:3551const controlRoot = opts.controlRoot ?? (process.env.MSTAR_CONTROL_ROOT || undefined);
    • 环境变量里常混有密钥。看它是否把整个 env 都读走。
  • 动态加载模块dynamic-import一般4 处命中
    • …ar-artifacts/templates/README.md:3Copy these into `{HARNESS_DIR}` when bootstrapping a project. Path symbols (`{HARNESS_DIR}`, `{PLAN_DIR}`, …) → **`mstar…
    • dist/client/panel/mstar-glyph.d.ts:22export declare function MstarGlyph({ size, className }: IconProps): import("react").JSX.Element;
    • …lient/panel/MstarPanelTitle.d.ts:13export declare function MstarPanelTitle({ useTabInfo }: MstarPanelTitleProps): import("react").JSX.Element;
    • dist/client/panel/panel-store.d.ts:25export declare function createPanelStore(): import("@deepseek-ai/dsh-client-store").EngineStoreHandle<PanelStoreState, {
    • 动态导入本身无害,但会让依赖关系难以静态审阅。
  • 使用 vm 模块做隔离uses-vm-module一般1 处命中
    • …eferences/regression-fixation.md:31import vm from "node:vm";
    • 用 node:vm 是在建立隔离,不是在突破它。本身不是顾虑,但值得知道这个插件会执行动态代码。
  • 文中出现远程脚本地址remote-url-reference一般1 处命中
    • …lls/mstar-host/references/omp.md:35omp resolves **internal URL schemes** natively (see <https://omp.sh/#urls>), so skills and shared content stay addressab…
    • 只是文本里出现了远程脚本地址,没有看到加载它的调用。多半是文档或注释;若确实可疑,搜一下这个地址在包里的其他出现位置。
逐条扫描明细
能力标识关注度命中次数
可执行外部程序spawns-processes高关注3
以 shell 执行命令shell-exec高关注1
发起网络请求network需留意10
写入文件writes-files需留意3
动态执行代码dynamic-code需留意3
读取文件reads-files一般8
读取环境变量reads-env一般7
动态加载模块dynamic-import一般4
使用 vm 模块做隔离uses-vm-module一般1
文中出现远程脚本地址remote-url-reference一般1

这份报告的口径

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

可信度

90 健康分 A 扣分项下方逐条附证据
  • -10声明与实物不符:peer-static-import-unsatisfiedmajor:{'@deepseek-ai/dsh-llm': '^0.1.5-rc.2', '@deepseek-ai/dsh-tools': '^0.1.5-rc.2', '@deepseek-ai/dsh-skill-filesystem': '^0.1.5-rc.2'}

认证等级 L1

  • L0静态结构与契约✓sha512-QUobJ6gRkM8tFc8F… 与本地 tarball 复算一致,补丁与入口齐备,另有 1 项声明不一致(计入健康扣分)
  • L1配置组合与依赖图✓跨包无 entry id 冲突,插入模块可解析,目录内 peer 满足
  • L2隔离沙箱冒烟—试装未通过(forced-ok)
  • L3运行时健康监控—运行时观测到异常:spawns
评分口径与作者信息

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

维护者
btspoony
仓库
https://github.com/btspoony/mstar-harness
许可
MIT
最后发布
2026-09-19
周下载
399
star
63

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

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

DSH peer 依赖63 个cordisdsh-agentdsh-agent-default-modeldsh-agent-presetsdsh-api-gatewaydsh-api-remotesdsh-api-session-controllerdsh-atomic-writedsh-attachmentdsh-branddsh-chunked-listdsh-client-connection等 63 个均为 @deepseek-ai/ 下的包
第三方依赖0 个(纯自包含)
bundle patch./bundle/cordis.patch.yml
依赖安全公告已查询全部依赖,没有匹配到已公开的安全公告(含 DSH 框架包在内的 @deepseek-ai/* 不作查询——那是运行时自己的问题,不是插件的。)

元数据

主页https://github.com/btspoony/mstar-harness#readme
仓库最近提交2026-10-13
仓库创建2026-03-06

返回首页