artemiroshnichenko/dsh-plugins--packages-dsh-guard0

dsh-guard

Security guard for DeepSeek Harness: monotonic deny on secret paths and approval gates for destructive shell commands

AI 分析

提供敏感文件路径拦截和高危 Shell 命令(如 terraform apply)二次确认。适合对本地数据安全和系统稳定性有高要求的安全敏感型用户。

パッケージ
dsh-guard
バージョン
0.1.0
ライセンス
MIT
最終更新
2026/09/09

インストール

検証済み bundle がないか、互換性チェックに失敗しています。先にリポジトリの説明を読んでください。 README 全文を読む ↗

ドキュメント

README 全文を読む ↗

Configuration

Add the plugin to your ~/.dsh/cordis.patch.yml:

- insert:
    - id: guard
      name: dsh-guard
      config:
        # Additional path patterns to restrict
        denyPaths:
          - "~/company-secrets/**"
          - "**/.vault-token"

        # Additional commands requiring user confirmation
        askCommands:
          - id: terraform-apply
            re: "\\bterraform\\s+apply\\b"
            reason: "infrastructure deployment via terraform apply"

        # Output warnings on intercepted actions
        logDecisions: true