dsh-purge: DeepSeek Harness Red Team and Penetration Assessment Plugin

Introduction

DeepSeek Harness (DSH) is the official desktop and web application that rewrites prompts at runtime, enforces approval gates, applies sandbox policies, and handles session migration. When the only question asked is “will the model respond,” host-level blocking is often misattributed as model refusal, making it impossible to distinguish between policy enforcement and the model’s own limitations. dsh-purge decouples these two layers on a local installation, enabling controlled evaluation and troubleshooting of whether default policies are overly restrictive.

What It Is

dsh-purge is a network-security red-team plugin for the official DeepSeek Harness, maintained as an independent archive branch at yayabxa-spec/dsh-purge-A. It is maintained from the base of YuJunZhiXue/dsh-purge 1.1.71 and does not share upstream commit history, release cadence, or versioning lines. The plugin only operates on the user’s local official @deepseek-ai packages and local configuration; it does not modify the Harness source tree, nor is it designed for public-internet scanning or attacking third-party systems.

Core Features

  • dsh-purge dock: A button next to the session title opens a right-hand panel containing two tabs—Clean and Drill.
  • Clean tab: Displays patch status grouped by rule set; supports Apply / Restore / Uninstall, prompt editing, and multiple rule sets.
  • Drill tab: After authorization, can access assets, skills, and the local environment; intended exclusively for hosts you manage, offline targets, or written-authorization exercises.
  • Host policy management: Provides default copies, permission policies, and tool restrictions while preserving official capabilities; does not fabricate additional identities.
  • Startup check: The plugin verifies and re-applies patches at startup; after npm overwrites node_modules, no manual file editing is required.
  • Discovery mechanism: No hardcoded drive letters are used; the configuration location is resolved in the order $DSH_HOME → .dsh adjacent to the dsh binary → ~/.dsh.

Installation & Activation

  • Prerequisite: Node.js ≥18 (≥22 required for a flash-free environment on Windows).
  • Both the one-click install from the official Hub and the command-line install use the npm package dsh-purge.
  • After installation, add the plugin to the corresponding configuration file, then apply changes via the Apply button on the Clean tab.
  • The official web profile uses profile web; the official desktop EXE (DeepSeek Harness 0.2.0-rc.2) uses profile desktop. Both must be installed and applied separately.

Typical Workflow

  1. Open the applicable configuration file in DSH (web or desktop).
  2. Click dsh-purge next to the session title and navigate to the Clean tab.
  3. Select a rule set, edit the prompts as needed, and click Apply.
  4. After a successful Apply, restart DSH; the injected changes take effect in new conversations. An incomplete Apply will not trigger a restart.
  5. To roll back or uninstall, use Restore or Uninstall on the Clean tab.

Use Cases & Cautions

  • Suitable for red-team evaluation, policy stress-testing, and prompt-injection research on a local official Harness.
  • The plugin runs with the permissions of the current DSH process; review the source code and license before installing.
  • The project is non-profit and open source; commercial sale, paid resale, or use in illegal/grey-market activities is strictly prohibited.
  • Must not be used for scanning, probing, intrusion, or attack traffic directed at the public internet or unauthorized systems.
  • Intended for use on a local official Harness only; the target is the user’s own local software—not third-party websites, servers, or accounts.

In Summary

dsh-purge provides the ability to isolate host-level policy from model refusal on a local official Harness, making it a useful tool for red-team operators and security researchers. For more details and source code, see the catalog page and the GitHub repository.

羽毛球分组比赛记分
小程序二维码

欢迎使用《羽毛球分组比赛记分》微信小程序

Xiaoye