dsh-egress-guard
Run the following command in DeepSeek Harness:
dsh plugin install LKRCharon/dsh-egress-guard
Paste the following prompt into your AI chat to install this plugin:
Install with dsh plugin install LKRCharon/dsh-egress-guard; the source repository is at https://github.com/LKRCharon/dsh-egress-guard.
About this plugin
When building LLM workflows on DeepSeek Harness, system prompts, tool arguments, and conversation history often carry real API keys, database connection strings, or service tokens. A single configuration drift or prompt-assembly mistake can let live credentials ride along with a model request to a remote endpoint, and the developer is none the wiser.
dsh-egress-guard freezes the fully assembled request at the official llm/stream boundary and runs a deterministic scan over it. Using literal-prefix plus fixed-alphabet matching (no regex backtracking), it inspects every provider-facing field layer by layer: system prompts, message text, raw tool-call arguments, tool schemas, reasoning channels, stop sequences, and metadata. Built-in rules cover PEM private keys, mainstream cloud and SaaS tokens, bearer and basic-auth credentials, credentialed PostgreSQL, MySQL, MongoDB, and Redis URLs, and high-confidence assignment patterns. On a hit, it blocks the downstream model adapter call outright, and the matched content never appears in the error, the finding report, or the plugin log. Images, unknown content types, oversized, or unfreezable request graphs are all fail-closed by default. The entire flow is zero-network, zero-rewrite, and fully local.
If you run conversations, compactions, or session-title generation in DSH and your profile genuinely contains real keys or internal connection strings, this plugin is a low-intrusion egress fuse. It does not aim to replace a full secret scanner; it intercepts the most common credential-leak path before send, and in audit mode lets you safely observe request structure without exposing the original material.
Use Cases
- Block an outbound conversation, compaction, or session-title request that accidentally carries a live API key
- Inspect request structure in audit mode without exposing credential values in any log
- Add a single local egress fuse across a multi-provider DSH profile
Best For
- Engineering teams that manage real keys or internal connection strings in DSH profiles
- Security engineers who need a zero-network egress check for LLM workflows
- Independent developers running production-grade LLM pipelines on DeepSeek Harness rc.6
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.