DSH Plugins Marketplace

DSH Plugins

Plugins

/

Security & Audit

/

dsh-honey-guard

d

dsh-honey-guard

Manifest valid

Replaces detected secrets (OpenAI, AWS, GitHub, PEM, Bearer) with deterministic, structurally valid honey tokens before they reach the model or the session file; adds manual marking for values the det

hasBundlePatch

dsh-honey-guard

DeepSeek Harness (DSH) 的蜜罐脱敏插件——在敏感值离开你的机器之前,把它们换成结构合法的假值(Honey-Token),模型、会话文件、日志里见到的全是假货。

它做什么

全自动,装上即生效:插件挂载 DSH 的 agent/pre-step 与 tools/post-execute 事件,对每一条出站消息(用户输入、模型思考、工具调用参数)做模式扫描,命中即替换:

检测器识别
sk- + 48 位OpenAI / DeepSeek 类 key
AKIA + 16 位AWS Access Key ID
ghp_ / github_pat_GitHub token
Bearer 后长 token请求头凭证
-----BEGIN PRIVATE KEY-----PEM 私钥

替换是确定性的:同一会话内同一真实值永远映射到同一蜜罐(模型不会看到两个名字),跨会话不可关联(两份脱敏记录无法被外部比对出用了同一凭证)。蜜罐结构合法——模型拿到 sk- 开头的假 key 不会起疑,只会得到一次正常的认证失败。

显式还原与手动标记

入站自动还原是刻意不做的:还原出的真值下一轮就会被模型再次看到,等于白脱敏。还原与扩展标记走显式工具:

工具用途
honey_mark把检测器认不出的值(内部 token、私有 key 格式)标记为敏感
honey_restore把蜜罐还原成真实值写回会话记录——用户可见,模型不可见(下一轮重新脱敏)
honey_stats值安全的聚合统计(映射数 / 替换数 / 还原数 / 金丝雀状态)

另有 Canary Trap:每个会话惰性注册一个永不参与替换的"死蜜罐",在其他会话的文本里出现即告警——说明有记录被跨会话搬运。

安装

dsh plugin --profile desktop add "file:<本项目路径>"

或手动放入 profile 的 node_modules 并在 dsh.profile.bundles 登记。构建与校验:

pnpm install
pnpm run check   # typecheck + vitest + tsdown build

架构要点

  • Admission-time 替换:出站脱敏发生在消息进入会话之前(agent/pre-step 返回的批次即入会内容),因此会话文件从源头就是蜜罐。
  • 区间合并替换:检测器区间与手动标记区间先对原文合并(重叠跳过、长值优先),再一次性 cursor 拼接——蜜罐永不进入被扫描文本。
  • 每会话独立映射:WeakMap<agent, scope> 按 agent 对象分桶,被回收自动清理;映射表纯内存,不落盘。
  • 值安全:日志、统计、审计事件(honey/restored)均不含真实值或蜜罐值。

License

MIT

Comments

Loading…

Similar plugins

dsh-token-vault

by YYfather

Secure credential vault for DeepSeek Harness: tokens never leave the host — the agent runs gh/npm/npx/node/git with the token injected in the environment. Manage from 设置 → 凭证库 / 市场 → 已安装.

Security & AuditManifest valid

★ 0

MIT

JavaScript

Aug 23, 2026

dsh plugin --profile web add @yyfather/dsh-token-vault

by tancheng33

Runtime security gate on the tool pipeline: denies calls naming hosts outside an egress allowlist, redacts credentials from results at the canonical value rather than only the rendered content, and ap

Security & AuditDevelopment & InfrastructureManifest valid

★ 1

↓ 95/wk

MIT

TypeScript

Sep 22, 2026

dsh plugin --profile web add dsh-egress-guard

by 7gzgn

发布前凭据泄漏扫描:别把 API key / token / 密码提交到公开仓库

Security & AuditTools & CapabilitiesManifest valid

★ 0

MIT

JavaScript

Oct 17, 2026

dsh plugin --profile web add dsh-leak-guard

by chenbin-dev

导入本地 Claude、Codex、Grok、Gemini、Copilot、OpenCode 与 CC Switch 配置。 为支持的官方供应商提供 OAuth 登录。 从 OpenAI 兼容网关的 /v1/models 与 /models 发现 CC Switch 模型。

Security & AuditTools & CapabilitiesNotifications & IntegrationsTerminal & ClientsManifest valid

★ 4

↓ 295/wk

NOASSERTION

JavaScript

Aug 21, 2026

dsh plugin --profile web add dsh-auth-everying

Taints the agent when tool results carry untrusted content, gates the privileged calls that follow, and refuses credentials passed to network-capable tools in every mode.

Security & AuditDevelopment & InfrastructureManifest valid

★ 0

dsh plugin --profile web add dsh-taintguard

by GooDAnDReaDY

GitHub operations for DeepSeek Harness: releases, tags, a guarded API pass-through, sanitized mirror publication, workflow runs and repository settings.

Security & AuditDevelopment & InfrastructureTerminal & ClientsManifest valid

★ 0

MIT

JavaScript

Oct 18, 2026

dsh plugin --profile web add @goodandready/dsh-github-ops