浏览全部

界面与主题 · v0.4.4

dsh-tdai-memory

github.com/Scorp1o117/dsh-tdai-memory

能力写入文件发起网络请求含混淆或编码代码

DeepSeek Harness 的 TencentDB Agent Memory 移植:L0 对话捕获 → L1 结构化记忆提取 → L2 场景/L3 画像,自动召回注入 + 记忆/对话搜索工具;复用现有 ~/.memory-tencentdb/memory-tdai 数据;附 Web UI 设置栏。

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

dshdsh-plugindeepseek-harnessmemorytencentdbagent-memoryragvector-search
认证 L1已扫描 ✓健康 S/100周下载 671
7 项能力
许可
MIT
发布
2026-10-17
维护者
scorp1o117

安装命令

dsh plugin --profile web add dsh-tdai-memory@0.4.4

未检测

这个包的 tarball 里确实有 dsh.bundle.patch,补丁文件存在且可解析。但「有补丁」是静态检查的结果,不是装过——它能不能在这台机器上装成,还没有验证。

检测报告

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

能力清单

  • 写入文件writes-files需留意46 处命中
    • vendor/tdai/utils/backup.js:41await fs.mkdir(destDir, { recursive: true });
    • vendor/tdai/utils/backup.js:45await fs.copyFile(srcFile, path.join(destDir, destName));
    • vendor/tdai/utils/backup.js:75await fs.mkdir(destDir, { recursive: true });
    • vendor/tdai/utils/backup.js:77await fs.copyFile(path.join(srcDir, file), path.join(destDir, file));
    • 看写入位置。写自己的配置目录是正常的,写系统目录不是。
  • 发起网络请求network需留意8 处命中
    • …r/tdai/core/store/bm25-client.js:63const resp = await fetch(`${this.baseUrl}/health`, {
    • …r/tdai/core/store/bm25-client.js:80const resp = await fetch(`${this.baseUrl}${path}`, {
    • vendor/tdai/config.js:9import { normalizeDisableThinking } from "./utils/no-think-fetch.js";
    • …dor/tdai/core/store/embedding.js:287const resp = await fetch(fetchUrl, {
    • 看请求发往哪些域名。发往作者自己的后端是常见做法。
  • 含混淆或编码代码obfuscated-code需留意1 处命中
    • vendor/tdai/utils/sanitize.js:290const stripped = escaped.replace(/[\x00-\x08\x0b\x0c\x0e-\x1f]/g, "");
    • 混淆本身不是恶意,但公开源码里出现大段混淆值得问一句为什么。
  • 读取文件reads-files一般48 处命中
    • …r/tdai/core/hooks/auto-recall.js:94const raw = await fs.readFile(personaPath, "utf-8");
    • vendor/tdai/utils/backup.js:63entries = await fs.readdir(srcDir, { withFileTypes: true });
    • vendor/tdai/utils/backup.js:97entries = await fs.readdir(parentDir, { withFileTypes: true });
    • vendor/tdai/utils/backup.js:133const entries = await fs.readdir(from, { withFileTypes: true });
    • 读文件是绝大多数插件的正常工作方式,本身不构成顾虑。
  • 接触凭据或密钥credentials一般31 处命中
    • client.js:213var BASIC_KEYS = ["llm.baseUrl", "llm.apiKey", "llm.model", "embedding.baseUrl", "embedding.apiKey", "embedding.model"];
    • client.js:377type: f.type === "password" ? "password" : f.type === "number" ? "number" : "text",
    • …dor/tdai/core/store/embedding.js:337if (!config.apiKey) {
    • …dor/tdai/core/store/embedding.js:350this.apiKey = config.apiKey;
    • 看它读取哪些凭据、发往哪里。用于登录自己的服务是正常的。
  • 读取环境变量reads-env一般4 处命中
    • index.js:158const verbose = !!process.env.DSH_TDAI_DEBUG;
    • index.js:202baseUrl: cfg.llm.baseUrl || process.env.TDAI_LLM_BASE_URL || "",
    • index.js:203apiKey: cfg.llm.apiKey || process.env.TDAI_LLM_API_KEY || "",
    • index.js:204model: cfg.llm.model || process.env.TDAI_LLM_MODEL || "deepseek-v4-flash",
    • 环境变量里常混有密钥。看它是否把整个 env 都读走。
  • 动态加载模块dynamic-import一般4 处命中
    • …ai/utils/clean-context-runner.js:66// ── Core import (mirrors voice-call/core-bridge.ts — dist/ only, no jiti) ──
    • …ai/utils/clean-context-runner.js:122const mod = await import(pathToFileURL(distPath).href);
    • …dor/tdai/core/store/embedding.js:56const defaultImportLlama = () => import("node-llama-cpp");
    • …r/tdai/utils/pipeline-factory.js:297const { queryMemoryRecords } = await import("../core/record/l1-reader.js");
    • 动态导入本身无害,但会让依赖关系难以静态审阅。
逐条扫描明细
能力标识关注度命中次数
写入文件writes-files需留意46
发起网络请求network需留意8
含混淆或编码代码obfuscated-code需留意1
读取文件reads-files一般48
接触凭据或密钥credentials一般31
读取环境变量reads-env一般4
动态加载模块dynamic-import一般4

这份报告的口径

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

可信度

100 健康分 S 扣分项下方逐条附证据
  • 0没有可扣分的项

认证等级 L1

  • L0静态结构与契约✓sha512-vH51lRG8EbEBHvg8… 与本地 tarball 复算一致,补丁与入口齐备
  • L1配置组合与依赖图✓跨包无 entry id 冲突,插入模块可解析,目录内 peer 满足
  • L2隔离沙箱冒烟—尚未试装
  • L3运行时健康监控—未抽样(本层是抽样检测:没有会话不等于干净)
评分口径与作者信息

从 100 分开始按规则扣减:fail −20 / major −10 / warn −5 / minor −2;star 数、下载量、LLM 输出都不参与评分

维护者
scorp1o117
仓库
https://github.com/Scorp1o117/dsh-tdai-memory
许可
MIT
最后发布
2026-10-17
周下载
671
star
8

扫描状态:已扫描。能力是事实,不是缺陷; 周下载与 star 只作参考,不参与评分。

认证等级只回答四件事:包本身是否完整可解析(L0)、能不能与别的插件组合(L1)、隔离环境里装不装得上并起得来(L2)、抽样运行时有没有异常(L3)。依赖漏洞、仓库存活、下载量都不参与评级,只作为独立信号标注。可信 ≠ 无漏洞,上架 ≠ 推荐。

DSH peer 依赖2 个dsh-settingsdsh-tools均为 @deepseek-ai/ 下的包
声明 DSH 版本>=0.2.0-rc.2 <0.3.0 || 0.2.1-rc.1 || 0.2.1-rc.2
Node 要求>=22.18
第三方依赖8 个
bundle patch./cordis.patch.yml
依赖安全公告34 条,见下方

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

等级依赖包编号摘要
严重undiciCVE-2026-13697undici vulnerable to cross-user information disclosure and parse-time crash via degenerate private cache directives
修复版本:7.29.0, 8.9.0 详情
严重undiciCVE-2025-22150Use of Insufficiently Random Values in undici
修复版本:5.28.5, 6.21.1, 7.2.3 详情
严重undiciCVE-2026-6734undici vulnerable to cross-origin request routing via SOCKS5 proxy pool reuse
修复版本:7.28.0, 8.2.0 详情
严重undiciCVE-2026-9697undici vulnerable to TLS certificate validation bypass via dropped requestTls in SOCKS5 ProxyAgent
修复版本:7.28.0, 8.5.0 详情
严重undiciCVE-2026-85152undici vulnerable to cross-origin cache poisoning via missing origin isolation in interceptors
修复版本:8.10.2 详情
严重undiciCVE-2026-84961undici vulnerable to TLS certificate validation bypass via dropped connect options in BalancedPool
修复版本:7.29.1, 8.10.2 详情
中undiciCVE-2026-84933undici vulnerable to cross-user cookie disclosure via Set-Cookie caching in shared caches
修复版本:7.29.1, 8.10.2 详情
中undiciCVE-2026-1525Undici has an HTTP Request/Response Smuggling issue
修复版本:6.24.0, 7.24.0 详情
中undiciCVE-2026-9675undici WebSocket client vulnerable to denial of service via cumulative fragment bypass
修复版本:8.5.0 详情
中undiciCVE-2026-85024undici vulnerable to Denial of Service via unhandled error in WebSocket permessage-deflate decompression
修复版本:6.28.1, 7.29.1, 8.10.2 详情
中undiciCVE-2026-84890undici vulnerable to Denial of Service via unbounded decompression of compressed responses
修复版本:7.29.1, 8.10.2 详情
中undiciCVE-2026-1527Undici has CRLF Injection in undici via `upgrade` option
修复版本:6.24.0, 7.24.0 详情

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

元数据

仓库最近提交2026-10-17
仓库创建2026-08-13

返回首页