dsh-plugin-writing-guard
github.com/xmutfyh/dsh-plugin-writing-guard
v2.0.1
工具与效率
以 shell 执行命令写入文件启动伪终端
认证 L1已扫描 ✓健康 B/80周下载 760
Scientific writing & document integrity guard for AI-assisted research - prompt-guided argument economy with deterministic scientific, delivery, journal, and Word integrity checks.
该插件尚未翻译,显示作者原文。
academic-writingscientific-writingresearch-paperai-writingscientific-integrityjournal-fitdeepseek-harnessdocx
检测报告
关注度高。命中了不少能力模式,其中可能有需要留意的。逐条看下面的清单。
1高关注3需留意3一般17未命中
高关注需留意一般
能力清单
- 以 shell 执行命令
shell-exec高关注1 处命中scripts/install-extras.mjs:79execSync(`${cmd} -c "import docx; print(docx.__version__)"`, { stdio: 'pipe' })- 看命令字符串是拼出来的还是写死的。拼接用户输入才是真正的风险。
- 写入文件
writes-files需留意7 处命中lib/index.js:139await fs.mkdir(dir, { recursive: true });lib/index.js:141await fs.writeFile(tmp, JSON.stringify(data, null, 2), 'utf8');lib/index.js:142await fs.rename(tmp, stateFile);lib/index.js:659await fs.writeFile(tmpFile, replacementsJson, 'utf8');- 看写入位置。写自己的配置目录是正常的,写系统目录不是。
- 启动伪终端
spawns-pty需留意1 处命中scripts/install-extras.mjs:79execSync(`${cmd} -c "import docx; print(docx.__version__)"`, { stdio: 'pipe' })- 伪终端等于给了一个完整 shell。确认这是插件的核心功能。
- 清单可疑
manifest-obfuscation需留意1 处命中- 安装脚本:postinstall
- 清单被刻意写乱时,加载行为会难以预测。看原文而不是看渲染结果。
- 读取文件
reads-files一般14 处命中lib/index.js:74const raw = await fs.readFile(stateFile, 'utf8');lib/index.js:173return fs.readFile(filePath, 'utf8');lib/index.js:287const bibs = (await fs.readdir(dir)).filter((f) => f.toLowerCase().endsWith('.bib'));lib/index.js:289bibText = await fs.readFile(path.join(dir, bibs[0]), 'utf8');- 读文件是绝大多数插件的正常工作方式,本身不构成顾虑。
- 读取环境变量
reads-env一般9 处命中lib/index.js:154const pythonCmd = process.env.DSH_PYTHON ?? 'python3';lib/index.js:551const candidates = process.env.DSH_PYTHONlib/index.js:552? [process.env.DSH_PYTHON]scripts/install-extras.mjs:19if (process.env.DSH_HOME) return process.env.DSH_HOME- 环境变量里常混有密钥。看它是否把整个 env 都读走。
- 动态加载模块
dynamic-import一般5 处命中lib/index.js:153const { execFile } = await import('node:child_process');lib/index.js:549const { execFile } = await import('node:child_process');scripts/install-extras.mjs:69const { execSync } = await import('node:child_process')src/word_guard/__init__.py:12from .editor import (- 动态导入本身无害,但会让依赖关系难以静态审阅。
逐条扫描明细
| 能力 | 标识 | 关注度 | 命中次数 |
|---|---|---|---|
| 以 shell 执行命令 | shell-exec | 高关注 | 1 |
| 写入文件 | writes-files | 需留意 | 7 |
| 启动伪终端 | spawns-pty | 需留意 | 1 |
| 清单可疑 | manifest-obfuscation | 需留意 | 1 |
| 读取文件 | reads-files | 一般 | 14 |
| 读取环境变量 | reads-env | 一般 | 9 |
| 动态加载模块 | dynamic-import | 一般 | 5 |
这份报告的口径
扫描读的是包里的源码,全程不执行第三方代码。 本次读了 23 个文件,扫描于 2026-10-16。 命中次数只说明源码里出现过这类调用,不说明行为好坏——一个插件读写文件 500 次和 1 次 都会被记为「读取文件」。这是能力清单,不是信任评分,也不是安全结论: 没扫出来的能力可能只是写法没被规则覆盖。
依赖安全公告
已查询这个插件声明的全部依赖,没有匹配到已公开的安全公告。(含 DSH 框架包在内的 @deepseek-ai/* 不作查询——那是运行时自己的问题,不是插件的。)
可信度
80
健康分 B
扣分项下方逐条附证据
- -10被版本门禁拦下:与当前 dsh 基线不兼容major
- -10声明与实物不符:peer-static-import-unsatisfiedmajor:{'@deepseek-ai/dsh-tools': '^0.1.0-rc.6', '@deepseek-ai/dsh-llm': '^0.1.0-rc.6'}
认证等级 L1
- L0内容完整性✓sha512-k71MEGo3i+0HnQPz… 与本地 tarball 复算一致
- L1来源✓维护者 xmutfyh,仓库 xmutfyh/dsh-plugin-writing-guard(未做仓库审计)
- L2发行—被版本门禁拦下(与本站基线 dsh 版本不兼容)
- L3生态—声明与实物不符:peer-static-import-unsatisfied
- L4多方独立验证—本站不做第三方独立背书
评分口径与作者信息
从 100 分开始按规则扣减:fail −20 / major −10 / warn −5 / minor −2;star 数、下载量、LLM 输出都不参与评分
- 维护者
- xmutfyh
- 仓库
- https://github.com/xmutfyh/dsh-plugin-writing-guard
- 许可
- MIT
- 最后发布
- 2026-09-04
- 周下载
- 760
- star
- 46
扫描状态:已扫描。能力是事实,不是缺陷; 周下载与 star 只作参考,不参与评分。
认证等级核验的是这个包本身(内容指纹、来源、能否安装、声明是否属实);依赖漏洞是独立标注的,两者正交、不互相掩盖。可信 ≠ 无漏洞,上架 ≠ 推荐。
DSH