D

dsh-skill-manager

github.com/yanglaofish/dsh-skill-manager

v2.0.1 会话与记忆 写入文件发起网络请求

一个 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

中文简介由 DeepSeek 模型翻译,仅供参考。

分类
session
发布
2026-10-08
版本
v2.0.1

检测报告

有一定能力。命中了若干能力模式,大多是插件正常工作时会用到的。
2需留意2一般20未命中
高关注需留意一般

能力清单

  • 写入文件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-14。 命中次数只说明源码里出现过这类调用,不说明行为好坏——一个插件读写文件 500 次和 1 次 都会被记为「读取文件」。这是能力清单,不是信任评分,也不是安全结论: 没扫出来的能力可能只是写法没被规则覆盖。

依赖安全公告

这个插件声明的依赖中,有 10 条已公开的安全公告 (最高等级:高):

等级依赖包编号摘要
高adm-zipCVE-2026-102282adm-zip extraction preserves SUID/SGID bits from untrusted ZIPs -> local privilege escalation
修复版本:0.6.1 详情 →
中adm-zipCVE-2026-77301adm-zip: Uncontrolled memory allocation via the declared uncompressed size (DoS)
修复版本:0.6.1 详情 →
中adm-zipGHSA-8238-w5pm-2374adm-zip: Unhandled error event in async DEFLATE decompression crashes Node.js process (DoS)
修复版本:0.6.1 详情 →
中adm-zipGHSA-p634-w6r4-rjp2adm-zip: Duplicate ZIP entry names: getEntry() and extractAllTo() resolve to different content
修复版本:0.6.1 详情 →
中adm-zipCVE-2026-92000adm-zip: Decompression-bomb protection (fix for CVE-2026-39244) can be bypassed by declaring uncompressed size as 0
修复版本:0.6.1 详情 →
中adm-zipCVE-2026-76845adm-zip extraction follows destination symlinks, allowing arbitrary file overwrite 详情 →
中adm-zipCVE-2026-39244adm-zip: Crafted ZIP file triggers 4GB memory allocation
修复版本:0.6.0 详情 →
中yamlCVE-2023-2251Uncaught Exception in yaml
修复版本:2.2.2 详情 →
低adm-zipGHSA-c6fg-446q-cg94adm-zip: getDataAsync() bypasses the maxOutputLength size guard enforced by the synchronous getData() path
修复版本:0.6.1 详情 →
低yamlCVE-2026-33532yaml is vulnerable to Stack Overflow via deeply nested YAML collections
修复版本:1.10.3, 2.8.3 详情 →

查询的是依赖声明范围的下界(如 ^4.2.0 查 4.2.0), 不是实际安装到的版本。真正装的时候如果解析到了修复版本,就不受影响—— 所以这是「可能受影响」,不是「这个插件有漏洞」。数据来自 OSV.dev。

← 返回全部插件