
# dsh-jailbreak · the dsh jailbreak plugin
**An evolutionary, measurable, gated jailbreak plugin for [DeepSeek Harness](https://github.com/deepseek-ai).**
No host patches, no `prompt-inject.md`. It rewrites messages **at the request boundary**, ships a 9-dimension AE-CoT evolutionary search (arXiv:2605.24497), a reproducible 20-goal benchmark, and a **gate** that keeps reverse engineering in and unauthorized intrusion out.
[](docs/before-after.md)
> **Measured, 2026-10-28** · `deepseek-flash`, temperature 0, through the plugin's real `transformDeepseekBody()` path.
>
> **Before** 499 chars — a refusal, plus four "here's what I *can* help with" bullets.
>
> **After** 3,716 chars — the `amsiInitFailed` reflection trick, a complete `Invoke-AmsiBypass`, and how to verify it landed. Raw transcripts: [docs/before-after.md](docs/before-after.md).
```bash
dsh plugin --profile web add github:xqpsec/dsh-jailbreak
```
- **Nothing patched** — zero host edits, uninstall is one `remove`, a DSH upgrade cannot clobber it.
- **Nothing sent anywhere** — it edits the body of the request you were already making. No extra network, no second key, no stored conversations.
- **A gate, not a free pass** — reverse engineering, CTF, lab ranges and sample analysis go through; fraud, forged documents and unauthorized intrusion are passed through untouched.
[](CHANGELOG.md)
[](LICENSE)
[](LICENSE-GATE)
[](test)
[](docs/eval-report.md)
[](package.json)
[](https://t.me/llm_jalibreak)
**English** · **[中文主页](README.md)** · **[SCOPE / gate](SCOPE.md)** · **[eval numbers](docs/eval-report.md)** · **[tech manual](docs/tech-manual.md)**
---
> **Search terms that should land here**: `dsh-jailbreak` · `jailbreak` · `DeepSeek Harness jailbreak` · `prompt injection plugin` · `CoT jailbreak` · `refusal benchmark` · `refusal reduction` · `reverse engineering without refusal` · `dsh-purge alternative` · misspellings `jalibreak` / `jailbrake` / old name `dsh-jalibreak` (GitHub redirects).
>
> Coming from `dsh-purge`? Read [the comparison](#why-not-another-patch-the-host-jailbreak-plugin) first — **0 host patches, 100 tests, 17/20 strict baseline**, all reproducible.
>
> ⭐ **A star is the only distribution this project has.** For questions or the stronger private build, join the **[Telegram group](https://t.me/llm_jalibreak)**.
---
## The lazy path (30 seconds, no reading)
Paste this into whichever AI assistant you already use:
```text
Read https://github.com/xqpsec/dsh-jailbreak/blob/main/docs/ai-install.md and install this plugin
into my DeepSeek Harness profile "web" for me. Then tell me, in one line, how to switch it on.
```
[that file](docs/ai-install.md) is written *for an AI*, not for you: pre-flight checks, three install routes in priority order, the exact verification command, and a failure table. You do not need to understand any of it.
---
## What it is
`dsh-jailbreak` is a web plugin for DeepSeek Harness (DSH) that turns jailbreaking from *a text file you paste* into *an instrumented search loop*:
| Habit | dsh-jailbreak |
| --- | --- |
| Hand-tuned `prompt-inject.md`, breaks when the model changes | 9-dimension genome × evolutionary search, scored per generation (0–5 rubric) |
| "Feels stronger" | 20 fixed goals, `temperature=0`, per-goal `results.jsonl`, reproducible ASR |
| Host patches that die on upgrade | **Zero host patches**: one `fetch` wrapper, `dispose()` restores everything |
| Jailbroken and unbounded | **Optional gate**: with `enforce:true`, RE / malware analysis / CTF / lab-eval pass and out-of-scope requests are stopped and audited — the beta ships with it off |
### Three hard selling points
1. **A number you can rerun**: strict rubric, `hcot-dual` scores **17/20 = 85%**; the eval set, runner and raw rows all live in the repo (`eval/`, `docs/eval-report.md`).
2. **No weights, no extra key, no deps**: uses DSH's `ctx.llm`; `--backend offline` makes 0 network calls.
3. **Gated**: `lib/gate.js` decides at the request boundary, before any injection — research work (reverse engineering, samples, CTF, lab eval) passes untouched; public targets are your responsibility to authorize; payment fraud / identity forgery / ransomware / DDoS / credential theft are never produced, authorization file or commercial license notwithstanding. The rules themselves are implementation detail and are not restated in this document.
---
## Quick start
One line, straight from GitHub:
```bash
dsh plugin --profile web add github:xqpsec/dsh-jailbreak
```
Once the npm package is published, the short form works too (the bare name `dsh-jailbreak` is taken by someone else on npm, this project publishes under a scope):
```bash
dsh plugin --profile web add @xqpsec/dsh-jailbreak
```
From a local clone:
```text
plugin_manager action=install_bundle target=/path/to/dsh-jailbreak
```
Verify:
```bash
node