浏览全部

其他 · v0.34.0

dsh-diff-approval

github.com/9087/dsh-diff-approval

能力可执行外部程序含混淆或编码代码写入文件

一个用于待处理变更审查的 DeepSeek Harness (DSH) 插件:它会自动跟踪每次成功的 edit、write 以及编辑器(str_replace_editor)变更,将其汇总到侧边栏的单个待处理列表中,其中每个文件的 diff 可以……

作者原文(英文)

A DeepSeek Harness (DSH) plugin for pending-change review: it automatically tracks every successful edit, write, and editor (str_replace_editor) mutation, folds them into a single pending list in the sidebar where each file's diff can be…

简介取自插件 README 开头,由 DeepSeek 模型翻译,仅供参考。

认证 L3已扫描 ✓健康 S/100周下载 1.8k
8 项能力
许可
MIT
发布
2026-10-11
维护者
9087_
插件 ID
1725

安装命令

dsh plugin --profile web add dsh-diff-approval@0.34.0

已试装 · 层已挂载

已在一个隔离的 profile 里真装过:包能装上,并且插件层挂载成功。这一条是实测结果,不是作者的声明。

检测报告

关注度高。命中了不少能力模式,其中可能有需要留意的。逐条看下面的清单。
1高关注4需留意3一般16未命中
高关注需留意一般

能力清单

  • 可执行外部程序spawns-processes高关注1 处命中
    • lib/index.js:8import { spawn } from "node:child_process";
    • 看它调用哪些程序。调用本机已有的工具是常见做法。
  • 含混淆或编码代码obfuscated-code需留意72 处命中
    • lib/types/annotate-skill.d.ts:19export declare const ANNOTATE_SKILL_CONTENT = "# \u7528\u5361\u7247\u7ED9\u4EE3\u7801\u505A\u6279\u6CE8\n\n\u6539\u52A8\…
    • lib/types/comment-skill.d.ts:24export declare const COMMENT_SKILL_CONTENT = "# \u56DE\u7B54\u4EE3\u7801\u6279\u6CE8\n\n\u6D88\u606F\u4EE5 `[\u8BC4\u8BB…
    • 混淆本身不是恶意,但公开源码里出现大段混淆值得问一句为什么。
  • 写入文件writes-files需留意4 处命中
    • lib/index.js:1197await io.mkdir(dirname(file), { recursive: true });
    • lib/index.js:1199await io.writeFile(staged, JSON.stringify(value), "utf8");
    • lib/index.js:1201await io.rename(staged, file);
    • lib/index.js:1799await rename(file, quarantined);
    • 看写入位置。写自己的配置目录是正常的,写系统目录不是。
  • 动态执行代码dynamic-code需留意1 处命中
    • lib/index.js:246schema.callback = new Function("return " + schema.callback)();
    • 看 eval / new Function 的入参来自哪里。常量字符串和用户输入是两回事。
  • R013 清单可疑manifest-obfuscation需留意1 处命中
    • 安装脚本: prepare
    • 清单被刻意写乱时,加载行为会难以预测。看原文而不是看渲染结果。
  • 动态加载模块dynamic-import一般21 处命中
    • lib/types/client/ColorPicker.d.ts:23}): import("react").JSX.Element;
    • lib/types/client/dsh-icons.d.ts:29export declare const IconListPenOutline16: ({ size, className }: primitives.IconProps) => import("react").JSX.Element;
    • lib/types/client/dsh-icons.d.ts:31export declare const IconChevronDownOutline14: ({ size, className }: primitives.IconProps) => import("react").JSX.Elemen…
    • lib/types/client/dsh-icons.d.ts:32export declare const IconChevronUpOutline14: ({ size, className }: primitives.IconProps) => import("react").JSX.Element;
    • 动态导入本身无害,但会让依赖关系难以静态审阅。
  • 读取文件reads-files一般17 处命中
    • lib/index.js:1307raw = await readFile(file, "utf8");
    • lib/index.js:1388names = await readdir(root);
    • lib/index.js:1417names = await readdir(root);
    • lib/index.js:1649raw = await readFile(file, "utf8");
    • 读文件是绝大多数插件的正常工作方式,本身不构成顾虑。
  • 读取环境变量reads-env一般2 处命中
    • lib/index.js:4503updateCheck ??= createUpdateCheck({ ...process.env.DSH_DIFF_APPROVAL_UPDATE_REGISTRY_URL === void 0 ? {} : { registryUrl…
    • 环境变量里常混有密钥。看它是否把整个 env 都读走。
逐条扫描明细
能力标识关注度命中次数
可执行外部程序spawns-processes高关注1
含混淆或编码代码obfuscated-code需留意72
写入文件writes-files需留意4
动态执行代码dynamic-code需留意1
R013 清单可疑manifest-obfuscation需留意1
动态加载模块dynamic-import一般21
读取文件reads-files一般17
读取环境变量reads-env一般2

这份报告的口径

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

可信度

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

认证等级 L3

  • L0静态结构与契约✓sha512-8SCwAi4dpDXbPS5Z… 与本地 tarball 复算一致,补丁与入口齐备
  • L1配置组合与依赖图✓跨包无 entry id 冲突,插入模块可解析,目录内 peer 满足
  • L2隔离沙箱冒烟✓隔离 profile 安装成功,2.8s,层已挂载;宿主带它启动(booted)
  • L3运行时健康监控✓抽样会话内未观测到外部进程 / 越界写 / 外连(2 个事件)
评分口径与作者信息

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

维护者
9087_
仓库
https://github.com/9087/dsh-diff-approval
许可
MIT
最后发布
2026-10-11
周下载
1.8k
star
9

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

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

DSH peer 依赖1 个cordis均为 @deepseek-ai/ 下的包
第三方依赖6 个
bundle patch./cordis.patch.yml
依赖安全公告21 条,见下方

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

等级依赖包编号摘要
严重dompurifyCVE-2026-41239DOMPurify has a SAFE_FOR_TEMPLATES bypass in RETURN_DOM mode
修复版本:3.4.0 详情
中dompurifyCVE-2026-65902DOMPurify: Hook mutation of `data.allowedTags` / `data.allowedAttributes` permanently pollutes `DEFAULT_ALLOWED_TAGS` / `DEFAULT_ALLOWED_ATTR`
修复版本:3.4.7 详情
中dompurifyCVE-2026-49458DOMPurify: Cross-realm IN_PLACE sanitization leaves executable markup intact via realm-bound `instanceof` checks
修复版本:3.4.6 详情
中dompurifyCVE-2026-49459DOMPurify: IN_PLACE mode preserves attributes of a clobbered root element, allowing XSS via attacker-controlled root DOM
修复版本:3.4.6 详情
中dompurifyCVE-2026-0540DOMPurify contains a Cross-site Scripting vulnerability
修复版本:2.5.9, 3.3.2 详情
中dompurifyCVE-2025-15599DOMPurify contains a Cross-site Scripting vulnerability
修复版本:3.2.7 详情
中dompurifyCVE-2026-41238DOMPurify: Prototype Pollution to XSS Bypass via CUSTOM_ELEMENT_HANDLING Fallback
修复版本:3.4.0 详情
未分级dompurifyCVE-2026-65903DOMPurify's ADD_TAGS function form bypasses FORBID_TAGS due to short-circuit evaluation
修复版本:3.4.0 详情
未分级dompurifyCVE-2026-75838DOMPurify: IN_PLACE hook removal leaves a detached subtree executable, causing XSS
修复版本:3.4.13 详情
未分级dompurifyCVE-2026-109345DOMPurify: IN_PLACE returns a force-removed rawtext root whose text carries attacker markup — pure HTML reparse executes
修复版本:3.4.16 详情
未分级dompurifyCVE-2026-66010DOMPurify: `CUSTOM_ELEMENT_HANDLING` bypasses `afterSanitizeElements` for allowed custom elements.
修复版本:3.4.12 详情
未分级dompurifyCVE-2026-65913DOMPurify USE_PROFILES prototype pollution allows event handlers
修复版本:3.3.2 详情

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

元数据

主页https://github.com/9087/dsh-diff-approval#readme
仓库最近提交2026-10-15
仓库创建2026-08-16

返回首页