⚔ Red-team tooling for DeepSeek Harness

DSH Purge — see what the harness does, not just what the model says

DSH Purge (dsh-purge) is a cybersecurity red-team plugin for the official DeepSeek Harness on your own machine. It separates the host policy layer — prompt rewriting, approval gates, sandbox policy and tool limits — from the model's own behavior, so controlled evaluation measures the right layer.

21runtime patches
v1.1.71dsh 0.2 line
MITopen source
DSH Purge dock showing Clean and Drill pages with the Apply control, beside a terminal running dsh-purge --status

Local · authorized · reversible · host-layer only

Two layers, separated

Harness does more than forward a prompt. DSH Purge isolates host-layer policy from the model so a block is a measurable signal, not a mystery refusal.

Clean page

Grouped patch status with Apply, Restore and Uninstall, a prompt editor, and multiple rule sets — all from a dock beside the session title.

Drill console

After an authorization gate: assets, skills and local environment for an exercise you are entitled to run — never public or third-party targets.

Fully reversible

Every target is backed up to .dshpurge.bak. Restore copies originals back; Uninstall reverts and removes the plugin.

Architecture diagram: rule library, local rules and workspace policy feed the dsh-purge engine, which patches the host layer while the model layer is measured separately
Why it exists

A host-layer block is not a model refusal

Asking only "will the model answer?" treats a host-layer policy decision as if it came from the model. The DeepSeek Harness rewrites prompts, gates approvals, enforces sandbox policy and manages session migration at runtime — all before and around the model.

DSH Purge patches only the local official @deepseek-ai packages on your machine so you can evaluate each layer on its own: which default policy is too tight, where a refusal actually originates, and how the harness behaves under a red-team exercise you are authorized to run.

  • Patches only local official Harness packages and local config
  • No public scanner, no attack kit for third-party sites
  • Keeps official capabilities — no second invented identity
See how it works →

⚠ Authorized, local use only

DSH Purge is for red-team research and robustness evaluation on an official Harness you are entitled to administer. Do not run it against targets without the owner's lawful written authorization, against public online systems, or against production workloads. See the responsible-use policy.

Get started

Run DSH Purge on your own Harness

Install into your local DeepSeek Harness, Apply on the Clean page, and start measuring the host layer separately from the model.