AI Agent Hub
Back to plugins
🧩

dsh-secret-guard

admin-security Updated 2026.08.24

Run the following command in DeepSeek Harness:

dsh plugin install MkaliezZ/dsh-secret-guard

Paste the following prompt into your AI chat to install this plugin:

Run dsh plugin install MkaliezZ/dsh-secret-guard in DeepSeek Harness to install this secret guard plugin; source is available at https://github.com/MkaliezZ/dsh-secret-guard .

About this plugin

When a model generates tool-call arguments in DeepSeek Harness, it can inadvertently embed private keys, API tokens, or other sensitive payloads. If executed unchecked, those secrets may leak into logs, external services, or downstream systems. dsh-secret-guard intercepts at the tools/pre-execute hook, inspects the model-supplied arguments, and returns allow, ask, or deny before the tool body ever runs, keeping suspected secrets out of execution.

In v0.1 the guard detects common private-key, token, and key-naming patterns, flags obviously sensitive field names, and enforces a serialized payload size limit, failing closed when exceeded. An optional protectedTools scope narrows inspection to specific tools; an empty value means every tool is checked. A key design constraint: v0.1 does not rewrite or redact arguments, because DSH freezes execution identity and arguments before the policy layer, so mutating them inside a guard would violate the runtime contract.

The plugin suits teams and individual developers running DSH workflows that process user-supplied or externally sourced data and want a lightweight secret-leak checkpoint before tool execution. It is a heuristic detector, not a full DLP solution, and makes no guarantee that every credential format will be caught. For broader action-authorization requirements, compose it with a policy boundary such as AgentFuse.

Use Cases

  • Model-generated tool arguments may carry API keys or tokens and require interception before execution
  • Cross-tool chained calls need a unified sensitive-payload check on every argument
  • Workflows processing external user data must prevent secret leakage into logs or downstream systems

Best For

  • Teams running DSH workflows that process external or user-supplied data
  • Individual developers who need a lightweight secret-leak checkpoint
  • Platform engineers adding a pre-execution security layer to DSH tool chains