返回目錄

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 外掛,絕不濫發。