插件目录 / Developer / dsh-secret-guard
dsh-secret-guard
未验证 MkaliezZ
功能简介
Fail-closed secret-like payload guard for DSH tool calls: inspects model tool arguments at tools/pre-execute.
未验证 — 尚未实测
Fail-closed secret-like payload guard for DSH tool calls: inspects model tool arguments at tools/pre-execute. 尚未验证——请自行安装测试。
「未验证」表示我们的自动化 CI 尚未安装过该插件。功能描述与版本兼容性均为作者声明。这不是安全审计,也不代表对第三方代码的背书。
README
dsh-secret-guard
A fail-closed secret-like payload guard for DeepSeek Harness (DSH) tool calls.
The plugin inspects model-supplied tool arguments at tools/pre-execute and returns allow, ask, or deny before the tool body runs. v0.1 deliberately does not rewrite/redact arguments: DSH freezes execution identity and arguments before policy, so mutating them inside a guard would violate the runtime contract.
v0.1
- detects common private-key/token/key patterns;
- detects obvious sensitive field names;
- bounds serialized payload size and fails closed above the configured limit;
- optional tool-name scope (
protectedTools); empty means inspect every tool; actionOnFinding: block|ask;- no raw secret values in the denial reason.
Non-claims
- heuristic secret detection, not complete DLP;
- no guarantee every credential format is detected;
- no argument redaction in v0.1;
- not a sandbox or malware detector;
- should be composed with a policy boundary such as AgentFuse when broader action authorization is required.
Development
npm test
License
MIT
安装
装一次目录插件,之后本站所有插件都能让 DeepSeek Harness 自动找、自动装:
dsh plugin add dshbase-catalog 然后对 agent 说「帮我装 dsh-secret-guard」,它会在目录里找到并自动安装。文档:dshbase-catalog · 已验证场景包。
该插件是 GitHub 源码(未发 npm)——直接从仓库装:
Web profile:
dsh plugin --profile web add github:MkaliezZ/dsh-secret-guard Headless(CLI)profile:
dsh plugin --profile headless add github:MkaliezZ/dsh-secret-guard 实测报告
尚未 L3 验证——若已跑过,见下方失败备注。