D

dsh-auto-memory

github.com/AskTheWay/dsh-auto-memory

v0.7.2 会话与记忆 发起网络请求写入文件可终止进程

Claude Code style auto-memory plugin for DeepSeek Harness: typed memory files + MEMORY.md index auto-injected into the system prompt

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

deepseek-harnessdsh-pluginmemoryagentclaude-code
分类
session
发布
2026-10-13
版本
v0.7.2

检测报告

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

能力清单

  • 发起网络请求network需留意8 处命中
    • lib/client.js:880const response = await fetch(`${BASE}/groups.list${query}`, { headers: { "cache-control": "no-store" } });
    • lib/client.js:890const response = await fetch(`${BASE}/memory.read?${params}`);
    • lib/client.js:894write: (payload) => fetch(`${BASE}/memory.write`, {
    • lib/client.js:899del: (payload) => fetch(`${BASE}/memory.delete`, {
    • 看请求发往哪些域名。发往作者自己的后端是常见做法。
  • 写入文件writes-files需留意3 处命中
    • lib/index.js:475await promises.mkdir(dir, {
    • lib/index.js:552await promises.unlink(join(dir, entry));
    • lib/index.js:581await promises.unlink(file);
    • 看写入位置。写自己的配置目录是正常的,写系统目录不是。
  • 可终止进程kills-processes需留意1 处命中
    • lib/index.js:612process.kill(pid, 0);
    • 看它终止的是自己启动的进程,还是按名字匹配到的任意进程。
  • R013 清单可疑manifest-obfuscation需留意1 处命中
    • 安装脚本: prepare
    • 清单被刻意写乱时,加载行为会难以预测。看原文而不是看渲染结果。
  • 读取文件reads-files一般12 处命中
    • lib/index.js:432dirents = await promises.readdir(dir, { withFileTypes: true });
    • lib/index.js:442const raw = await promises.readFile(file, "utf8").catch(() => null);
    • lib/index.js:452const raw = await promises.readFile(file, "utf8").catch(() => null);
    • lib/index.js:481const existing = parseMemory(await promises.readFile(file, "utf8").catch(() => ""), scope);
    • 读文件是绝大多数插件的正常工作方式,本身不构成顾虑。
  • 接触凭据或密钥credentials一般4 处命中
    • lib/index.js:290const SECRET_PATTERNS = [
    • lib/index.js:374function redactSecrets(text) {
    • lib/index.js:376for (const { kind, re } of SECRET_PATTERNS) out = out.replace(re, (match) => kind === "id-card" && !isValidIdCard(match)…
    • lib/index.js:389return stripMemoryTags(redactSecrets(text));
    • 看它读取哪些凭据、发往哪里。用于登录自己的服务是正常的。
逐条扫描明细
能力标识关注度命中次数
发起网络请求network需留意8
写入文件writes-files需留意3
可终止进程kills-processes需留意1
R013 清单可疑manifest-obfuscation需留意1
读取文件reads-files一般12
接触凭据或密钥credentials一般4

这份报告的口径

扫描读的是包里的源码,全程不执行第三方代码。 本次读了 7 个文件,扫描于 2026-10-15。 命中次数只说明源码里出现过这类调用,不说明行为好坏——一个插件读写文件 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。

← 返回全部插件