dsh-patchouli
github.com/memorax-ai/dsh-patchouli
v0.1.7
会话与记忆
R010 向其他插件注入可执行外部程序写入文件
Native knowledge context for DeepSeek Harness
该插件尚未翻译,显示作者原文。
deepseek-harnessdeepseek-harness-plugindshdsh-plugincordismemoryknowledgeknowledge-management
检测报告
关注度高。命中了不少能力模式,其中可能有需要留意的。逐条看下面的清单。
2高关注1需留意4一般17未命中
高关注需留意一般
能力清单
- R010 向其他插件注入
plugin-tree-injection高关注4 处命中- dsh-patchouli-agent-loop, dsh-patchouli-artifact-ingestor, dsh-patchouli-session-indexer
- 看 patch 里 insert 的包是不是本项目自己的。插入第三方代码要格外留意。
- 可执行外部程序
spawns-processes高关注1 处命中lib/service.js:1import { spawn } from 'node:child_process';- 看它调用哪些程序。调用本机已有的工具是常见做法。
- 写入文件
writes-files需留意9 处命中lib/goojfc/adapters/engramory.js:63mkdirSync(root, { recursive: true });lib/goojfc/adapters/engramory.js:110mkdirSync(dirname(path), { recursive: true });lib/goojfc/adapters/engramory.js:112writeFileSync(temporary, content, 'utf8');lib/goojfc/adapters/engramory.js:113renameSync(temporary, path);- 看写入位置。写自己的配置目录是正常的,写系统目录不是。
- 动态加载模块
dynamic-import一般20 处命中lib/fleet/archive.js:43return this.timelines.require(logicalId);lib/fleet/archive.js:116const timeline = await this.timelines.require(logicalId);lib/fleet/archive.js:125const timeline = await this.timelines.require(logicalId);lib/goojfc/graph-memory.js:63return import(pathToFileURL(join(root, path)).href);- 动态导入本身无害,但会让依赖关系难以静态审阅。
- 读取文件
reads-files一般3 处命中lib/goojfc/adapters/engramory.js:125return readFileSync(canonicalPath, 'utf8');lib/fleet/policy-store.js:36return decodePolicyOverride(JSON.parse(await readFile(this.path(logicalId), 'utf8')));lib/fleet/timeline.js:41content = await readFile(this.path(logicalId), 'utf8');- 读文件是绝大多数插件的正常工作方式,本身不构成顾虑。
- 文中出现远程脚本地址
remote-url-reference一般2 处命中README.md:17[](…README.zh-CN.md:17[](…- 只是文本里出现了远程脚本地址,没有看到加载它的调用。多半是文档或注释;若确实可疑,搜一下这个地址在包里的其他出现位置。
- 接触凭据或密钥
credentials一般1 处命中lib/client.js:277gitRemoteDescription: "Periodically fetch all remote refs for retrieval, using the SSH or Git credentials available to D…- 看它读取哪些凭据、发往哪里。用于登录自己的服务是正常的。
逐条扫描明细
| 能力 | 标识 | 关注度 | 命中次数 |
|---|---|---|---|
| R010 向其他插件注入 | plugin-tree-injection | 高关注 | 4 |
| 可执行外部程序 | spawns-processes | 高关注 | 1 |
| 写入文件 | writes-files | 需留意 | 9 |
| 动态加载模块 | dynamic-import | 一般 | 20 |
| 读取文件 | reads-files | 一般 | 3 |
| 文中出现远程脚本地址 | remote-url-reference | 一般 | 2 |
| 接触凭据或密钥 | credentials | 一般 | 1 |
这份报告的口径
扫描读的是包里的源码,全程不执行第三方代码。 本次读了 77 个文件,扫描于 2026-10-15。 命中次数只说明源码里出现过这类调用,不说明行为好坏——一个插件读写文件 500 次和 1 次 都会被记为「读取文件」。这是能力清单,不是信任评分,也不是安全结论: 没扫出来的能力可能只是写法没被规则覆盖。