lonelymoon87/dsh-guardian0

dsh-guardian

DSH 高危操作策略拦截、敏感输出脱敏与安全审查插件

AI 分析

核心用途是根据自定义规则拦截高危操作(如向生产环境执行命令),并对输出中的敏感 Token/密钥进行自动脱敏。适合企业级安全合规与隐私保护场景。

包名
dsh-guardian
版本
0.1.1
许可证
MIT
最近更新
2026年8月14日

安装

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:lonelymoon87/dsh-guardian

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.