dsh-memory
github.com/Max-Null/dsh-memory
v0.15.1
会话与记忆
含混淆或编码代码写入文件发起网络请求
本插件属于 **`@max-null/*` 插件系列**——这一系列共同构成 **SSID(思灵 · Seek Soul in Darkness)** 桌面体验。SSID 是整合它们的盒:`dsh-capture` · `dsh-chat-rail` · `dsh-chinese-thinking` · `dsh-draft-polish` · `dsh-guardian` · `dsh-habit` · `dsh-memory` ·
作者原文(英文)
Cross-session plaintext memory plugin for the DeepSeek Harness — deterministic BM25 recall, writes take effect immediately, signal-driven injection, no embeddings
中文简介由 DeepSeek 模型翻译,仅供参考。
deepseekharnessdshdsh-plugindeepseek-harnessmemoryplugincordis
检测报告
有一定能力。命中了若干能力模式,大多是插件正常工作时会用到的。
3需留意4一般17未命中
高关注需留意一般
能力清单
- 含混淆或编码代码
obfuscated-code需留意18 处命中client.js:157promptEmpty: "\u6682\u65E0\u6A21\u677F\uFF08\u70B9\u300C\u65B0\u589E\u6A21\u677F\u300D\u6216\u5F80 ~/.dsh/prompt-library…client.js:164promptDeleteConfirm: "\u5220\u9664\u6A21\u677F\uFF08md \u6587\u4EF6\u4E0E\u7D22\u5F15\u4E00\u5E76\u5220\u9664\uFF09\uFF1…client.js:181groupQuarantineHint: "\u547D\u4E2D\u5371\u9669\u5185\u5BB9\u89C4\u5219\uFF08\u5BC6\u94A5/\u51ED\u636E\u7C7B\uFF09\u2192 …client.js:190approveFirst: "\u5148\u653E\u884C\u9694\u79BB\u624D\u80FD\u5E38\u9A7B\u6CE8\u5165",- 混淆本身不是恶意,但公开源码里出现大段混淆值得问一句为什么。
- 写入文件
writes-files需留意14 处命中dist/engine.js:103writeFileSync(path, `${JSON.stringify(document, null, 2)}\n`);dist/engine.js:111writeFileSync(canonicalPath, `${JSON.stringify(document, null, 2)}\n`);dist/engine.js:112rmSync(legacyPath);dist/engine.js:1244writeFileSync(backup, readFileSync(file));- 看写入位置。写自己的配置目录是正常的,写系统目录不是。
- 发起网络请求
network需留意1 处命中client.js:334const res = await fetch(`/memory/api/${method}`, {- 看请求发往哪些域名。发往作者自己的后端是常见做法。
- 读取文件
reads-files一般42 处命中dist/anchors.js:52return existsSync(target) ? 'present' : 'absent';dist/engine.js:92if (!existsSync(path))dist/engine.js:94const document = JSON.parse(readFileSync(path, 'utf8'));dist/engine.js:99const document = JSON.parse(readFileSync(path, 'utf8'));- 读文件是绝大多数插件的正常工作方式,本身不构成顾虑。
- 接触凭据或密钥
credentials一般10 处命中client.js:237groupQuarantineHint: "Flagged by a dangerous-content rule (secrets/credentials) \u2192 kept out of injection and recall.…dist/index.js:246+ 'by the system and the model, and humans intervene only as exceptions. Credential-like content is 'dist/index.js:411description: 'Save one cross-session memory. It takes effect immediately; credential-like content is quarantined instead…dist/index.js:668description: 'Update the content, keywords, persistent-injection switch or validity anchor of one stored memory (e.g. co…- 看它读取哪些凭据、发往哪里。用于登录自己的服务是正常的。
- 读取环境变量
reads-env一般5 处命中dist/anchors.js:35const read = probes.env ?? ((name) => process.env[name]);dist/engine.js:157return join(process.env.DSH_HOME ?? join(homedir(), '.dsh'), 'storages');dist/engine.js:1667return this.config.promptGlobalRoot ?? join(process.env.DSH_HOME ?? join(homedir(), '.dsh'), 'prompt-library');scripts/analyze-cooccurrence.mjs:85const dshHome = process.env.DSH_HOME ?? join(homedir(), '.dsh')- 环境变量里常混有密钥。看它是否把整个 env 都读走。
- 动态加载模块
dynamic-import一般2 处命中scripts/check-memory-files.mjs:45({ blockSchema } = await import('../dist/schema.js'))dist/engine.d.ts:366constructor(ctx: import('@deepseek-ai/cordis').Context, config?: MemoryConfig);- 动态导入本身无害,但会让依赖关系难以静态审阅。
逐条扫描明细
| 能力 | 标识 | 关注度 | 命中次数 |
|---|---|---|---|
| 含混淆或编码代码 | obfuscated-code | 需留意 | 18 |
| 写入文件 | writes-files | 需留意 | 14 |
| 发起网络请求 | network | 需留意 | 1 |
| 读取文件 | reads-files | 一般 | 42 |
| 接触凭据或密钥 | credentials | 一般 | 10 |
| 读取环境变量 | reads-env | 一般 | 5 |
| 动态加载模块 | dynamic-import | 一般 | 2 |
这份报告的口径
扫描读的是包里的源码,全程不执行第三方代码。 本次读了 35 个文件,扫描于 2026-10-14。 命中次数只说明源码里出现过这类调用,不说明行为好坏——一个插件读写文件 500 次和 1 次 都会被记为「读取文件」。这是能力清单,不是信任评分,也不是安全结论: 没扫出来的能力可能只是写法没被规则覆盖。