前言¶
DSH 的插件生态偏「一切皆插件」:插件装进 profile 后,会以当前 dsh 进程的权限参与运行。对维护 profile 的人来说,单靠插件名和介绍页不够,还需要在 install 前看它声明和调用了什么,并在运行期盯住敏感行为。
@jieai/dsh-plugin-vet 就是针对这个流程:装前审计,运行时 watch。
这是什么¶
@jieai/dsh-plugin-vet 由 wulun811 维护,MIT 许可,目标是一句话:Audit deepseek-harness (DSH) plugins before install, guard them at runtime。
它不提供插件市场本身(catalog/distribution),也不是官方应用商店。默认配置是 alarm-only:reports only, blocks nothing;不会 auto-uninstall、kill processes、rewrite configs,也不会在默认下 block。
核心能力¶
下面按安装前后拆开看。
装前¶
- Audit DSH plugins before install
- Static verdict from deterministic scan
- Pre-install audit protocol
- Scorecard output for human/model decision
- Supply-chain checks (typosquat, OSV)
- Exfiltration and ransomware detection
- Integrity baseline
运行期¶
- Runtime guard / runtime watch
- T1 sentinel (memory/fd/child-process monitoring)
- T2 hooks (fs/child_process/network interception)
- N7 confirmation blocking
- Honeypot lures / canaries
安装¶
先确认 Node >= 22.19,然后把插件加到目标 profile:
dsh plugin --profile <profile> add @jieai/dsh-plugin-vet
这一步会做依赖解析和校验。第一次装进较大的 profile 可能需要几分钟。
如果使用本地 tarball:
dsh plugin --profile <profile> add ./jieai-dsh-plugin-vet-<version>.tgz
经过上面的步骤后,需要 mount 时在 cordis.patch.yml 中加入一个 insert mount entry:
- insert:
- id: plugin-vet
config:
mode: report
autoScan: true
这里 mode: report 对应默认的报告口径,autoScan: true 让装前扫描进入流程。
典型用法¶
如果要从默认报告进入运行期守卫,启用:
runtimeGuard: watch
启用后会得到:
- T1 sentinel (memory/fd/child-process monitoring)
- T2 hooks (fs/child_process/network interception)
- N7 confirmation blocking
N7 confirmation blocking 属于显式作用范围之一。若显式使用 deny mode 或 paranoid tier,则会发生 roll back plugin loads,并按 threshold block。
适用场景与注意¶
适合在 DSH profile 中安装插件前做审计,尤其是需要检查 supply chain、exfiltration / ransomware 相关行为、integrity baseline 和运行期敏感调用的场景。
注意几点:
- 它默认是监控 / 报告型工具,不替你执行处置。
- 它不提供 catalog/distribution,不要把它当成插件商店。
- 插件以当前 dsh 进程权限运行,安装前先看源码和 MIT 许可证。
runtimeGuard: watch、denymode、paranoidtier 都是显式作用范围,启用前确认自己理解拦截边界。
链接¶
- GitHub:https://github.com/wulun811/dsh-plugin-vet
- 目录页:https://www.skillhub.cn/plugins/wulun811/dsh-plugin-vet