MangShe3-0/dsh-plugin-guard ↗★ 0
dsh-plugin-guard
Read-only, offline-first security scanner plugin for DeepSeek Harness plugins.
安装
$
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:MangShe3-0/dsh-plugin-guard说明文档
阅读完整 README ↗在 Harness 中使用
把待审插件先下载或解压到当前工作区,然后要求 Harness:
使用 plugin_guard_scan 扫描 ./untrusted-plugin,先不要安装或运行它。
工具默认只允许扫描当前 DSH 会话中经过验证的 session.header.cwd,不会使用 DSH 服务进程的启动目录。相对路径从该会话 workspace 解析;没有有效 workspace 时工具会拒绝扫描。需要增加额外的只读扫描根目录时,由用户在启动 Harness 前显式设置:
export DSH_PLUGIN_GUARD_ROOTS="/absolute/review/inbox:/another/allowed/root"
这些目录只会扩展当前会话 workspace,不会启用 process.cwd() 兜底。这个限制用于防止模型把扫描器当成任意文件读取工具。