MangShe3-0/dsh-plugin-guard ↗★ 0
dsh-plugin-guard
Read-only, offline-first security scanner plugin for DeepSeek Harness plugins.
AI Analysis
核心用途为不可信插件的安全审计。适合在安装运行第三方插件前,需要让 AI 助手对其源码进行离线合规与风险扫描的用户。
Install
$
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:MangShe3-0/dsh-plugin-guardREADME
Read the full 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() 兜底。这个限制用于防止模型把扫描器当成任意文件读取工具。