dsh-secret-guard
DiscoveredFail-closed secret-like payload guard for DSH tool calls: inspects model tool arguments at tools/pre-execute.
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
Comments
Loading…
Similar plugins
by sjh9714
Observe identical tool failures and optionally pause the next model step in DeepSeek Harness.
★ 0
MIT
JavaScript
Oct 4, 2026
dsh plugin --profile web add dsh-retry-guardby GooDAnDReaDY
Fail-closed runtime tool-call loop guard for DeepSeek Harness.
★ 3
↓ 344/wk
MIT
JavaScript
Oct 20, 2026
dsh plugin --profile web add @goodandready/dsh-agent-loop-guardby ZhijiangTang
DSH plugin: block dangerous shell commands and secret leakage before execution (tools/pre-execute veto)
★ 0
↓ 58/wk
MIT
JavaScript
Aug 16, 2026
dsh plugin --profile web add dsh-safeguardby MkaliezZ
Dependency-installation guard for DeepSeek Harness: classifies package-manager commands as ALLOW, ASK, or BLOCK before execution.
★ 0
TypeScript
Aug 29, 2026
dsh plugin --profile web add @mkaliezz/dsh-dependency-firewallString-matches tool-call input arguments, blocks dangerous tool calls (deny) or allows them with an injected warning (warn), and ships a full rules-management panel.
★ 0
dsh plugin --profile web add @jypjypjypjyp/dsh-guardrailby fufu1437
DeepSeek Harness (DSH) plugin: declare shell commands in Settings, and every one becomes a tool the model can call directly.
★ 0
MIT
JavaScript
Oct 17, 2026
dsh plugin --profile web add @fufu1437/dsh-model-commands