@jieai/dsh-plugin-vet:DSH 插件裝前審覈與運行時守衛

前言

DSH 的插件生態偏「一切皆插件」:插件裝進 profile 後,會以當前 dsh 進程的權限參與運行。對維護 profile 的人來說,單靠插件名和介紹頁不夠,還需要在 install 前看它聲明和調用了什麼,並在運行期盯住敏感行爲。

@jieai/dsh-plugin-vet 就是針對這個流程:裝前審計,運行時 watch。

這是什麼

@jieai/dsh-plugin-vet 由 wulun811 維護,MIT 許可,目標是一句話:Audit deepseek-harness (DSH) plugins before install, guard them at runtime。

它不提供插件市場本身(catalog/distribution),也不是官方應用商店。默認配置是 alarm-only:reports only, blocks nothing;不會 auto-uninstall、kill processes、rewrite configs,也不會在默認下 block。

核心能力

下面按安裝前後拆開看。

裝前

  • Audit DSH plugins before install
  • Static verdict from deterministic scan
  • Pre-install audit protocol
  • Scorecard output for human/model decision
  • Supply-chain checks (typosquat, OSV)
  • Exfiltration and ransomware detection
  • Integrity baseline

運行期

  • Runtime guard / runtime watch
  • T1 sentinel (memory/fd/child-process monitoring)
  • T2 hooks (fs/child_process/network interception)
  • N7 confirmation blocking
  • Honeypot lures / canaries

安裝

先確認 Node >= 22.19,然後把插件加到目標 profile:

dsh plugin --profile <profile> add @jieai/dsh-plugin-vet

這一步會做依賴解析和校驗。第一次裝進較大的 profile 可能需要幾分鐘。

如果使用本地 tarball:

dsh plugin --profile <profile> add ./jieai-dsh-plugin-vet-<version>.tgz

經過上面的步驟後,需要 mount 時在 cordis.patch.yml 中加入一個 insert mount entry:

- insert:
  - id: plugin-vet
    config:
      mode: report
      autoScan: true

這裏 mode: report 對應默認的報告口徑,autoScan: true 讓裝前掃描進入流程。

典型用法

如果要從默認報告進入運行期守衛,啓用:

runtimeGuard: watch

啓用後會得到:

  • T1 sentinel (memory/fd/child-process monitoring)
  • T2 hooks (fs/child_process/network interception)
  • N7 confirmation blocking

N7 confirmation blocking 屬於顯式作用範圍之一。若顯式使用 deny mode 或 paranoid tier,則會發生 roll back plugin loads,並按 threshold block。

適用場景與注意

適合在 DSH profile 中安裝插件前做審計,尤其是需要檢查 supply chain、exfiltration / ransomware 相關行爲、integrity baseline 和運行期敏感調用的場景。

注意幾點:

  • 它默認是監控 / 報告型工具,不替你執行處置。
  • 它不提供 catalog/distribution,不要把它當成插件商店。
  • 插件以當前 dsh 進程權限運行,安裝前先看源碼和 MIT 許可證。
  • runtimeGuard: watch、deny mode、paranoid tier 都是顯式作用範圍,啓用前確認自己理解攔截邊界。

鏈接

  • GitHub:https://github.com/wulun811/dsh-plugin-vet
  • 目錄頁:https://www.skillhub.cn/plugins/wulun811/dsh-plugin-vet
羽毛球分组比赛记分
小程序二维码

欢迎使用《羽毛球分组比赛记分》微信小程序

小夜