dsh-math-memory
github.com/maple110011/dsh-obsidian-math
v0.8.1
界面与主题
R010 向其他插件注入可执行外部程序写入文件
Obsidian side-panel math memory agent for DeepSeek Harness: layered long-term memory, idea memo with proactive review reminders, unified note_recall retrieval plus dedicated note search/create/backlink tools. Ships as both a dsh plugin and an Obsidian com
该插件尚未翻译,显示作者原文。
deepseekdshobsidianmemorymathagentnotes
检测报告
关注度高。命中了不少能力模式,其中可能有需要留意的。逐条看下面的清单。
2高关注5需留意3一般14未命中
高关注需留意一般
能力清单
- R010 向其他插件注入
plugin-tree-injection高关注2 处命中- dsh-math-memory, dsh-math-memory/dsh/preset/math-memory.mjs
- 看 patch 里 insert 的包是不是本项目自己的。插入第三方代码要格外留意。
- 可执行外部程序
spawns-processes高关注1 处命中dsh/install.mjs:67import { spawnSync } from "node:child_process";- 看它调用哪些程序。调用本机已有的工具是常见做法。
- 写入文件
writes-files需留意102 处命中dsh/client-panel/build-client.mjs:52mkdirSync(join(root, "lib"), { recursive: true });dsh/client-panel/build-client.mjs:53writeFileSync(CLIENT_OUT, wrapped, "utf8");…t-panel/install-into-profile.mjs:160mkdirSync(to, { recursive: true });…t-panel/install-into-profile.mjs:165else copyFileSync(source, target);- 看写入位置。写自己的配置目录是正常的,写系统目录不是。
- 发起网络请求
network需留意2 处命中dsh/client-panel/src/http-json.mjs:60const res = await fetch(url, init);…c/drop-mention/mention-inbox.mjs:84* 走 `fetch(..., { mode: 'no-cors' })`:这是跨源写、且我们**不需要**读响应 —— `no-cors` 下响应是…c/drop-mention/mention-inbox.mjs:99win.fetch(`${base}${base.includes('?') ? '&' : '?'}${q.toString()}`, { mode: 'no-cors', cache: 'no-store', keepalive: tr…- 看请求发往哪些域名。发往作者自己的后端是常见做法。
- 含混淆或编码代码
obfuscated-code需留意2 处命中dsh/client-panel/lib/client.js:7var q=Object.defineProperty;var we=Object.getOwnPropertyDescriptor;var xe=Object.getOwnPropertyNames;var Te=Object.proto…- 混淆本身不是恶意,但公开源码里出现大段混淆值得问一句为什么。
- R011 客户端可疑脚本
client-side-risk需留意2 处命中- client.js: postMessage 无 origin 校验; mention-inbox.mjs: postMessage 无 origin 校验
- 浏览器侧代码能改你看到的界面。确认改动范围符合插件用途。
- 运行时改写自身配置
modifies-own-manifest需留意1 处命中…t-panel/install-into-profile.mjs:341writeFileSync(join(pkgDir, "package.json"), JSON.stringify(pkgJson, null, 2) + "\n", "utf8");- 运行时改写自身配置会让下次启动的行为和你看过的源码不一致。
- 读取文件
reads-files一般189 处命中dsh/host/channel-owner.mjs:105parsed = JSON.parse(readFileSync(candidate.path, "utf8"));dsh/host/index.mjs:51const parsed = JSON.parse(readFileSync(join(profileDir, "package.json"), "utf8"));…t-panel/install-into-profile.mjs:76if (!existsSync(abs)) throw new Error(`closure: missing module ${rel}`);…t-panel/install-into-profile.mjs:77const text = readFileSync(abs, "utf8");- 读文件是绝大多数插件的正常工作方式,本身不构成顾虑。
- 读取环境变量
reads-env一般31 处命中dsh/host/index.mjs:63const raw = process.env.DSH_HOME;…t-panel/install-into-profile.mjs:187if (process.env.DSH_TEST_FORCE_CLIENT_FAIL === "1") {dsh/install.mjs:341const raw = options.dshHome || process.env.DSH_HOME || join(homedir(), ".dsh");dsh/install.mjs:342assertHarnessHome(raw, options.anyHome === true || process.env.DSH_ALLOW_ANY_HOME === "1");- 环境变量里常混有密钥。看它是否把整个 env 都读走。
- 动态加载模块
dynamic-import一般3 处命中dsh/preset/math-memory.mjs:4779const notes = await import("./note-tools.mjs");dsh/preset/note-tools.mjs:49const module = await internal.import("@deepseek-ai/dsh-tools", base, {});dsh/preset/note-tools.mjs:56const module = await import("@deepseek-ai/dsh-tools");- 动态导入本身无害,但会让依赖关系难以静态审阅。
逐条扫描明细
| 能力 | 标识 | 关注度 | 命中次数 |
|---|---|---|---|
| R010 向其他插件注入 | plugin-tree-injection | 高关注 | 2 |
| 可执行外部程序 | spawns-processes | 高关注 | 1 |
| 写入文件 | writes-files | 需留意 | 102 |
| 发起网络请求 | network | 需留意 | 2 |
| 含混淆或编码代码 | obfuscated-code | 需留意 | 2 |
| R011 客户端可疑脚本 | client-side-risk | 需留意 | 2 |
| 运行时改写自身配置 | modifies-own-manifest | 需留意 | 1 |
| 读取文件 | reads-files | 一般 | 189 |
| 读取环境变量 | reads-env | 一般 | 31 |
| 动态加载模块 | dynamic-import | 一般 | 3 |
这份报告的口径
扫描读的是包里的源码,全程不执行第三方代码。 本次读了 57 个文件,扫描于 2026-10-15。 命中次数只说明源码里出现过这类调用,不说明行为好坏——一个插件读写文件 500 次和 1 次 都会被记为「读取文件」。这是能力清单,不是信任评分,也不是安全结论: 没扫出来的能力可能只是写法没被规则覆盖。
依赖安全公告
已查询这个插件声明的全部依赖,没有匹配到已公开的安全公告。(含 DSH 框架包在内的 @deepseek-ai/* 不作查询——那是运行时自己的问题,不是插件的。)