AI Agent Hub
Back to plugins
🧩

dsh-plugin-guard

admin-security Updated 2026.08.18

Run the following command in DeepSeek Harness:

dsh plugin install MangShe3-0/dsh-plugin-guard

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

Run dsh plugin install MangShe3-0/dsh-plugin-guard inside DeepSeek Harness to install it into the profile that actually launches the Web UI; full source code is available at https://github.com/MangShe3-0/dsh-plugin-guard

About this plugin

Installing third-party plugins into DeepSeek Harness carries a real risk: a single package can embed prompt-injection payloads, credential-stealing chains, or destructive scripts that only become visible once the plugin is active. dsh-plugin-guard addresses this by performing a deterministic, fully offline static scan of the plugin files before they are loaded, returning a graded verdict of REVIEWABLE, CAUTION, or DO_NOT_INSTALL so you never have to execute untrusted code to discover a problem.

The scanner covers a broad set of threat classes, including prompt injection with bilingual hidden directives and tool-description poisoning, file ransomware and bulk destruction, credential and environment-variable exfiltration chains, supply-chain risks such as download-and-execute install scripts and unpinned dependencies, dynamic execution and privilege escalation like eval, subprocess, and disabled TLS verification, Unicode zero-width and bidirectional control-character spoofing, and DSH metadata parseability. Every scan is read-only, uses lstat to skip symlinks, and enforces hard caps on file size, total bytes, file count, and finding count. No network access and no API key are required, and scan evidence is truncated to prevent large hostile payloads from being re-injected into the model context.

It is well suited to developers, operators, and security reviewers who regularly install community plugins into Harness, as well as teams that want a lightweight, automatable gate in their plugin-acceptance workflow. A standalone CLI mode lets you scan a local directory without launching the Web UI at all. It is not a substitute for sandboxing, egress control, or human code review, but it adds a low-cost, repeatable checkpoint at the most critical moment: right before a plugin is activated.

Use Cases

  • Scan a community plugin for prompt injection, credential exfiltration, and destructive payloads before installation
  • Add an automated static security gate to a CI/CD plugin-acceptance pipeline
  • Run a quick offline security check on a local plugin directory without launching the Web UI

Best For

  • Developers who frequently install third-party plugins into DeepSeek Harness
  • Operations or security team members responsible for plugin admission and review
  • Teams looking to incorporate plugin security scanning into collaborative automation workflows