信任面板:把 dsh 信任插件族九个通道(注入拦截、写拒绝、出网拦截、custody 链校验、工具面/系统提示词漂移、残留扫描、压缩遗忘约束、profile 组成)聚合成右侧栏一块仪表盘——一个状态灯 + 事件卡片,把引擎术语翻译成非安全背景用户能看懂并知道要不要处理的句子;read/egress 引擎随包自带 npm 依赖,未装兄弟插件也能工作,缺失的通道仅显示未安装。
安装
# npm 包(预构建)
dsh plugin --profile web add dsh-trust-panel
# GitHub 源码(首次需按提示配置 allowBuilds 构建授权后重试)
dsh plugin --profile web add github:zhengqiuyang/dsh-trust-panel
装任何插件都等于在你的机器上跑第三方代码,权限和你本人一样大——能读你的文件、用你的凭据、访问网络,工具审批管不到它。GitHub 来源的插件还会在安装时执行构建脚本——pnpm 默认拦截,所以安装可能停在 ERR_PNPM_GIT_DEP_PREPARE_NOT_ALLOWED 或 ERR_PNPM_IGNORED_BUILDS;dsh 会打印出需要添加的确切键名,把它加进该 profile 的 pnpm-workspace.yaml 的 allowBuilds 下,重跑一次即可装上。放行构建本身就是一次信任判断:请只安装可信来源,并尽量锁定 commit(github:owner/repo#sha)。
README
该插件的 README 只有英文版本。
dsh-trust-panel
Plain-language trust dashboard — nine channels, one status light, zero jargon
dsh plugin --profile web add dsh-trust-panel
If this helps you, please give it a star — it helps others find it.
Part of the DSH trust layer — ten deterministic checks, no LLM in the trust path.
One plain-language dashboard for the dsh trust family in your DeepSeek Harness (dsh) web sidebar: every interception, denial, drift and forgotten constraint across nine channels, translated into sentences a non-security user can read and act on. Zero LLM calls.
What you see
flowchart LR
A[Agent tool calls] --> B[9 deterministic channels]
B --> C{Any violation?}
C -- yes --> D[Red light + event cards]
C -- no --> E[Green light]
A status light, nine channel rows, and event cards — that's it:
- 🟢 All clear — nothing suspicious
- 🟡 Caught a few things for you — all handled, nothing to do
- 🔴 {n} thing(s) worth a look (below) — each such card carries a Got it button; acknowledging it clears the state, and the light falls back on its own
Every event answers the same four questions in order: who, what they tried, what we did about it,
whether you must act. Engine jargon (INSTR_OVERRIDE, hash-chain digests, surface drift) stays in the
expandable detail; the headline is a sentence like:
Something the agent read asked it to send your credentials somewhere. Flagged for review.
A long conversation was summarized — the agent forgot 2 of your instructions. Reported so you can restate them.
The tools available to your agent changed since the last checkpoint. 1 removed: janitor_scan.
A first-run intro card explains the light and the row semantics in one glance; it dismisses with one click and stays dismissed.
Bilingual (zh/en)
The panel follows the DSH i18n system: events travel from the host as translation keys +
params, the client renders them through its zh/en dictionaries with the host's locale service
(language switches live, browser language as fallback). A regression test pins the contract: every
key the host can produce must exist in both dictionaries.
State-like events (tool-surface / prompt / composition drift) carry a content-derived stable id: acknowledging one sticks across polling, and a genuinely new drift arrives as a genuinely new card.
The nine channels
| Channel | Source | What it watches |
|---|---|---|
| What the agent reads | dsh-read-guard | prompt injection in files and fetches |
| What the agent changes | dsh-pr-gate | writes outside the promised scope |
| The activity record | dsh-attest-chain | tampering with the custody ledger (verified live) |
| The tools it can use | dsh-mcp-test | registry drift vs baseline |
| Leftovers in your workspace | dsh-janitor | scan verdicts |
| Where data is sent | dsh-egress-gate | destinations outside the allow list |
| The instructions it starts with | dsh-prompt-drift | system-prompt changes |
| The plugins that are loaded | dsh-freeze | profile composition |
| What it remembers | dsh-compaction-guard | constraints lost to compaction |
Channels report not installed when their plugin/data source is absent — the panel degrades
gracefully and still works standalone: the read/egress engines run from the panel's own
npm dependencies, so injection and egress events appear even without the sibling plugins.
Install
dsh plugin --profile web add dsh-trust-panel
Configuration (in cordis.yml): eventsPath (panel event log), maxEvents, and the
allow/deny domain lists used by the built-in egress mirror.
Design notes
- The trust path stays deterministic — the panel only reads files and harness events; it never calls a model.
- Translation, not display — the engine terminology the family logs internally is mapped to plain sentences in
translate.ts; the mapping is unit-tested, so a rule rename cannot silently regress the wording. - Poll, don't push (v0.1) — the client polls
/trust-panel/api/summaryevery 5 s; a WebSocket upgrade can come later without changing the model. - Web client modules are not plain ESM — dsh's web runtime loads client halves through its
window.__ModuleLoader__module table (react arrives via that table'srequire, not a bundler). This package authors its client directly in that format and ships it unbuilt; a rolldown build is unnecessary at this size. Undocumented upstream, learned the hard way. - Native sidebar tabs are address-driven — registering a tab kind shows nothing until the
sidebarRightcontroller opens it; the panel callsopenTabonce per session so the light is visible out of the box.
Kill criteria
If the family's engines change their ledger formats in incompatible ways and the sync cannot be maintained, this panel should be retired rather than show stale or wrong translations — a trust UI that lies is worse than none.
Compatibility
- Verified on DSH 0.2.x (source snapshot 0.2.1-alpha.2, 2026-10-19): disposable-profile
install → boot → right-sidebar tab compose →
/trust-panel/api/summaryresponds with live aggregation (including a true-positive tool-surface drift detection during the verification boot), Chinese rendering verified in-browser, acknowledge flow verified across poll cycles by browser automation. - Node ≥ 20.
License
MIT
链接
同类插件
kenryu42/cc-safety-net★ 2167
执行前守卫,在工具调用运行前拦截破坏性 Git 与文件系统命令,以及对 SSH 密钥、.env 等机密文件的访问。
ADWMC/helm-d#helmd★ 1670
DeepSeek Harness 的安全分析插件:33 个工具覆盖六大安全域、证据/报告与工具集,并提供案件生命周期、路由和工具账本;按会话绑定的案件工作区支持证据链、E 编号校验与可复现结论(repro_cmd);内置 362 篇按需参考、三档可热切换人设,以及带案件状态恢复的破甲 / Case / 拦截 / 关于四页工作台。
SeaOf0/dsh-redteam-model★ 944
面向授权安全研究的 DSH 合集:九个工作模式(redteam 总控、渗透测试、代码审计、二进制分析、攻防评估、免杀对抗、应急溯源、云安全攻防、CTF 解题)与十五个运行时插件,设置页管理台支持一键部署、安装、更新与卸载。
toby-bridges/api-relay-audit★ 939
从 DeepSeek Harness 对 AI API 中转站和 LLM 代理运行本地安全审计,生成 Markdown 报告,覆盖提示词注入、模型替换信号、工具调用改写、错误泄漏、流完整性和按 profile 启用的 Web3 风险。
howmp/dsh-pentest★ 625
面向 DeepSeek Harness 的授权渗透模式:以探索链路记录目标、线索、资产与漏洞,并在 Web 中可视化展示。
ECNU/EduWork#dsh-auto-approval★ 467
按需启用规则和用户配置的 SystemOne 兼容服务,审查命令及文件工具的沙箱越界申请;不确定或失败时保留人工确认。
社区评论
评论公开保存在 GitHub Discussions。加载评论会连接 GitHub 和 Giscus;发表内容需要 GitHub 账号。