dsh-secret-guard
开发工具 活跃维护

dsh-secret-guard

MkaliezZ/dsh-secret-guard

模型工具调用执行前自动拦截形似密文的异常载荷,采用故障关闭机制,精准校验传入的工具参数,一旦检测到疑似敏感参数的工具调用直接阻断,避免敏感信息泄露,无需额外配置即可生效。

0
Stars 标星
0
Forks 分支
0
Watchers 关注
0
Open Issues
TypeScript
主要语言
MIT
开源协议
13 KB
仓库大小
3 个月前
最后推送
一键安装扩展 / 插件指令
dsh plugin --profile web add github:MkaliezZ/dsh-secret-guard
git clone https://github.com/MkaliezZ/dsh-secret-guard.git
git clone git@github.com:MkaliezZ/dsh-secret-guard.git
README.md main

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