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-profile-config-sync

Latest version: v0.7.0

Overview

Last scanned
28 Nov 2026
Published
28 Nov 2026
npm package Publisher: huanyu-a
11 Versions
1.6K Downloads

Scan summary

dsh-profile-config-sync was last scanned on 28 Nov 2026 at version 0.7.0. Risk score 0 of 100. No malicious behavior was detected.

  • Releases: 11 versions; the latest 5 were published within 2 days (27 and 28 Nov 2026).
  • Findings: No rules fired in version 0.7.0.
  • Downloads: 1,619 downloads.

Versions

11 versions published
Versions and the rules that fired in each
VersionPublishedStatus
0.7.0 LATEST 28 Nov 2026 No rules fired
0.6.47 27 Nov 2026 No rules fired
0.6.46 27 Nov 2026 No rules fired
0.6.45 27 Nov 2026 Not shown
0.6.44 27 Nov 2026 Not shown

No rules fired in 0.7.0

Findings

Findings for v0.7.0. 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.7.0; other versions have their own rules, not their own score.

README

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

配置备份与同步

dsh-profile-config-sync —— DeepSeek Harness 客户端的多端配置备份 / 同步 / 还原插件。

npm release license platform groups tests

中文 | English

DSH 的配置散在 ~/.dsh 的十几处:profile、全局提示、Skills、Agent 预设、插件设置、插件数据、工作区、会话记录。 这个插件把它们按 12 组内容抓成一份 Git 仓库快照,推到你自己的 Git 远端或 WebDAV 云端;换机器、重装、误改,一条命令拉回来铺好。 同步动作在客户端退出后执行,不会搬走写了一半的配置。

来源:基于 QcWyGm/dsh-config-sync-plugin(MIT)重写与扩展,见文末「来源与版权」。

panel


主要功能

  • 12 组内容抓取:profile、全局提示词、Skills、Agent 预设、技能市场台账、插件设置与工作流(14 个源)、记忆数据、本地源码插件、插件数据槽、额外路径、工作区、会话记录(含附件与 session_projcache)。逐组 / 逐项可关,抓不到的会在窗口末尾与面板常驻提示里点名。
  • 两种传输:Git 远端(SSH / HTTPS,GitHub / Gitee / GitLab / 自建 Gitea、Forgejo)与 WebDAV,共用同一份仓库格式,随时可换。
  • 四个动作 + 一键脚本:推送、拉取、还原(回滚到某个快照或 git 提交)、初始化推送(空仓库起步),各生成可双击的 .cmd(Windows)/ .sh(macOS、Linux)。
  • 退出后执行:不在客户端运行中搬文件;可排队到下次启动;自动同步能自己把客户端拉起来。
  • 跨端不分叉:Windows 走 PowerShell,macOS / Linux 走 Node 引擎,共用一份仓库,机器身份记在 machines/。
  • 覆盖前留底:将被覆盖或删除的本机文件先备份到 ~/.dsh/backups/,选错档也能再回滚一层。
  • 面板体检:本机 / 云端双徽标(云端每 2 分钟复查)、版本契约、bundle、依赖、备份快照、上次同步、待办跳转。
  • 安全边界:浏览器剖面与凭据库在抓取、上传、引擎三处独立硬拦;单文件上限三档(>100 MB 抓取即跳过、≥95 MB 提交前剔除、50–95 MB 只警告);冲突两侧留副本;路径遍历防护。
  • 待推送口径跟执行体一致:Windows 按 12 组统计,macOS / Linux 只统计引擎真会同步的 4 组,不虚报。
  • 自更新:只查 npm registry(不看 GitHub),面板内检查、下载、安装。

四个关键词:配置(12 组按需抓取)· 备份(仓库即快照,Git 有历史)· 同步(一台推、一台拉)· 还原(铺回本机,可回滚)。

一句话流程:本机 → 抓取 → 仓库 → 推送 → Git 远端 / WebDAV → 拉取 → 另一台机器,每一步都能退回上一档。


目录

安装 从零开始 面板 同步内容
脚本 还原备份 插件数据 自动同步
仓库 / 云端 WebDAV 问题反馈 工作区与会话

历史版本细节 · 完整实测记录 · 字段与接口参考


安装

插件包名 dsh-profile-config-sync(npm 上的 dsh-config-sync 是上游同名项目,不是这个包)。

方式 命令 / 入口
npm npm i dsh-profile-config-sync(已发布到与 GitHub Release 相同的版本,latest 标签指的就是它)
插件市场 客户端「插件市场 → 发现」搜「配置备份与同步」(market-index.json 登记的 source.type 是 npm,装的就是 registry 上的在线版)
离线 tgz pnpm add ./dsh-profile-config-sync-0.6.49.tgz(内网机器用这个)

发布状态:v0.6.49(macOS 全面可用 + 平台分区)已在本机验证并打 tag;npm 上的同名包同步发布(npm i dsh-profile-config-sync)。多端测试安装:pnpm add ./dsh-profile-config-sync-0.6.49.tgz 或从 npm 安装。

要正式发布时(需要有权限的账号,我不会擅自 push):

gh release create v<版本> dsh-profile-config-sync-<版本>.tgz \
  --repo huanyu-a/dsh-profile-config-sync --title "v<版本>" --notes-file <发布说明.md>
# tag 与包名必须是同一个版本号,别像旧文档那样写成 v0.6.39 配 0.6.44 的包
git tag -a v<版本> -m "v<版本>" && git push origin v<版本>
# 发布后把仓库根的 version.json 更新到新版本并推上去:它随 npm 包一起发布(files 里有它),面板读的是包内那份
# (version.json 不在 npm 包里,files 字段没有它)

装好后插件目录是 <客户端根>\dsh-profile-config-sync-<ver>,appRoot 留空时由插件位置反推客户端根。

面板路由的准入

13 条 /config-sync/* 路由在进入处理器之前,先由宿主 Connection 判定: ctx.connection.requestRejection(request) —— DSH 官方的 Host/Origin 围栏加浏览器会话鉴权, 和 GUI 自己的 /api 通道是同一套。宿主没有 connection 服务时(非 Web 载体),才退回插件自己的 originAllowed(只认本机 Host、拒绝跨站与 Sec-Fetch-Site: cross-site)。

为什么要有这一层:webServer.register 只是裸 HTTP 载体,DSH 文档写得很直白—— 「The carrier owns no authentication or Origin policy」,路由鉴权是组合层的责任。 0.6.41 及之前只靠插件自己写的 originAllowed:缺 Origin 头的请求(本机任意进程、curl) 会被当成可信来源放行,实测裸 curl http://127.0.0.1:<端口>/config-sync/status 返回 200(宿主端口每次启动会变,取 DSH_WEB_URL), 能读到仓库路径、配置摘要、待同步清单,也能触发推送与还原。 现在同一请求得到 401,拒绝响应体只有 { ok: false, error: "unauthorized" | "forbidden" },不含任何业务字段。

因为依赖 requestRejection / connection.fetch 这组准入接口,package.json 声明了 engines.dsh: ">=0.2.2-rc.5"。 这个下限是量出来的,不是拍的:准入接口在 0.2.2-rc.5 的源码里已经在(dsh-client-connection/src/rpc-host.ts 的 requestRejection / admit), 而 DSH 在安装与 profile 启动时都强制检查 engines.dsh(拿一个声明 >=99.0.0 的假插件在临时 profile 上就能复现 incompatible-version 拒绝), 所以写 >=0.2.3 会把正跑着 0.2.2-rc.5 的机器直接挡在门外。等运行时升到 0.2.3+ 之后,这个下限可以一行收紧。

自检里有专门的一套(route-admission,16 条断言):13 条路由在 403 / 401 / 放行 / 无 connection 四种情形下逐一验证, 并做结构断言「每条 webServer.register 的 handler 都套了准入」,防止以后新增路由时漏掉这一层。

已知限制

  • 非 Windows 没有互斥:Windows 的 capture / apply 走 Lock-SyncRun(命名 Mutex),同一 ~/.dsh 并发时后来者以退出码 3 结束;macOS / Linux 的引擎没有这层锁,两个动作同时跑仍可能撞文件。
  • 非 Windows 引擎只覆盖 4 组:profile / 全局提示 / Skills / 预设;会话记录、插件数据、额外路径要 Windows 版。
  • 浏览器剖面永不入库:browser-profiles / Login Data / Cookies 等路径段三处硬拦(见插件数据)。

从零开始:让第二台机器跑起来

源机器推一次、目标机器拉一次(隔离环境两台假机 + 本地裸库实测走通):

源机器 A ──────────────────────► 远端(Gitee / GitHub / 自建) ──────► 目标机器 B
1 装插件(tgz 或市场)                                              1 装「同版本」客户端并启动一次
2 面板填 本机仓库 + 云端地址                                        2 装插件,填同一对本机仓库 + 云端地址
3 点「初始化推送」                                                 3 点「拉取」(会用仓库版本覆盖本机配置)

前置条件(缺一项就卡住):

项 要求 不满足时
客户端版本 两台同版本(profile\host-contract.json 校验) 拉取报 版本不一致,加 -AllowVersionDrift 才能强铺
目标机器 .dsh 至少启动过一次客户端 [X] 目标 profile 不存在,拉取直接退出
内置运行时 <AppRoot>\node.exe 或客户端本体 本机没有可用的内置运行时 → 会话 cwd 改不了,会话列表是空的
git 两端都装 找不到 git.exe

命令行等价(面板点按钮就行,这里是同一件事):

pwsh -File runtime\sync.ps1 push   -RepoRoot <仓库目录> -DshHome <~\.dsh> -AppRoot <客户端根> -SkipInstall -Force
pwsh -File runtime\sync.ps1 pull   -RepoRoot <仓库目录> -DshHome <~\.dsh> -AppRoot <客户端根> -SkipInstall -Force

-SkipInstall 跳过 pnpm install(离线场景必须);-Force 跳过「检测到 DSH 在运行」的保护(真机请先退出客户端,别用)。

从零验证最容易踩的 5 个点、首次推送/拉取的原始输出,见 docs/REFERENCE.md。

入口挂在哪

入口 slot 说明
左侧栏一行 sidebar.panellist(id: config-sync) 标题「配置备份与同步」(英文 Config Backup & Sync)
点开的面板 main(key: config-sync) 与侧栏行必须在嵌套 inject 里成对 register(细节见 REFERENCE)
设置摘要行 settings.general.item 「设置 → 通用」里同名摘要行:一行四态 chip + 展开(仓库、远端、私钥)

包里有什么(index.js / client.js / runtime/ / tools/ 等)见 REFERENCE。

面板显示什么

  • 标题行:配置备份与同步 本机 [一致/待推送/待拉取/有问题] 云端 [一致/不一致/待拉取]。云端全自动(挂载查一次、之后每 2 分钟复查)。
  • 元信息行:app 版本 / Electron 版本 · 分支 @ 短 HEAD。
  • 指标条:本机 / 契约、bundle、依赖、备份快照、上次同步((+N) = 之后又写入几个文件);有事才出现「待办」。
  • 分区:概览 → 本机路径(默认整块不显示,点标题行按钮展开,有告警时变橙带数字)→ 同步冲突(真有冲突才出现)→ 同步目标 → 自动化与插件更新 → 退出后执行 → 还原备份 → 同步内容 → 问题反馈。
  • 「待推送」不只看 git:git status 干净时新会话可能还没 capture。status 按 mtime 比对 capture 真正会抓的 12 组,晚于上次同步的计入;取消勾选的组不计入。上限 20000 文件 / 1.5 秒,便宜的配置类先扫、贵的后扫。
  • 「待拉取」= 本机仓库还是空目录(不报异常,橙色徽标)。上次自动同步的结果若在 15 分钟内,启动时会弹一条 5 秒浮层,同一份结果只弹一次。
  • 统一交互:所有卡片先只读,点「修改」才解锁,改完「保存」生效。没配过的卡强制停在编辑态。

本机仓库 / 云端仓库

  • 仓库判据:目录里同时有 apply.ps1 与 profile\package.json(再有 sync.ps1 才算能推拉)。
  • 优先级:本机设置文件 → 插件配置 repoPath → DSH_CONFIG_REPO → 常见位置探测;配置里填的空目录同样算有效答案。
  • 四态 repo.phase:ok 真仓库、empty 空目录待首次拉取、missing 目录不存在、unusable 有别的文件却不像仓库;pushAllowed / pullAllowed 按它算。
  • 空目录 + 云端有内容 → 只允许拉取:推送置灰,prepare(push) 与 auto(push-now) 一律 400。拉取走 git init → 补 origin → fetch → checkout -B <分支>(不用 clone,目录里可能已有 同步-*.cmd)。
  • 两边都空 → 只允许初始化推送:写骨架 + capture + 提交 + push -u origin main。
  • 云端有没有东西用 git ls-remote --heads + 临时 bare fetch --depth 1 --filter=blob:none + ls-tree -r 数文件数(15 秒超时);探不到(离线/认证失败)就只允许拉取,remoteFiles===0 一律算两边都空,用 --force-with-lease 覆盖那个空分支。
  • 没配过 = 强制设置:卡片停在编辑态、不给「取消」,prepare 也 400(远端缺失时「还原」不受影响)。
  • 设置落在 ~\.dsh\dsh-config-sync.json,跟本机走、不进仓库;SSH 私钥只存路径,可留空交给 .ssh\config。

支持的云端平台

不挑平台:远端只校验写法,fetch / push / pull / ls-remote 全交给 git。Gitee、GitHub、GitLab、自建 Gitea/Forgejo 走同一条路。

项 说明
地址写法 git@host:owner/repo.git、ssh://git@host:port/owner/repo.git、https://host/owner/repo.git
默认分支 先试 main,没有就取远端第一个分支(老仓库 master 也行)
认证 SSH 填私钥路径;HTTPS 用 Git 凭据管理器,插件不存密码
单文件上限 三档:源头 >100 MB 抓取时跳过、≥95 MB 提交前剔除、50–95 MB 只警告

私有库:优先 SSH 地址。插件自身更新只查 npm,与本机配置的 Git 远端无关,所以换成私有库也不影响自更新(也不用再为它配令牌)。

WebDAV:第三方服务连不上时

WebDAV 与 git 共用同一份仓库格式,只换传输层(不依赖 git、不需要远端仓库)。面板「云端仓库与同步方式」卡里填地址、账号、密码与远端目录即可。

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-profile-config-sync

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

Vulnerability Insights

OpenSSH Password Authentication Bypass on Alpine Linux (*sshole) – CVE-2026-123158

Microsoft's Official agent framework Hijacked
AI & VibeSec

BREAKING: Hijacked Releases of Microsoft’s Official agent-framework Steals Azure and CI Credentials

Cry2Wolf: How to Tell a Real Bug from a Nothingburger
AI & VibeSec

Cry2Wolf: Not Every Branded Bug Deserves a Fire Drill

Frame 2085668439 (1)
Group 1261154229