xiangshu2026/dsh-alpha-guard ↗★ 1

dsh-alpha-guard

Policy-layer guard for DeepSeek Harness: read whitelist, sensitive-path deny list, dangerous-command blocking, subagent isolation, install approval and malware static audit. A first line of defense, not an antivirus.

Package
dsh-alpha-guard
Compatibility
Unverified
Version
1.0.0
License
MIT
Last updated
Oct 31, 2026

Install

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:xiangshu2026/dsh-alpha-guard

配置

路径:%USERPROFILE%\.dsh\alpha-guard\config.json (首次加载自动生成;改完下一次工具调用即生效,不用重启)

完整字段见 config.example.json。常用项:

字段说明
read.allowRoots读取白名单根目录
read.denyPaths永远拒绝读取(优先级高于白名单)
read.denyNamePatterns按文件名拒绝(*.kdbx、id_rsa)
write.denyPaths禁止写入 / 删除
commands.modedeny(默认)/ warn(只记录不拦,排障用)
subagent.allowWebfalse = 子代理完全断网
malware.blockAt拦下的风险分阈值,默认 30。调低更严格但误报更多
malware.notifyOnlytrue = 只告警不拦
enabledfalse 临时停用
failClosed插件内部异常时是否拒绝(默认 false,异常时放行并记日志)

config.json 被列为「禁止工具写入」,防止被提示注入自我解除防护。 要改请手动编辑。