dsh-secret-guard
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
Related Plugins
A security red-team prompt plugin for DeepSeek-V4 that uses code-formal mapping and zero-trigger system prompts to enable unconditional output, intended for authorized testing and research only.
Adds an Auto approval mode on the official workspace-write sandbox, classifying semantic risks, asking when ambiguous, and denying destructive operations.
Undo/rollback system for DSH: config & plugin snapshots, one-click undo/redo/restore, message-level revert, secret masking, safe mode, and offline WebUI/GUI/CLI rescue tools for when DSH won't start.
Packages all 87 SKILL.md files from upstream reverse-skill as a DeepSeek Harness plugin that auto-registers them for authorized reverse engineering, penetration testing, and security research.