D

dsh-plugins-plus

github.com/sidleo/dsh-plugins-plus

v0.1.7 技能包 动态执行代码发起网络请求写入文件

一个 DSH bundle,内含**多个可单独开关的组件**,每个组件替代一个内置插件并按 **agent 预设**生效。配置页在 **DSH 设置**里。

作者原文(英文)

dsh-plugins-plus: one DSH bundle with independently switchable components that replace built-in plugins per agent preset (agent-instructions-plus, skill-filesystem-plus, ...). Configuration lives in DSH Settings; component settings inherit the global pres

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

deepseek-harnessdshpluginbundlecomponentsagent-presetagent-instructions-plusskill-filesystem-plus
分类
skill
发布
2026-09-29
版本
v0.1.7

检测报告

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

能力清单

  • 动态执行代码dynamic-code需留意5 处命中
    • lib/agent-instructions-preset.js:302schema.callback = new Function("return " + schema.callback)();
    • lib/agent-instructions.js:296schema.callback = new Function("return " + schema.callback)();
    • lib/index.js:429schema.callback = new Function("return " + schema.callback)();
    • lib/skill-filesystem-preset.js:300schema.callback = new Function("return " + schema.callback)();
    • 看 eval / new Function 的入参来自哪里。常量字符串和用户输入是两回事。
  • 发起网络请求network需留意4 处命中
    • lib/client.js:170const res = await fetch(API + path, { headers: { accept: "text/plain" } });
    • lib/client.js:177const res = await fetch(API + path, { headers: { "content-type": "application/json" } });
    • src/client/index.ts:156const res = await fetch(API + path, { headers: { accept: 'text/plain' } })
    • src/client/index.ts:164const res = await fetch(API + path, { headers: { 'content-type': 'application/json' } })
    • 看请求发往哪些域名。发往作者自己的后端是常见做法。
  • 写入文件writes-files需留意1 处命中
    • lib/index.d.ts:645unlink(options: EntryOptions): void;
    • 看写入位置。写自己的配置目录是正常的,写系统目录不是。
  • 读取文件reads-files一般17 处命中
    • lib/agent-instructions-preset.js:1026if (statSync(join(path, marker), { throwIfNoEntry: false }) !== void 0) return true;
    • lib/agent-instructions-preset.js:1550const stream = createReadStream(path, {
    • lib/index.js:1354parsed = JSON.parse(readFileSync(path, "utf8"));
    • lib/skill-filesystem-preset.js:1477if (existsSync(anchor)) return {
    • 读文件是绝大多数插件的正常工作方式,本身不构成顾虑。
  • 读取环境变量reads-env一般12 处命中
    • lib/agent-instructions-preset.js:1121const home = resolve(config.dshHome.replace(/^~/, process.env.HOME ?? "~"));
    • lib/agent-instructions-preset.js:1586dshHome.replace(/^~/, process.env.HOME ?? "~");
    • lib/index.js:1340const configured = process.env.DSH_HOME?.trim();
    • lib/skill-filesystem-preset.js:1211return process.env.HOME || void 0;
    • 环境变量里常混有密钥。看它是否把整个 env 都读走。
  • 动态加载模块dynamic-import一般3 处命中
    • lib/index.d.ts:547import(specifier: string, parentURL: string, importAttributes: ImportAttributes): Promise<any>;
    • lib/index.d.ts:579import(specifier: string, parentURL: string, importAttributes: ImportAttributes, phase?: ModulePhase, isEntryPoint?: boo…
    • lib/index.d.ts:630import(name: string, getOuterStack?: () => string[]): any;
    • 动态导入本身无害,但会让依赖关系难以静态审阅。
逐条扫描明细
能力标识关注度命中次数
动态执行代码dynamic-code需留意5
发起网络请求network需留意4
写入文件writes-files需留意1
读取文件reads-files一般17
读取环境变量reads-env一般12
动态加载模块dynamic-import一般3

这份报告的口径

扫描读的是包里的源码,全程不执行第三方代码。 本次读了 44 个文件,扫描于 2026-10-14。 命中次数只说明源码里出现过这类调用,不说明行为好坏——一个插件读写文件 500 次和 1 次 都会被记为「读取文件」。这是能力清单,不是信任评分,也不是安全结论: 没扫出来的能力可能只是写法没被规则覆盖。

依赖安全公告

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

等级依赖包编号摘要
中yamlCVE-2023-2251Uncaught Exception in yaml
修复版本:2.2.2 详情 →
低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。

← 返回全部插件