lonelymoon87/dsh-guardian ↗★ 0
dsh-guardian
DSH 高危操作策略拦截、敏感输出脱敏与安全审查插件
AI 分析
核心用途是根据自定义规则拦截高危操作(如向生产环境执行命令),并对输出中的敏感 Token/密钥进行自动脱敏。适合企业级安全合规与隐私保护场景。
安装
$
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:lonelymoon87/dsh-guardian说明文档
阅读完整 README ↗Configuration
- id: guardian
name: dsh-guardian
config:
profile: standard
rules:
- name: production-host
pattern: production\\.internal
action: ask
reason: production target requires review
redaction:
enabled: true
patterns:
- label: internal-token
pattern: INT_[A-Z0-9]{12}
Regular-expression flags may contain only i, m, s, and u. Invalid expressions and labels fail during plugin loading.