Registers one agent tool, plugin_guard, that statically scans a DSH plugin package before it is installed and reports a verdict with the reasons: a missing or broken dsh.bundle.patch, a missing dsh.permissions block, install scripts, dangerous APIs and obfuscation, dependency risk, and source that is not indexed and therefore cannot be verified. Read-only: the scanned code is never imported, installed, evaluated or run.
Install
# from npm (prebuilt)
dsh plugin --profile web add dsh-plugin-guard-tool
# from GitHub (first run asks for allowBuilds approval — follow the hint, retry)
dsh plugin --profile web add github:RyeSama/dsh-plugin-guard#path:/plugins/dsh-guard-tool
Any plugin you install runs third-party code with your own permissions — it can read your files, use your credentials, and reach the network, and tool approvals don’t sandbox it. GitHub-sourced plugins also run build scripts at install time — pnpm blocks those until you allow them, so an install can stop with ERR_PNPM_GIT_DEP_PREPARE_NOT_ALLOWED or ERR_PNPM_IGNORED_BUILDS; dsh prints the exact key to add under allowBuilds in your profile’s pnpm-workspace.yaml, and the install works on the next run. Allowing a build is a trust decision: only install sources you trust, and pin a commit (github:owner/repo#sha).
README
A DSH plugin bundle that gives the agent one tool: plugin_guard.
Ask it to check a package before it joins your profile, and it answers with the same verdict, reasons and next command the CLI prints:
> scan ../dsh-plugin-gate before I install it
FAIL 0/100 · 1 high · 1 medium · 2 low
HIGH security/dangerous-api Evaluates code at runtime (lib/rules.js:136)
Next: read the flagged lines before installing; drop --ignore-scripts if the
package needs an install step you did not review
The scan is static and read-only. It never imports, installs, evaluates or runs the code it looks at, and it never writes to the package.
Install
dsh plugin --profile desktop add dsh-plugin-guard-tool
Or from a checkout, without going through npm:
dsh plugin --profile desktop add link:$PWD/plugins/dsh-guard-tool
After the profile restarts the agent has plugin_guard; nothing appears in the
desktop UI, because this bundle ships no client code.
Requires DSH >=0.2.0-rc.1 <0.3.0-0, declared both in peerDependencies and in
dsh.engines.dsh. @deepseek-ai/dsh-tools comes from the host; the bundle only
imports it.
What the tool accepts
| argument | type | meaning |
|---|---|---|
target |
string, required | a plugin directory (./my-plugin) or an npm package name (dsh-plugin-gate) |
json |
boolean | return the full machine-readable report instead of the summary |
What it does not do
- It does not install, block, or sandbox anything. A DSH plugin runs in the host process; the guard is governance and admission, not isolation.
- It does not fetch the trust index of the profile's CLI. The tool reads the
package on disk and reports;
dsh-plugin-guard indexanddsh-plugin-guard scanremain the CLI's job. - It cannot see what a dependency does, or what the plugin does at runtime.
Files
index.js host half: defineTool + ctx.tools.register
spec.js the tool definition, free of any DSH import (unit tested)
cordis.patch.yml the bundle patch that mounts the host half
locale/{en,zh}.json title and description shown by the host
icon.svg the icon shown by the host
spec.js is kept separate on purpose: the tool's behaviour is testable with
node --test test/smoke.mjs and no DSH installation.
MIT.
Links
More in this category
kenryu42/cc-safety-net★ 2167
Pre-execution guard that blocks destructive Git and filesystem commands and access to secrets such as SSH keys and .env files before a tool call runs.
ADWMC/helm-d#helmd★ 1670
Security-analysis plugin for DeepSeek Harness: 33 tools spanning six security domains, evidence/reporting and toolbox, plus the case lifecycle, routing and tool ledger; a session-bound case workflow with an evidence chain, E-id validation and reproducible findings; 362 on-demand references; three hot-swappable persona profiles; and a four-tab workbench (armor / case / intercept / about) with case-state recovery after context compaction.
SeaOf0/dsh-redteam-model★ 944
Authorized-security DSH collection: nine work modes (redteam coordinator, pentest, code audit, binary analysis, attack-defense, AV evasion, incident response, cloud security, CTF solving) and fifteen runtime plugins, managed from a settings page with one-click deploy, install, update and uninstall.
toby-bridges/api-relay-audit★ 939
Runs local security audits of AI API relays and LLM proxies from DeepSeek Harness, producing Markdown reports for prompt injection, model substitution signals, tool-call rewriting, error leakage, stream integrity, and profile-gated Web3 risks.
howmp/dsh-pentest★ 625
Authorized pentest mode for DeepSeek Harness — exploration chain, assets and findings with a Web view.
ECNU/EduWork#dsh-auto-approval★ 467
Opt-in review of shell and file-tool sandbox-escalation requests using rules and a user-configured SystemOne-compatible service; uncertain or failed reviews retain manual confirmation.
Community comments
Comments are public GitHub Discussions. Loading them connects to GitHub and Giscus; a GitHub account is required to post.