返回目录

dsh-defend

精选清单收录维护状态: 活跃

perrylink/dsh-defend

提示注入、越狱与密钥泄露防御插件,支持允许/询问/阻止拦截与脱敏审计。

前往 GitHub项目主页
$ dsh plugin --profile web add "github:PerryLink/dsh-defend#main"

25

星标

1

Fork

TypeScript

语言

Apache-2.0

许可证

2026-08-16

创建于

2026-11-01

最近推送

用于递归删除检查、提示注入、越狱和密钥泄漏检测的 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`.

安装步骤

  1. 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"

  2. 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 适配与能力边界

DSH 适配原生运行时

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.
2026-08-162026-09-25v0.3.16

Apache-2.0 · README-backed author documentation

06常见问题

dsh-defend 会替代 DSH 的沙箱或审批吗?

不会。README 说明它只在官方拦截点产生 deny、ask 和 block 决策;沙箱与审批系统仍是执行主体。

dsh-defend 会扫描什么?

README 记录的拦截点包括入站用户消息、工具参数和工具结果;删除防护在受保护工具执行前运行。

检测器能发现所有攻击吗?

不能。README 明确列出新颖措辞、形似 Unicode 编码和多步骤攻击可能形成检测缺口。

08数据与来源

  • 作者声明github.com85473a6b67c8…

    **Prompt-injection, jailbreak, and secret-leak defense for DeepSeek Harness.**

页面基于项目公开文档、仓库元数据和 DSH Plugins 的结构化解析生成;最后核验于 2026-09-29。发现错误?提交更正。

🏆

最佳 DeepSeek Harness 插件

从全目录挑出的 12 个值得优先安装的插件,覆盖各个分类。

DSH Plugins 是独立的 DeepSeek Harness 插件目录,与 DeepSeek 官方无关,也不代表官方背书。第三方插件未经安全审计,安装前请审查源码。

每周获取最新的 DeepSeek Harness 插件,绝不滥发。