xqpsec/dsh-jailbreak
dsh jailbreak - DeepSeek Assistant 破甲插件(DSH 破甲 / 越狱 / 破甲提示词):请求边界注入,模型不再一开口就是「我不能」。20 类合并 ASR 45.0%、覆盖率 19/20、良性能力 Δ=0.0pt(24/24 判分);0 处宿主补丁、默认关闭、off 逐字透传、每次改写落 manifest 与 promptSha256 可审计。旧名 dsh-jalibreak
What it solves
When you ask a large language model for something useful — like reverse-engineering a binary, writing a CTF exploit, or analyzing a malware sample — it often refuses and gives you a compliance lecture instead of the executable answer you need. This plugin makes models "get the job done first" by rewriting the outbound request before it leaves your DeepSeek Harness instance — and it does this without patching a single line of host source code.
How it works
The plugin intercepts outbound HTTP requests to LLM endpoints (OpenAI-style /chat/completions, /completions, /messages, /responses, and Gemini :generateContent) and injects extra content into the request body: a system prompt plus a static "chain of thought" trajectory placed in the assistant channel. Each request is first checked by a gate (valve) component — research-type requests (reverse engineering, CTF, malware analysis) pass through; out-of-scope requests (payment fraud, forgery, ransomware, DDoS, credential theft) are not injected, and only an audit line is logged.
The core strategy is "seed-prim": pre-fill the assistant channel with an in-progress code snippet (header + first half of the first module). Evaluations on kimi-k3.1-pro show the answer-success rate climbing from 0.0% (raw), to 19.6% (primitive), to 45.0% (seed-prim) across 20 research categories. There are also switchable preset prompts (route / universal / creative / engine-v2 / DeepSeek / Kimi / GLM / Qwen variants) chosen per request domain, and a two-level automatic retry: if the first answer looks like a refusal, the plugin re-sends with a stronger trajectory and a direct-delivery instruction; if refused again, it strips location/platform words and re-sends in an isolated context — at most 2 retries.
Who it's for
Security researchers, red-teamers, reverse engineers, CTF players, and AI-safety researchers who want to work through refusal-heavy tasks on DeepSeek Harness, or who want reproducible jailbreak evaluations with a fixed 20-target set, temperature=0, and strict judging — the full eval scripts and raw results are in the repo.
Highlights
- Zero host patches: only wraps fetch; uninstall = delete one package; DSH upgrades don't break it
- Reproducible numbers: 0.0% → 19.6% → 45.0% success rate over three arms; 17/20 baseline on a fixed 20-target set under strict scoring
- Optional gate/valve: defaults to off (enforce:false); flip one field to true to block out-of-scope requests
- Does not touch your API key: only rewrites the request body you were about to send; no extra network calls, no conversation logging to disk
- Supports five endpoint shapes and four protocol families; zero npm dependencies, Node >= 20, 215/215 tests pass
- Ships a CLI doctor command, a GUI panel, 6 agent tools, and a /ab slash command
- Main repo licensed AGPL-3.0-only; gate components separately MIT
Related
- Project
- Project
- Project
- Project