Introducing The Sweep: OX’s New Live Security Research Series
Register Now
Breaking: The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?
Read the Report
Are you exposed? Connect your apps in minutes.
Scan your apps free

dsh-meru-button

Latest version: v0.3.4

Overview

Last scanned
30 Nov 2026
Published
30 Nov 2026
npm package Publisher: merusu
5 Versions

Scan summary

dsh-meru-button was last scanned on 30 Nov 2026 at version 0.3.4. Risk score 0 of 100. No malicious behavior was detected.

  • Releases: 5 versions, all published on 30 Nov 2026.
  • Findings: No rules fired in version 0.3.4.

Versions

5 versions published
Versions and the rules that fired in each
VersionPublishedStatus
0.3.5 30 Nov 2026 No rules fired
0.3.4 30 Nov 2026 No rules fired
0.3.3 30 Nov 2026 No rules fired
0.3.2 30 Nov 2026 Not shown
0.3.0 30 Nov 2026 Not shown

No rules fired in 0.3.4

Findings

Findings for v0.3.4. The score is a capped sum of the weights of the rules that fired — not CVSS, not exploitability, and not a probability. It is not comparable across packages with different scan coverage.

The score describes 0.3.4; other versions have their own rules, not their own score.

README

The publisher’s own README, as collected from the registry.

dsh-meru-button

给 DSH 桌面版 Windows 加一个右上角「⟳」菜单,点开只有三个键:刷新、重启、更新并重启。

功能

  • 刷新:只重载当前页面,不动 Host 和应用进程。
  • 重启:结束桌面应用并用原可执行文件、原启动参数重新拉起,不碰任何包。
  • 更新并重启:先结束桌面应用 → 在应用完全退出后按白名单更新 npm 包 → 重新拉起,并确认新实例能回应 HTTP。
  • 白名单在数据文件里,不上界面:$DSH_HOME/dsh-meru-button/config.json,首次运行自动生成(把当前 profile 里所有 registry 依赖写进去),之后用户自己编辑。
  • 跳过非 registry 依赖:link: / file: / workspace: / npm: / git / http 依赖不更新、也不会被写进默认白名单。
  • 纯本地:HTTP 端点只监听本机回环地址,POST 要求同源;没有遥测,也不读写凭据。

为什么只在桌面版 Windows

插件 Host 是 Electron 主进程的子进程,不能自己调用 app.quit() / app.relaunch();更新又必须在 node_modules 没有被 Host 映射时做。因此由 Host 写 handoff 并启动 detached helper,helper 在 Windows 上用 taskkill /PID <主进程> /F(不带 /T,让 Host 有机会优雅落盘)、等待端口释放、执行 pnpm.cmd,再重放原启动参数(含 --user-data-dir)把同一个 exe 拉回来。

dsh web、macOS/Linux、以及可执行文件看起来是 node 的宿主都不会进入这条路径;包声明 os: ["win32"],非 Windows 宿主侧直接跳过注册。宿主无法确认自己是桌面版时一律判否——宁可按钮置灰,也不去杀一个拉不回来的进程。

结局怎么读

菜单底部只写一行:

  • 更新成功:「上次成功」;纯重启成功:「上次已重启」。
  • 更新失败但已还原旧版、旧版本正常起来:「上次未更新(已还原旧版,应用正常)」。这时应用是好的,不要按失败处理。
  • 应用没能起来:「上次失败(应用未能启动)」。

last-run.json 里 verify 为 unverified,表示重启后没拿到端口证据(最新 dsh-desktop-next*.log 与新主进程命令行都没读到监听地址),此时 ok 不变,只标记「没验证到」。

界面挂在哪

按钮注册进宿主的 shell.overlay 座位(ctx.slots.inject('shell.overlay', …),inject: ['slots']),不自己往 document.body 插容器。这个座位是 root 作用域:欢迎页(没有会话)也在,弹层跟着 shell 的主题和层级走;按钮本身用固定定位停在右上角(.muu-root,top:8px; right:168px,与参考实现 dsh-power-menu 一致)。

座位所在层是 pointer-events: none,所以 .muu-root 自己声明 pointer-events: auto——少这一条就是「按钮看得见、点不动」。

失败时你会看到什么

  • 能起来:菜单底部一行灰字,四种之一—— 上次成功 / 上次已重启 / 上次未更新(已还原旧版,应用正常) / 上次失败(应用未能启动)。
  • 起不来:应用窗口已经没了,所以提示不能放在应用里。helper 会在宿主之外弹一个原生模态框,写明原因、日志路径,并让你点确定后手动双击 DSH 图标重开;同时落一份 $DSH_HOME\dsh-meru-button\last-failure.txt 兜底(万一模态框没出来,比如没有 PowerShell 会话)。
  • helper 自身崩溃也走同一条通知。

白名单怎么改

打开 $DSH_HOME/dsh-meru-button/config.json:

{
  "packages": ["dsh-free-search", "dsh-meru-preset"]
}
  • 只写包名,不写版本;版本由 pnpm update <pkg> --latest 决定。
  • 想临时不更新某个包,把名字删掉即可;清空数组等于「更新并重启」退化成「重启」。
  • 想看清有哪些包可选:GET /api/dsh-meru-button/state 的 candidates(当前 profile 里能更新到 registry 的依赖)与 skipped(被跳过的 link:/file: 等)。
  • 也提供了 POST /api/dsh-meru-button/config({"packages": [...]})供脚本写同一份文件;界面不再调用它。

口径(lib/plan.js):

  • 只动 registry spec:^1.2.3、~1.2.3、1.2.3、latest、* 等。
  • 允许跨大版本:精确锁定的版本也会被提升。
  • 一律跳过并绝不改写:link:、file:、workspace:、npm: 别名、git / http spec、本地路径。这些通常是用户自己的构建产物,重写会删掉本地改动。

状态文件

全部在 $DSH_HOME/dsh-meru-button/:

文件 作用
config.json 白名单 { "packages": string[] },首次运行自动生成
update.log Host 侧事件与结果摘要
helper.log detached helper 的过程日志
last-run.json 上次运行结果 { at, ok, rolledBack, verify, mode, packages, detail }
handoff-*.json 一次退出重启的交接快照

HTTP 端点

BASE = /api/dsh-meru-button,全部 JSON,全部 loopback + 同源校验。

方法 路径 返回
GET /health {ok, desktop, pending, lastRun}
GET /plan {ok, desktop, target, profileDir, helper, logPath, reasons[], pending}
GET /state {ok, desktop, profileDir, configPath, logPath, pending, lastRun, candidates[], skipped[], whitelist[], unknown[], notRegistry[]}
POST /config 入 {packages: string[]} → {ok, packages, ignored[]}
POST /restart {ok} 或 {ok:false,error},不更新任何包
POST /update-restart {ok, packages, ignored[]} 或 {ok:false,error}

失败回滚

  • 更新前备份 package.json、pnpm-lock.yaml、pnpm-workspace.yaml(存在才备份)到同目录的 .bak-meru-button-<时间戳>。
  • pnpm update 非零退出:恢复备份并跑一次 pnpm install,再拉起旧版本。
  • 新版本起来了但 HTTP 不回应:结束新进程、恢复备份并重装,然后重试一次旧版本;仍起不来则写 last-run.json 的失败记录并停在旧版本。
  • 纯「重启」不做任何备份/回滚,也不调用 pnpm。
  • 日志始终保留失败细节;不会静默把半更新状态留给用户。

安装

  1. 由维护者把本包加入 desktop profile 的 bundle(包内 cordis.patch.yml 会把 dsh-meru-button 插入组合配置)。不要在正在使用的活 profile 上做试验。
  2. 重启 DSH Desktop,确认右上角出现「⟳」。
  3. 自检:/health 的 desktop 为 true;首次运行后 config.json 已生成。desktop:false 时「重启」「更新并重启」会置灰(title 说明原因)。

卸载

  1. 在插件管理器里禁用/移除 dsh-meru-button,重启 DSH Desktop。
  2. 需要清状态时,逐个删除 $DSH_HOME/dsh-meru-button/ 下的文件;不要递归删除整个目录。

测试

见 test/README.md。测试只用 node: 内置模块,不安装包、不启动 Host、不写 C:\Users\DELL\.dsh。

OX Radar and Response Center

Find threats in your stack.

OX Radar can check high-priority threats, like critical package CVEs, against your context.

Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.

Where it’s listed

The probe returned only these fields for this server — auth requirement, protocol and tool list weren’t observed, so they’re not shown (never guessed).

  • npm dsh-meru-button

References

The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.

Powered by Read the latest findings

Scan your whole stack

Group 1261154050 1
Group 1261154050
 

From OX Research Newsroom

Plug and Pray: Your AI Agents Are Taking Orders From Strangers
Research

Plug and Pray: Your AI Agents Are Taking Orders From Strangers

Copy of Template Design OX Blog (2)
Research

NGINX2Root: Five Critical NGINX Flaws Expose Web Servers to Remote Code Execution

PolinRider Returns
Research

PolinRider Returns: Hijacked npm Packages Use Ethereum Blockchain to Conceal Malware Infrastructure

Frame 2085668439 (1)
Group 1261154229