用于递归删除检查、提示注入、越狱和密钥泄漏检测的 DSH Host 插件。
DSH 适配
原生运行时
作者声明
安全审计
未审计
最后核验
2026-09-29
许可证
Apache-2.0
01它能帮你完成什么?
Guard DeepSeek Harness messages, tool arguments, results, and recursive delete commands against documented detection families.
Allow, ask, block, deny, or corrective-feedback decisions through official DSH seams, with a `/defend` summary and `defend_report` tool.
DeepSeek Harness operators who want deterministic safeguards around agent interactions and destructive shell commands.
Review detection activity without exposing matched text.
In-memory report totals and recent-match metadata without matched content.
Users who need a DSH command or tool surface for recent defense activity.
02如何接入 DeepSeek Harness?
前置条件
- Node.js `^22.19.0 || >=24.0.0`.
安装步骤
- 01
Run `dsh plugin --profile web add "github:PerryLink/dsh-defend#main"` or `dsh plugin --profile web add dsh-defend`.
$ dsh plugin --profile web add "github:PerryLink/dsh-defend#main"
- 02
Restart and run `dsh --profile web --dump-config | grep -A3 'id: dsh-defend'`.
$ dsh --profile web --dump-config | grep -A3 'id: dsh-defend'
验证接入成功
- Use `dsh --profile web --dump-config | grep -A3 'id: dsh-defend'` to verify the profile row.
回滚
- Run `dsh plugin --profile web remove dsh-defend`.
03DSH 适配与能力边界
Pure-host DeepSeek Harness plugin with destructive-delete and detection layers on official interception points.
Destructive-delete guard
Recursive delete shell commands at `tools/pre-execute`.→Refusal unless documented path conditions are met; dry-run markers pass.
Can deny or ask for guarded destructive shell commands.Detection layer
Inbound messages, tool arguments, and tool results.→Allow, ask, or block decisions at three documented interception points.
Can reject steps, deny tool execution, or provide corrective feedback.
04适合谁?何时不该用?
适合
- DeepSeek Harness operators who want deterministic safeguards around agent interactions and destructive shell commands.
- Users who need a DSH command or tool surface for recent defense activity.
不适合
- The plugin produces decisions on official seams but does not replace the sandbox or approval systems as enforcement authorities.
- Novel phrasing, lookalike-Unicode encodings, and multi-step attacks can evade the documented rule library.
- The documented opt-in unmarked session audit can make a session unresumable on affected hosts.
05兼容性、维护与安全提示
- The plugin produces decisions on official seams but does not replace the sandbox or approval systems as enforcement authorities.
- Novel phrasing, lookalike-Unicode encodings, and multi-step attacks can evade the documented rule library.
- The documented opt-in unmarked session audit can make a session unresumable on affected hosts.
Apache-2.0 · README-backed author documentation
06常见问题
dsh-defend 会替代 DSH 的沙箱或审批吗?
不会。README 说明它只在官方拦截点产生 deny、ask 和 block 决策;沙箱与审批系统仍是执行主体。
dsh-defend 会扫描什么?
README 记录的拦截点包括入站用户消息、工具参数和工具结果;删除防护在受保护工具执行前运行。
检测器能发现所有攻击吗?
不能。README 明确列出新颖措辞、形似 Unicode 编码和多步骤攻击可能形成检测缺口。
07相关的 DSH 工作流
cc-safety-net
作者 kenryu42
面向 AI 编程智能体的执行前安全防护插件,在工具调用前拦截破坏性 Git、文件操作和敏感文件访问,兼容多种编码 Agent 与命令行工具。
dsh-uumit-remote
作者 uumit-ai
为 DeepSeek Harness 提供远程访问能力,支持从其他设备连接和使用会话。
deltabox-lite
作者 delta-box
为 AI 编程代理提供轻量沙箱,可查看文件差异、提交更改或中止操作。
tencentmeeting-cli
作者 tencentcloud
腾讯会议命令行工具(CLI),基于腾讯会议开放平台 OAuth2 授权,支持会议管理、录制管理、参会报告等功能。
08数据与来源
**Prompt-injection, jailbreak, and secret-leak defense for DeepSeek Harness.**
页面基于项目公开文档、仓库元数据和 DSH Plugins 的结构化解析生成;最后核验于 2026-09-29。发现错误?提交更正。
最佳 DeepSeek Harness 插件
从全目录挑出的 12 个值得优先安装的插件,覆盖各个分类。
