diff --git a/.gitignore b/.gitignore
index 81209a4..0d8eddf 100644
--- a/.gitignore
+++ b/.gitignore
@@ -5,3 +5,5 @@ npm-debug.log*
_archive/
频道推广手册/
lib/default-prompt-inject.md
+lib/default-prompt-data.js
+default-prompt-inject.md
diff --git a/.npmignore b/.npmignore
index 26d608c..f236d18 100644
--- a/.npmignore
+++ b/.npmignore
@@ -1,2 +1,4 @@
lib/default-prompt-inject.md
+lib/default-prompt-data.js
+default-prompt-inject.md
频道推广手册/
diff --git a/README.md b/README.md
index 436d31d..6f494de 100644
--- a/README.md
+++ b/README.md
@@ -2,12 +2,12 @@
Version 1.1.8
- DeepSeek Harness jailbreak (破甲): every model can jailbreak; swap prompts per model. Default prompt for Chinese models — 小码酱. Please star ⭐ + Local official DeepSeek Harness cybersecurity red-team plugin: evaluate and harden host safety policy in a controlled local install; swap prompts per model. Default prompt for Chinese models — 小码酱. Please star ⭐
@@ -25,9 +25,7 @@ English | 中文
-- Channel t.me/LLM_PoJia -
+> 🌐 **Plugin hub:** [DeepSeek Harness Hub](https://deepseek.stream/plugins/dsh-purge) — official and community DeepSeek plugin market | discover and one-click install > Aligned with **dsh 0.1.5-rc.2** (Node.js **≥18**; Windows no-flash import hooks need **Node ≥22** `registerHooks`, older Node still gets file-level `windowsHide` patches). On other versions, unmatched originals stay pending or skipped. Nothing is rewritten blindly. > @@ -49,38 +47,55 @@ If dsh-purge helps you, a tip is welcome. --- -## 🛡️ Why a local harness purge +## 🛡️ Why cybersecurity red-teaming matters -Models now sit inside a local Agent / Harness. Prompts, approval gates, sandbox policy, and session migration all rewrite behavior at runtime. Asking “will the model answer” is not enough if the host layer kills a lawful eval request first. +As generative AI and large language models move into production, robustness, adversarial defense, and alignment safety are core cybersecurity research problems. A local Agent / Harness also rewrites prompts, approval gates, sandbox policy, and session migration at runtime. Asking “will the model answer” is not enough if the host layer kills a lawful eval request first. -1. **Map the host guardrail, not just the model.** Reversible patches on the installed `@deepseek-ai/*` packages show which refusals come from the model and which come from default copy, approval ladders, or session-format checks. -2. **Keep official capabilities; drop refusal locks.** No second invented identity. Persona is whatever you put in `prompt-inject.md`. -3. **Survive upgrades.** Patches re-apply after npm overwrites `node_modules`. Unmatched originals skip so a 0.1.5 tree is not smashed blindly. +1. **Map the defense boundary, then harden the guardrail.** Professional cybersecurity red-teaming on a controlled local official DeepSeek Harness install is how teams find guardrail failures, prompt-injection, and unexpected-behavior gaps — then feed those findings back into fine-tuning, input guardrails, and the system safety layer. +2. **Build an offense–defense eval loop.** Defense without a controlled red-team suite is guesswork. Reversible patches on the installed official `@deepseek-ai/*` packages show which refusals come from the model and which come from default copy, approval ladders, or session-format checks — a reproducible ruler for labs and auditors. +3. **Advance native model-security research.** The project aims to give academia and security engineering a transparent, local, reproducible baseline. Keep official capabilities; only adjust over-refusal policy for controlled security eval. No second invented identity, and official optimizations stay. -This is a local Harness plugin. It is not a public scanner and not an attack kit for third-party sites. +This is a **local official DeepSeek Harness cybersecurity red-team plugin**. It only touches **your** installed official `@deepseek-ai` packages and local config. It is **not** a public scanner, **not** an attack kit for third-party sites, and the repo does **not** ship malware, unauthorized-exploit scripts, or payloads aimed at the public internet. --- -> ### ⚠️ Strict Legal & Compliance Disclaimer -> -> **Zero-tolerance notice:** This project opposes and forbids any illegal activity. The authors do not support, encourage, or assist unauthorized network attacks, exploit use, data theft, unlawful access to computer systems, or generation of illegal content. -> -> 1. **Authorized, controlled scope only.** `dsh-purge` is a local DeepSeek Harness red-team research plugin and robustness-eval aid. **Do not run this project or its derived patches against targets, public online systems, or production services without the owner’s lawful written authorization.** All testing must stay on **your authorized local Harness install, offline local synthetic fixtures, authorized cyber-range / lab environments**. -> 2. **No illegal or prohibited use.** You must not use this project, directly or indirectly, to: -> - violate the Criminal Law of the PRC, the Cybersecurity Law, the Data Security Law, the Personal Information Protection Law, or any other applicable law; -> - conduct unauthorized intrusion, ransomware, destruction, credential stuffing, or malware distribution; -> - induce, generate, or spread content that is illegal (national security threats, terrorism, graphic violence, pornography/gambling, fraud, privacy or IP infringement, and any other legally prohibited category); -> - violate a model provider’s Terms of Service or Usage Policy. -> 3. **You bear all liability.** The project is provided under the MIT license **AS-IS**, with no warranty of completeness, safety, or fitness. **You alone are responsible for every download, deploy, run, modification, and redistribution, and for every input and output that follows** — civil, administrative, and criminal. Authors and contributors accept no direct, indirect, or joint liability for misuse. -> 4. **Breach terminates the license.** Anyone who uses this project for illegal attacks, malicious activity, or other violations loses the open-source license **automatically and irrevocably** from the moment of the violation. They must stop, permanently destroy all copies and derivatives, and face applicable legal consequences. -> 5. **No affiliation.** This is an independent open-source security-eval project. It is not affiliated with, partnered with, authorized by, or endorsed by DeepSeek or its affiliates. -> 6. **Use is consent.** Cloning, downloading, installing, redistributing, or running this code means you have read and accepted all of the above. If you do not agree, stop immediately and delete every copy. + + +Version 1.1.8
- DeepSeek Harness 破甲:让所有模型都能破甲,不同模型可换不同提示词。默认提示词面向国模「小码酱」。求 Star 收藏 ⭐ + 本机官方 DeepSeek Harness 网络安全红队评测插件:在受控本机环境评测并加固宿主安全策略,不同模型可换不同提示词。默认提示词面向国模「小码酱」。求 Star 收藏 ⭐
@@ -22,9 +22,7 @@ English | 中文
-- 频道 t.me/LLM_PoJia -
+> 🌐 **插件生态市场**:[DeepSeek Harness Hub](https://deepseek.stream/plugins/dsh-purge) — DeepSeek 官方与开源生态市场 | 插件发现与一键安装 > 对准 **dsh 0.1.5-rc.1**(Node.js **≥18**;Windows 无感路径依赖 **Node ≥22** 的 `registerHooks`,更低版本仍靠文件级 `windowsHide` 补丁)。其它版本原文对不上时会显示待应用 / 跳过,不会乱改文件。 > @@ -46,38 +44,55 @@ --- -## 🛡️ 为什么需要本地红队清洗 +## 🛡️ 网络安全红队基准评测的必要性(Why Red-Teaming Matters) -大模型已经进到本地 Agent / Harness:提示词、审批门、沙箱和会话迁移都会在运行时改写模型行为。只测「模型会不会答」不够,还要看宿主层有没有把合法评测请求掐死。 +在生成式人工智能与大语言模型(LLM)向各行业深度融合的背景下,模型的鲁棒性、对抗防御能力与系统对齐安全性已成为网络空间安全的核心研究课题。本地 Agent / Harness 还会在运行时改写提示词、审批门、沙箱和会话迁移,只测「模型会不会答」不够,还要看宿主层有没有把合法安全评测请求拦截掉。 -1. **暴露宿主护栏边界**:在本机已安装的 `@deepseek-ai/*` 包上做可回滚清洗,才能看清哪些拒绝来自模型,哪些来自 Harness 默认文案、审批阶梯或会话格式校验。 -2. **保住官方能力,只拆拒绝锁**:不另造第二套身份,不删官方优化;身份只认操作员自己的 `prompt-inject.md`。 -3. **升级可复现**:npm 覆盖 `node_modules` 后自动重打补丁;原文对不上就跳过,避免把 0.1.5 包改坏。 +1. **暴露防御边界,反哺安全护栏**:只有通过专业的网络安全红队对抗模拟(Red-Teaming),在受控本机环境深入探查官方 DeepSeek Harness 的防护失效、提示词注入与非预期行为,才能帮助安全团队精确定位防护盲区,从而在模型微调、输入过滤网关(Guardrails)与系统安全层实现前置加固。 +2. **构建攻防一体化防御体系**:缺乏受控红队评测用例的防御如同纸上谈兵。对本机已安装的官方 `@deepseek-ai/*` 包做可回滚安全评测补丁,才能分清哪些拒绝来自模型,哪些来自 Harness 默认文案、审批阶梯或会话格式校验,为企业与安全审计提供可复现的标尺。 +3. **推动大模型原生安全学术发展**:本项目旨在为学术界与安全工程领域提供透明、可复现的本机基准测试基线,共同推动 AI 基础设施抗对抗攻击、对齐与形式化验证技术演进。保住官方能力,只调整过度拒绝策略以便受控评测;不另造第二套身份,不删官方优化。 -本项目是本地 Harness 清洗插件,不是公网扫描器,也不是对第三方站点的攻击套件。 +本项目是**本机官方 DeepSeek Harness 网络安全红队评测插件**:只改使用者自己安装的官方 `@deepseek-ai` 包与本机配置,**不是**公网扫描器,**不是**对第三方站点的攻击套件,仓库内**不含**木马、未授权渗透脚本或针对外网的攻击载荷。 --- -> ### ⚠️ 严正法律免责与合规使用声明(Strict Legal & Compliance Disclaimer) -> -> **【零容忍严正申明】**:本项目坚决反对并严禁任何形式的违法犯罪行为。开发者绝不支持、不鼓励、不协助任何未授权网络攻击、漏洞利用、数据窃取、非法侵入计算机信息系统,或生成违法违禁内容的活动。 -> -> 1. **合法受控范围限定**:本项目(`dsh-purge`)定位为本地 DeepSeek Harness 的红队科研插件与鲁棒性评测辅助工具。**严禁在未经所有者合法书面授权的目标、公网在线系统或生产业务上使用本项目或其衍生补丁**。一切测试必须限制在**本机已授权安装的 Harness、离线本地合成靶标(Local Synthetic Fixtures)、授权网络安全演练靶场及合规实验室受控环境**中进行。 -> 2. **严禁违法与违禁用途**:使用者严禁利用本项目直接或间接从事: -> - 任何违反《中华人民共和国刑法》、《中华人民共和国网络安全法》、《中华人民共和国数据安全法》、《中华人民共和国个人信息保护法》等法律法规的行为; -> - 未经授权渗透、攻击公私机构计算机信息系统,实施勒索、破坏、撞库或传播恶意载荷; -> - 诱导、生成或传播危害国家安全、恐怖主义、暴力血腥、涉黄涉赌、诈骗、侵犯公民隐私或知识产权等法律明令禁止的内容; -> - 违反相关大模型提供商的《服务条款(Terms of Service)》与《滥用政策(Usage Policy)》。 -> 3. **使用者独立承担全部责任**:本项目依据 MIT 开源协议「按现状(AS-IS)」提供,开发者不对软件的完整性、安全性与适用性作任何明示或暗示保证。**使用者应对自身的全部下载、部署、运行、修改、传播行为,以及由此产生的全部输入与输出后果,承担独立、完全的民事、行政及刑事法律责任**。作者与贡献者不对使用者滥用承担任何直接、间接或连带责任。 -> 4. **违约即终止授权**:任何将本项目用于非法攻击、恶意活动或违规行为的个人或实体,其开源软件使用许可自违法违规行为发生之日起**自动且不可撤销地立即终止**。该主体须立即停止使用并永久销毁本项目的全部代码、脚本与衍生数据,并依法承担相应法律责任。 -> 5. **第三方独立性声明**:本项目属于完全独立的开源安全评测研究项目,与 DeepSeek 官方或其关联主体无任何隶属、商业合作、授权或官方背书关系。 -> 6. **同意即约束**:任何克隆、下载、安装、二次分发或运行本项目代码的行为,均视为已阅读并完全同意上述全部条款。若不同意,请立即停止使用并删除全部代码与文件。 + + +