dsh-file-review
github.com/left0ver/dsh-file-review
v0.8.8
界面与主题
写入文件动态执行代码R013 清单可疑
认证 L3已扫描 ✓健康 S/100周下载 683
1. 本插件支持标准模式、PTC模式、创造模式、**暂时不支持极简模式**。 2. 可以通过`Diff`面板审查 Agent 刚刚修改的每个文件。 3. 支持撤销操作,目前支持对编辑文件、新增文件等操作进行撤销。**暂不支持对删除的文件进行撤销操作。**
作者原文(英文)
Review DeepSeek Harness file changes in native sidebar tabs
中文简介由 DeepSeek 模型翻译,仅供参考。
code-reviewdeepseek-harnessdiffdsh-plugin
检测报告
有一定能力。命中了若干能力模式,大多是插件正常工作时会用到的。
3需留意2一般19未命中
高关注需留意一般
能力清单
- 写入文件
writes-files需留意6 处命中lib/index.js:220await handle.writeFile(image.text, "utf8");lib/index.js:232await unlink(temp).catch(() => {});lib/index.js:240await handle.writeFile(target.text, "utf8");lib/index.js:246await rename(temp, target.filename);- 看写入位置。写自己的配置目录是正常的,写系统目录不是。
- 动态执行代码
dynamic-code需留意1 处命中lib/client.js:149new Function("");- 看 eval / new Function 的入参来自哪里。常量字符串和用户输入是两回事。
- R013 清单可疑
manifest-obfuscation需留意1 处命中- 安装脚本: prepare
- 清单被刻意写乱时,加载行为会难以预测。看原文而不是看渲染结果。
- 动态加载模块
dynamic-import一般11 处命中…ient/FileReviewSettingsCard.d.ts:14export declare function FileReviewSettingsCard({ view, setWordWrap, setDiffLayout, t, useFileReviewSettings, }: FileRevi……/types/client/FileReviewTab.d.ts:35export declare function FileReviewTab({ sessions, uiConversation, sessionId, projectRoot, params, visible, syncComments,……/types/client/ProducedFiles.d.ts:19export declare function ProducedFilesTail(props: ProducedFilesTailProps): import("react").JSX.Element | null;…/types/client/ProducedFiles.d.ts:21export declare function ProducedFiles({ matched: reviews, openFile, openReview, inspectChanges, applyChanges, turn, seq,…- 动态导入本身无害,但会让依赖关系难以静态审阅。
- 读取文件
reads-files一般3 处命中lib/index.js:56const bytes = await readFile(filename);lib/index.js:208const current = await readFile(image.filename);lib/index.js:572const bytes = await readFile(filename);- 读文件是绝大多数插件的正常工作方式,本身不构成顾虑。
逐条扫描明细
| 能力 | 标识 | 关注度 | 命中次数 |
|---|---|---|---|
| 写入文件 | writes-files | 需留意 | 6 |
| 动态执行代码 | dynamic-code | 需留意 | 1 |
| R013 清单可疑 | manifest-obfuscation | 需留意 | 1 |
| 动态加载模块 | dynamic-import | 一般 | 11 |
| 读取文件 | reads-files | 一般 | 3 |
这份报告的口径
扫描读的是包里的源码,全程不执行第三方代码。 本次读了 39 个文件,扫描于 2026-10-15。 命中次数只说明源码里出现过这类调用,不说明行为好坏——一个插件读写文件 500 次和 1 次 都会被记为「读取文件」。这是能力清单,不是信任评分,也不是安全结论: 没扫出来的能力可能只是写法没被规则覆盖。