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

@xi4z/dsh-utils

Latest version: v0.18.1

Overview

Last scanned
29 Nov 2026
Published
29 Nov 2026
npm package Publisher: xi4z
0 Stars
0 Forks
19 Versions
2.9K Downloads
JavaScript Repo language

Scan summary

@xi4z/dsh-utils was last scanned on 29 Nov 2026 at version 0.18.1. Risk score 0 of 100. No malicious behavior was detected.

  • Releases: 19 versions; the latest 5 were published within 4 days (26–29 Nov 2026).
  • Findings: No rules fired in version 0.18.1.
  • Downloads: 2,915 downloads.

Versions

19 versions published
Versions and the rules that fired in each
VersionPublishedStatus
0.18.1 LATEST 29 Nov 2026 No rules fired
0.18.0 28 Nov 2026 No rules fired
0.17.0 28 Nov 2026 No rules fired
0.15.0 27 Nov 2026 Not shown
0.14.0 26 Nov 2026 Not shown

No rules fired in 0.18.1

Findings

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

README

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

@xi4z/dsh-utils

DeepSeek Harness 的工具 bundle。根包 @xi4z/dsh-utils 只做拼装:cordis.patch.yml 声明七个挂载行,locale/{en,zh}.json 提供 bundle 展示名,icon.svg 是图标;组件代码都在独立发布的包里,根包用同版本精确依赖把它们装起来。挂载行 id 同时是 settings 命名空间,插件页按 @xi4z/dsh-utils#<行 id> 定位该行的配置页。

组件 行 id 包 作用
utils-agents utils-agents @xi4z/dsh-utils-utils-agents 技能与预设的宿主:嵌套 SKILL.md 发现、模型可见性开关,以及按预设管理 skills、技能仓库与 AGENTS.md
无人值守审批门控 dsh-approval-policy @xi4z/dsh-utils-approval-policy 给审批请求设应答窗口,超时 fail-closed;对外发布窗口读数
QQ 审批卡片 dsh-approval-qq @xi4z/dsh-utils-approval-qq 把待审批请求推成 QQ 卡片(markdown + 允许/拒绝按钮),按钮点击回填审批结论
会话通知 dsh-notify @xi4z/dsh-utils-notify 会话结束 / 等授权 / 等回答时经 Gotify 网关推送,带设备名
反向代理入口 dsh-remote @xi4z/dsh-utils-remote 本机回环反代:Host/Origin 改写后转发给 DSH Web,供自备隧道发布界面;desktop profile 保持原版桌面 UI 并由宿主自举首次鉴权
浏览器界面 utils-ui @xi4z/dsh-utils-ui 各宿主行的配置页 + 右侧栏 utils-agents 面板;宿主侧只有空 apply()

安装

装一次 bundle 即可;七个组件由 pnpm 作为根包的精确版本依赖从 registry 装上。

想要的 target
最近一次发布 @xi4z/dsh-utils
main 最新提交 https://github.com/xi4z/dsh-utils(组件包仍需 registry 上有同版本)
离线 八个 tarball(见下)
改代码、即时生效 目录 link:,profile 里同时 link 七个组件
plugin_manager action=install_bundle target=@xi4z/dsh-utils
dsh plugin --profile <profile> add @xi4z/dsh-utils

根包的 dependencies 固定到七个 @xi4z/dsh-utils-*,版本与 bundle 相同,所以发布版只需要这一个 spec。GitHub 地址装的是 main 当前状态、不钉版本;要钉就用 npm 名或 #<commit>(组件仍从 registry 取同版本)。

根包 tarball 只含拼装层,组件在各自的包里。离线搬运要把八个包都 pack:

pnpm install && pnpm build
pnpm -r --filter "./packages/*" pack --pack-destination dist
pnpm pack --pack-destination dist
# 目标机器 profile 里七个 tarball 都加 file: 依赖,再装 bundle

本地开发装目录(link:,不复制文件,改完 pnpm build 重启宿主)。组件是精确版本依赖,profile 要把七个组件也 link 进来,pnpm 才会用本地目录而不是去 registry 解析:

{
  "dependencies": {
    "@xi4z/dsh-utils": "link:/abs/path/dsh-utils",
    "@xi4z/dsh-utils-approval-policy": "link:/abs/path/dsh-utils/packages/approval-policy",
    "@xi4z/dsh-utils-approval-qq": "link:/abs/path/dsh-utils/packages/approval-qq",
    "@xi4z/dsh-utils-notify": "link:/abs/path/dsh-utils/packages/notify",
    "@xi4z/dsh-utils-remote": "link:/abs/path/dsh-utils/packages/remote",
    "@xi4z/dsh-utils-unified-panel": "link:/abs/path/dsh-utils/packages/unified-panel",
    "@xi4z/dsh-utils-utils-agents": "link:/abs/path/dsh-utils/packages/utils-agents",
    "@xi4z/dsh-utils-ui": "link:/abs/path/dsh-utils/packages/ui"
  }
}

profile 的 dsh.profile.bundles 里是 @xi4z/dsh-utils。装后 bundle 的 patch 自动插七行,不手写挂载块;config: 只管配置。挂载项新增/改名要重启宿主。

配置覆盖

覆盖写在 profile 的 cordis.patch.yml,只写 id 与 config,name 交给 bundle:

- id: utils-agents
  config:
    maxDepth: 6
    extraRoots:
      - D:/Core/Projects/Skill
- id: dsh-approval-policy
  config:
    windowSeconds: 300
- id: dsh-notify
  config:
    gotifyUrl: 'https://notify.example.com'
    # 只写密钥:显式填写,设置页可改但永不回显;不做环境变量插值
    gotifyToken: 'gtfya.该系列的token'
    dryRun: false

各字段与默认值见下面各组件的配置表。utils-ui 没有 config,只是浏览器半侧的挂载行。三个宿主行的字段全部 volatile:在插件页保存即生效,改 cordis.patch.yml 则需要重启。

发布

八个包同版本、按依赖顺序发布:七个组件在前,bundle 在后。scripts/release.mjs 先 npm view 探一遍,版本已在 registry 上就跳过(重复跑安全、失败可续);任一包版本与根包不一致会直接报错退出。

推 GitHub 与发 npm 合成一次操作——打 tag 触发 publish.yml:

git push                                                   # 先推代码
git tag v$(node -p "require('./package.json').version")     # 打 tag:版本号取根包 version
git push origin --follow-tags                              # 再推 tag,CI 里 build + 发布全部八个包

tag 必须等于根包 package.json 的版本,否则 job 直接失败。CI 里 pnpm release 按依赖顺序发八个包,带 --provenance。

一次性准备:npm 建一个 Automation token,存成仓库 secret NPM_TOKEN。scope 是公开的 @xi4z,token 所属账号要能用这个 scope(scope 通常是 npm 用户名或已创建的组织)。

手动发(本机 npm login 后,脚本逻辑与 CI 相同):

pnpm build
pnpm release             # 按顺序发组件与 bundle;已发布版本跳过
pnpm release --dry-run   # 只看会不会发,不动 registry

改了任何组件都要把八个 package.json 的版本一起提到同一个值,再打 tag。

组件一:utils-agents

嵌套技能发现

技能根下第 1 层的扁平技能由 DSH 内置提供方处理;本组件补第 2 层及更深的技能包:

.dsh/skills/
├── flat-skill/SKILL.md            ← 内置提供方
└── obsidian-skills/               ← 容器目录
    ├── defuddle/SKILL.md          ← 本组件
    └── json-canvas/SKILL.md       ← 本组件

扫描根按优先级:项目最近的 .git 下的 .dsh/skills、.agents/skills;extraRoots;$DSH_HOME/skills;$DSH_AGENTS_HOME/skills(两个 home 默认是 ~/.dsh 与 ~/.agents);最后是 $DSH_HOME/utils/utils.json 里配置的 Skill 仓库(从仓库根开始,见下)。同名技能以 rank 小者为准,扁平技能优先(嵌套候选 rank 低一档)。

字段 默认 含义
minDepth 2 技能第一个目录层级(相对技能根)
maxDepth 8 最深扫描层级
watch true 监听技能根,变化刷新目录
debounceMs 200 监听失效防抖
pollIntervalMs 2000 不支持递归监听时的轮询间隔
includeProjectRoots true 扫项目级技能根
includeUserRoots true 扫用户级技能根
includeSkillRepositories true 把 utils.json 配置的 Skill 仓库作为扫描根
followSymlinks false 跟随符号链接目录(带环路保护)
extraRoots [] 追加技能根,绝对路径
ignoreDirs [".system","node_modules",".git"] 永不进入的目录名

识别的 frontmatter 字段:name、description,可选 whenToUse、disable-model-invocation、user-invocable。非法文件记 warning,跳过。

配置的 Skill 仓库:从仓库根递归 + 定时更新

$DSH_HOME/utils/utils.json 是 utils 的配置文件;面板「共享技能仓库」保存的就是这一份(首次读取时若文件不存在,会自动从旧的 $DSH_HOME/storages/dsh-utils-ui.json 迁移,旧文件保留不删;迁移不到仓库、或旧文件本身就是空配置 {} 时,会写入默认配置并继续使用,见下面的「默认配置」):

{
  "version": 1,
  "skillRepositories": [
    {
      "repoUrl": "git@github.com:xi4z/skills.git",
      "branch": "Agent",
      "targetDir": "/root/core/projects/skills-agent",
      "keyPath": "",
      "recurseSubmodules": true,
      "lastSync": { "at": "2026-11-22T10:00:00.000Z", "ok": true, "commit": "…", "skills": 96, "message": "已快进到最新提交" }
    }
  ],
  "autoUpdate": true,
  "autoSyncPresets": true,
  "updateIntervalMinutes": 60
}
  • 默认配置:文件不存在又迁移不到仓库、或旧文件本身是空配置({}、{"version":1},没有任何仓库和设置)时,第一次读取会把它写成默认配置——skillRepositories 里放一个默认共享仓库(https://github.com/xi4z/skills、Agent、$DSH_HOME/skills/utils-skill),autoUpdate/autoSyncPresets 为 true、updateIntervalMinutes 为 60。升级前配置为空的老 profile 因此会直接变成默认配置;已经写了任何配置(仓库或 autoUpdate 等设置)的文件读取时原样保留,坏掉的 JSON 只按默认值读取、不覆盖,方便手工修复。想保持空仓库列表,写一条显式设置即可(例如 "autoUpdate": false)。
  • 每个 targetDir 都是一个发现根:从仓库根(depth 0)开始递归,仓库根自己的 SKILL.md 和任意深度的技能包都会进目录,不受 minDepth 限制;maxDepth 仍然生效,ignoreDirs 照旧跳过。
  • 配置仓库的 rank 是 90,优先于项目级/用户级技能根;同一文件同时通过软链接(如 ~/.dsh/skills -> <checkout>)被两个根看到时,按真实路径去重,只保留 rank 更小的那份。
  • 定时更新:激活 5 分钟后第一次,之后每隔 updateIntervalMinutes(默认 60,可设 5–1440)执行 clone 或 fetch + merge --ff-only,再 submodule sync --recursive + submodule update --init --recursive;只有提交或子模块真的变了才刷新技能目录。
  • 预设同步:仓库是唯一事实来源。autoSyncPresets(默认 true)为真时,每次定时更新后对列表里每个仓库执行:
    • new / update:复制到 $DSH_HOME/.agent-presets/<id>/ 并立即注册成宿主预设,same 不重写;
    • 仓库里已删除、且本机存在同一预设(shared-presets.json 清单记录过,或内容本来就一致而被自动登记)的:删除本机 <id> 目录并注销;
    • DSH 自带预设(builtinPresets,默认 standard/ptc/minimal/creator)豁免,不同步、不删除;本机自己新建、清单里没有的预设也不会被删;checkout 缺失或不可读时不做任何删除。
    • 只处理 utils.json 里列出的 Skill 仓库,presetSourceDirs 等额外来源仍走面板「预设同步」手动同步;自动方向永远不会写仓库或 push,增删预设请在仓库里改完推送。
  • 自动更新不碰脏工作区:git status --porcelain 有输出就跳过(面板手动「拉取」仍会失败并给出原因);所有失败只记 warning,不 reset、不 force、不 push。
  • autoUpdate / autoSyncPresets 两个开关互相独立,分别关掉「拉仓库」和「同步预设」,面板的「拉取」「同步」「发布预设」按钮仍可用。
模型可见性

配置页的「技能」开关列出当前会话能读到的 Skill:关掉 = 在 ctx.skills.snapshot() / list() 里把该技能标成 modelInvocable: false,模型下一轮拿到的 <available_skills> 里不再出现,手动 /名称 仍可加载。只能手动调用的技能显示「仅手动」,开关禁用。

技能列表过长时默认折叠(超过 8 个),标题栏显示「共 N 个 · 模型可见 M」与「展开(N)」,展开后才能逐个开关;技能较少时自动展开。折叠只影响显示,不改任何开关。

数据来源:GET /api/dsh-utils/skill-panel/list(Connection owner 认证);带 sessionId 时用该会话的 cwd 与 preset skill 层,不带时用宿主默认工作目录。持久化在 utils-agents 命名空间的 disabledSkills(volatile,保存即生效)。这里只影响模型可见性,不改预设目录里的 SKILL.md;按预设开关技能在右侧栏面板的「技能」视图(重命名 SKILL.md / SKILL.md.disabled)。

面板:预设、技能仓库与 AGENTS.md

顶部选择预设(或「全局 / 项目 AGENTS.md」),下面四个视图:

视图 作用
技能 列出 <preset>/skills/ 下的 SKILL.md / SKILL.md.disabled,显示名称、描述、路径;开关直接重命名文件;「编辑 SKILL.md」跳到 Markdown 视图
Markdown 列出该预设的 AGENTS.md(缺失也列出,保存即创建)以及全部 .md / .md.disabled;带草稿、还原、重读、Ctrl/Cmd+S
技能仓库 仓库地址、分支、skills/ 下的目标子目录、密钥路径、Deploy Key、递归子模块;保存设置与「同步(拉取)」
预设同步 配置共享技能仓库(仓库地址、分支、检出目录、Deploy Key)并 clone/快进私有仓库;读取其 .dsh/preset 下的共享预设,逐条或全部复制到 $DSH_HOME/.agent-presets/;导入非内置原生预设,并发布目录预设到共享仓库、提交推送

目录预设注册:宿主启动、首次打开面板或点「刷新」时,把每个含 agent.cordis.yml 的目录注册成真正的 agent preset(声明一个 cordis:include 行)。注册成功后 DSH 的预设选择器就能选到它;加载失败会在面板列出 broken 诊断。新增目录不必重启,面板「刷新」即补注册。

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 @xi4z/dsh-utils

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

PolinRider Returns
Research

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

Microsoft's Official agent framework Hijacked
AI & VibeSec

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

Vulnerability Insights

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

Frame 2085668439 (1)
Group 1261154229