D

dsh-mnemon

github.com/omdsh-dev/dsh-mnemon

v0.5.29 模型与账号 R010 向其他插件注入写入文件动态执行代码

Composable, view-based memory for DeepSeek Harness. Pluggable sources and strategies, with layered memory out of the box.

该插件尚未翻译,显示作者原文。

deepseek-harnessdeepseek-harness-plugindsh-pluginagent-memoryllm-memorypersistent-memorylong-term-memoryruntime-memory
分类
model
发布
2026-10-14
版本
v0.5.29

检测报告

关注度高。命中了不少能力模式,其中可能有需要留意的。逐条看下面的清单。
1高关注2需留意3一般18未命中
高关注需留意一般

能力清单

  • R010 向其他插件注入plugin-tree-injection高关注8 处命中
    • dsh-mnemon-source-documents, dsh-mnemon-source-memory-spaces, dsh-mnemon-source-runtime
    • 看 patch 里 insert 的包是不是本项目自己的。插入第三方代码要格外留意。
  • 写入文件writes-files需留意1 处命中
    • bin/repair-legacy-session.mjs:689try { await file.writeFile(result); await file.sync() } finally { await file.close() }
    • 看写入位置。写自己的配置目录是正常的,写系统目录不是。
  • 动态执行代码dynamic-code需留意1 处命中
    • lib/testing.js:223new Function("window", readFileSync(path, "utf8"))(window);
    • 看 eval / new Function 的入参来自哪里。常量字符串和用户输入是两回事。
  • 动态加载模块dynamic-import一般59 处命中
    • lib/starter-resolution-CiUfOO4b.js:38return import("@deepseek-ai/dsh-app-boot").then(async ({ createRuntimeResolution, loadProfileDirectory, resolveBundleDir…
    • lib/testing.js:26import: (specifier) => import(specifier),
    • bin/repair-legacy-session.mjs:104require(tool ? supportedPackedToolRun(row, false) : supportedPackedTextRun(row), 'A packed source has unsupported fields…
    • bin/repair-legacy-session.mjs:109require(logical.length < maximumBytes / 128, 'The identity proof exceeds its bounded event count.')
    • 动态导入本身无害,但会让依赖关系难以静态审阅。
  • 接触凭据或密钥credentials一般33 处命中
    • README.md:134- Git sync publishes the same Mnemon Pack payload to a repository you own, as readable files, so another machine can pul…
    • README.md:135- Saved Provider credentials stay on the Host and are never exported. Backups still contain private memory; protect them…
    • README.md:148Use Node.js `^22.19.0 || >=24.0.0` and pnpm. `node scripts/serve-e2e.mjs` starts a disposable real WebUI; add `--docs-de…
    • README.zh-CN.md:149需要 Node.js `^22.19.0 || >=24.0.0` 与 pnpm。`node scripts/serve-e2e.mjs` 会启动一个用后即弃的真实 WebUI;加上 `--docs-demo` 即可得到这些截图背后的示例项…
    • 看它读取哪些凭据、发往哪里。用于登录自己的服务是正常的。
  • 读取文件reads-files一般2 处命中
    • lib/testing.js:223new Function("window", readFileSync(path, "utf8"))(window);
    • bin/repair-legacy-session.mjs:557for await (const chunk of createReadStream(path)) {
    • 读文件是绝大多数插件的正常工作方式,本身不构成顾虑。
逐条扫描明细
能力标识关注度命中次数
R010 向其他插件注入plugin-tree-injection高关注8
写入文件writes-files需留意1
动态执行代码dynamic-code需留意1
动态加载模块dynamic-import一般59
接触凭据或密钥credentials一般33
读取文件reads-files一般2

这份报告的口径

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

依赖安全公告

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

等级依赖包编号摘要
中fflateCVE-2026-45820fflate unzipSync can enter an infinite loop when parsing malformed ZIP64 archives
修复版本:0.4.9, 0.5.4, 0.6.11 详情 →
中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 详情 →
低zodCVE-2023-4316Zod denial of service vulnerability
修复版本:3.22.3 详情 →

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

← 返回全部插件