会话与记忆 · v2.0.1
dsh-skill-manager
一个 DeepSeek Harness(DSH)插件:为 DSH 代理的技能提供完整的管理平面——统一查看、编辑、导入、管理,并按照「技能库 / 工作区 / 会话」三层模型精细控制每个技能在何时何地生效。
作者原文(英文)
Skill lifecycle manager for DSH 0.2.x: library / workspace / session three-layer skill management, plus the read-only preset layer read through the 0.2 scope API
简介取自插件自己的 README 原文。
安装命令
dsh plugin --profile web add @yanglaofish/dsh-skill-manager@2.0.1
已试装 · 层已挂载
已在一个隔离的 profile 里真装过:包能装上,并且插件层挂载成功。这一条是实测结果,不是作者的声明。
检测报告
能力清单
- 写入文件
writes-files需留意32 处命中lib/index.js:500await mkdir(lib, { recursive: true });lib/index.js:520await mkdir(dstDir, { recursive: true });lib/index.js:521await writeFile(dstFile, raw, 'utf8');lib/index.js:530try { await unlink(src); } catch { /* keep on failure */ }- 看写入位置。写自己的配置目录是正常的,写系统目录不是。
- 发起网络请求
network需留意1 处命中lib/client.js:261const res = await fetch(API + path, options);- 看请求发往哪些域名。发往作者自己的后端是常见做法。
- 读取文件
reads-files一般26 处命中lib/index.js:36return JSON.parse(readFileSync(p, 'utf8')).version ?? 'dev';lib/index.js:107if (existsSync(join(c, 'cordis', 'preset.yml')) || existsSync(join(c, 'standard', 'preset.yml'))) return c;lib/index.js:270const raw = await readFile(filePath, 'utf8');lib/index.js:295const names = await readdir(dir, { withFileTypes: true });- 读文件是绝大多数插件的正常工作方式,本身不构成顾虑。
- 读取环境变量
reads-env一般2 处命中lib/index.js:43return process.env.DSH_HOME || join(homedir(), '.dsh');lib/index.js:629return process.env.DSH_AGENTS_HOME || join(homedir(), '.agents');- 环境变量里常混有密钥。看它是否把整个 env 都读走。
逐条扫描明细
| 能力 | 标识 | 关注度 | 命中次数 |
|---|---|---|---|
| 写入文件 | writes-files | 需留意 | 32 |
| 发起网络请求 | network | 需留意 | 1 |
| 读取文件 | reads-files | 一般 | 26 |
| 读取环境变量 | reads-env | 一般 | 2 |
这份报告的口径
扫描读的是包里的源码,全程不执行第三方代码。 本次读了 9 个文件,扫描于 2026-10-15。 命中次数只说明源码里出现过这类调用,不说明行为好坏——一个插件读写文件 500 次和 1 次 都会被记为「读取文件」。这是能力清单,不是信任评分,也不是安全结论: 没扫出来的能力可能只是写法没被规则覆盖。
可信度
- -5cordis entry id「skill-manager」被 9 个包共用,同时安装会互相替换warn:@kaikaichumi/dsh-skill-manager、@lanxing/dsh-skill-manager、@luoxunhao/dsh-skill-manager、@megen-lebar/dsh-skill-manager
- -5没有声明许可warn
认证等级 L0
- L0静态结构与契约✓sha512-sACzzgm6hWPM9LTi… 与本地 tarball 复算一致,补丁与入口齐备
- L1配置组合与依赖图—entry id skill-manager 被 9 个包共用
- L2隔离沙箱冒烟✓隔离 profile 安装成功,3.3s,层已挂载;宿主带它启动(booted)(前一级未通过,本项不计入等级)前一级未通过,不计入等级
- L3运行时健康监控✓抽样会话内未观测到外部进程 / 越界写 / 外连(2 个事件)(前一级未通过,本项不计入等级)前一级未通过,不计入等级
评分口径与作者信息
从 100 分开始按规则扣减:fail −20 / major −10 / warn −5 / minor −2;star 数、下载量、LLM 输出都不参与评分
- 维护者
- yanglaofish
- 仓库
- https://github.com/yanglaofish/dsh-skill-manager
- 许可
- 未声明
- 最后发布
- 2026-10-08
- 周下载
- 805
- star
- 2
扫描状态:已扫描。能力是事实,不是缺陷; 周下载与 star 只作参考,不参与评分。
认证等级只回答四件事:包本身是否完整可解析(L0)、能不能与别的插件组合(L1)、隔离环境里装不装得上并起得来(L2)、抽样运行时有没有异常(L3)。依赖漏洞、仓库存活、下载量都不参与评级,只作为独立信号标注。可信 ≠ 无漏洞,上架 ≠ 推荐。
| DSH peer 依赖 | 6 个cordisdsh-agent-preset-registrydsh-host-webserverdsh-sessiondsh-skilldsh-tools均为 @deepseek-ai/ 下的包 |
|---|---|
| 第三方依赖 | 2 个 |
| bundle patch | ./cordis.patch.yml |
| 依赖安全公告 | 10 条,见下方 |
这个插件声明的依赖中,有 10 条已公开的安全公告 (最高等级:高):
| 等级 | 依赖包 | 编号 | 摘要 |
|---|---|---|---|
| 高 | adm-zip | CVE-2026-102282 | adm-zip extraction preserves SUID/SGID bits from untrusted ZIPs -> local privilege escalation 修复版本:0.6.1 详情 |
| 中 | adm-zip | CVE-2026-77301 | adm-zip: Uncontrolled memory allocation via the declared uncompressed size (DoS) 修复版本:0.6.1 详情 |
| 中 | adm-zip | GHSA-8238-w5pm-2374 | adm-zip: Unhandled error event in async DEFLATE decompression crashes Node.js process (DoS) 修复版本:0.6.1 详情 |
| 中 | adm-zip | GHSA-p634-w6r4-rjp2 | adm-zip: Duplicate ZIP entry names: getEntry() and extractAllTo() resolve to different content 修复版本:0.6.1 详情 |
| 中 | adm-zip | CVE-2026-92000 | adm-zip: Decompression-bomb protection (fix for CVE-2026-39244) can be bypassed by declaring uncompressed size as 0 修复版本:0.6.1 详情 |
| 中 | adm-zip | CVE-2026-76845 | adm-zip extraction follows destination symlinks, allowing arbitrary file overwrite 详情 |
| 中 | adm-zip | CVE-2026-39244 | adm-zip: Crafted ZIP file triggers 4GB memory allocation 修复版本:0.6.0 详情 |
| 中 | yaml | CVE-2023-2251 | Uncaught Exception in yaml 修复版本:2.2.2 详情 |
| 低 | adm-zip | GHSA-c6fg-446q-cg94 | adm-zip: getDataAsync() bypasses the maxOutputLength size guard enforced by the synchronous getData() path 修复版本:0.6.1 详情 |
| 低 | yaml | CVE-2026-33532 | yaml is vulnerable to Stack Overflow via deeply nested YAML collections 修复版本:1.10.3, 2.8.3 详情 |
查询的是依赖声明范围的下界(如 ^4.2.0 查 4.2.0),
不是实际安装到的版本。真正装的时候如果解析到了修复版本,就不受影响——
所以这是「可能受影响」,不是「这个插件有漏洞」。数据来自
OSV.dev。
元数据
| 仓库最近提交 | 2026-10-08 |
|---|---|
| 仓库创建 | 2026-08-18 |
DSH