Preface¶
In the DSH ecosystem, plugins can extend the capabilities of agents and development environments. However, once a third-party package is installed, it may exhibit behaviors such as running install hooks, reading local credential paths, making outbound network connections, or executing external commands. Runtime permission tools typically intervene only “after” execution has begun; dependency audit tools focus on the dependency tree of “your own project” rather than what “the package itself” contains in its code.
Here we introduce dsh-tool-vet (npm package name @deepwhale-cn/dsh-tool-vet, repository feely0208/dsh-tool-vet). Before installing a third-party plugin or package, it performs a static review of the target directory, enumerates capabilities that warrant caution, and provides the file, line number, and rationale. It does not draw conclusions of “safe / unsafe,” leaving the judgment to you.
What is this¶
Maintained by feely0208, categorized under admin-security, currently version 0.1.0, licensed under MIT. The plugin’s positioning in one sentence: Statically review what a third-party plugin/package will do before installing it—executing commands, reading sensitive paths, sending data outwards, and running automatic scripts during installation.
The README explicitly defines boundaries: it is not a sandbox (does not block execution), not a runtime permission approval system, and not a vulnerability database comparison (that is the responsibility of dsh-dep-audit). It also does not make the final determination for you; it only lists capabilities.
The division of labor with dsh-dep-audit can be understood as follows:
dep-audit = Checks the [dependency tree] of [your own project]
tool-vet = Reviews the [code capabilities] of [a third-party package itself]
Community directory page: skillhub.cn/plugins/feely0208/dsh-tool-vet. DSH plugins are collected by the community directory and are not officially affiliated with DeepSeek / High-Flyer.
What it checks (Six Rules)¶
Every hit provides: which file, which line, the code snippet on that line, and the rule basis.
| Rule | What it checks | Severity |
|---|---|---|
VET-INSTALL-SCRIPT |
Automatic execution upon installation (preinstall / install / postinstall) |
High |
VET-CRED-PATH |
Credential paths like ~/.ssh, ~/.aws, ~/.npmrc appearing in code |
High |
VET-OBFUSCATION |
Concatenated execution, excessively long encoded strings (MITRE ATT&CK T1027) | High |
VET-OUTBOUND |
Will send data over the network | Medium |
VET-EXEC |
Will execute external commands | Medium |
VET-DEP-SOURCE |
Dependencies sourced outside the registry (git: / http: / file:) |
Medium |
The criteria are “capabilities worth being cautious about,” not legal compliance clauses; the basis comes from official documentation and public threat models.
Installation and Activation¶
Requires DSH >=0.1.0-rc.6 and Node >=18. Install via the official README under the web profile:
dsh plugin --profile web add @deepwhale-cn/dsh-tool-vet
Before installing any DSH plugin, you should review the source code and license yourself; plugins run with the permissions of the current dsh process. This article does not replace your own security assessment.
Typical Usage¶
Use via the CLI dsh-tool-vet after installation.
Review a local directory (e.g., source code of a plugin that hasn’t been installed yet):
dsh-tool-vet --root /path/to/some-plugin
View the built-in demo: The README explains this is a fake plugin that “looks normal but actually reads private keys and sends them out,” used to cross-reference the six rules:
dsh-tool-vet --demo
List rules and rationale:
dsh-tool-vet --list-rules
Generate an HTML report:
dsh-tool-vet --root /path/to/some-plugin --html
The demo package under --demo exposes: execution of scripts/setup.js upon installation, reading paths like ~/.ssh/id_rsa, execution via new Function() after base64 decoding, sending POST requests to telemetry.example-collector.net, use of child_process, and installing dependencies directly from git—the README emphasizes that these can be seen before installation.
Scenarios and Boundaries¶
Who it is for: Developers and administrators in DSH or similar environments who intend to introduce third-party plugins, skill packs, or tool directories; those who wish to perform a capability surface scan before npm install or dsh plugin add to decide whether to trust the source or install in isolation.
Boundaries (from README):
- Static review only. Paths dynamically constructed in code or code pulled from the network at runtime cannot be scanned.
- Does not judge intent. For example, reading
.sshmight be a normal capability for an SSH tool; the report prompts you to confirm, it does not condemn. - Does not recursively inspect dependencies. It only reviews the code of this specific package; for the dependency tree, please use companion tools like
dsh-dep-audit. - Can be used in combination with “Supply Chain & Build” plugins in the DeepWhale Security Guard series;
dsh-tool-vetfocuses solely on the “single package capability enumeration” task.
Conclusion¶
dsh-tool-vet lays out what a third-party package “will do” before installation into a verifiable list of facts. It serves as a step in supply chain self-checks, rather than a replacement for sandboxing or runtime approval.
- Directory Page: https://www.skillhub.cn/plugins/feely0208/dsh-tool-vet
- GitHub: https://github.com/feely0208/dsh-tool-vet