GitHub Plugin Security Review Squad: Static Security Review Presets for GitHub Plugins under DSH

Introduction

When installing plugins from GitHub in DeepSeek Harness (DSH), the common practice is to trust the repository description or take a quick glance at the directory structure. However, if a plugin ships with a malicious installation script, dependency poisoning, or prompt injection embedded in the repository, it may already have crossed boundaries before you even perform a local “trial install.” Manual auditing is costly, while fully automated npm install simply imports the risk.

The following is the GitHub Plugin Security Review Squad published by community maintainer jiejiushijiehaohao-creator (repository deepseek-preset-github-plugin-security-review, SkillHub category admin-security). It is a DSH agent preset that performs static review on plugin source code already fetched from GitHub and placed locally, without installing or executing any code in the reviewed repository. The project describes itself as an exploratory preset built with AI assistance and cannot replace manual auditing; the maintainer also explicitly advises against using it in production environments or environments containing sensitive credentials. Current GitHub stars: 0, license: MIT (package.json version 1.0.0).

What Is This

In one sentence: a “Captain + Recon Scout + Security Auditor” three-role pipeline dedicated to reviewing “GitHub plugin directories or ZIPs downloaded to local.”

Role Tool Name Responsibility
Captain (main agent) Tools mounted by the preset + host-side tools Scheduling and aggregation; does not perform forensics itself
Recon scout recon_scout Collects raw facts such as tree structure, package.json, scripts, dangerous pattern hits, and dependency lists; does not draw conclusions
Security auditor security_auditor Makes judgments per GATE 1 background / GATE 2 scripts and code / GATE 3 dependencies; has no terminal and cannot execute any commands

The flow is fixed: captain → recon_scout (foreground) → captain relays verbatim → security_auditor (foreground) → captain summarizes.

The recon scout and security auditor are instantiated by @deepseek-ai/dsh-tool-subagent, and when the child processes are created, a hard tool whitelist is applied via ctx.tools.restrict(): the recon scout only has pwsh, bash, job_output, job_list, job_kill; the security auditor only has read, glob, grep, web_search, web_fetch. The captain is not subject to the same level of isolation; R8 in the preset prohibits using host tools that bypass the pipeline (such as Agent Teams’ spawn_teammate), but this is a prompt-layer rule, not a loader-level lockout—keep this in mind when using it.

The repository is also a DSH bundle: dsh.bundle.patch in package.json points to preset.patch.yml, enabling one-click installation from GitHub without manually copying YAML.

Core Features

Static Intake; Clone and Execution Prohibited

Review inputs can only be locally extracted directories or local ZIP files (the recon scout may extract to a temporary directory). The pipeline prohibits git clone, arbitrary git subcommands, and Git hooks. The README states: GitHub web page URLs cannot be used directly as parameters; if a ZIP is needed, you can curl -L -o in a networked shell and then extract it; in network-free environments, the ZIP should be downloaded locally beforehand.

Two-Agent Division of Labor and Output Format

The recon scout only outputs raw data (directory tree, script text, pattern hits, etc.) and must not give “safe / unsafe” verdicts. The security auditor outputs GATE 1/2/3 reports. The captain finally provides a structured conclusion, for example:

  • Conclusion: safe / suspicious / high risk
  • Risk type: evidence-based / policy red-line-based / none
  • Recommendation: install / install with conditions / do not install
  • Key red flags (including file:line or links)
  • Needs human review, Coverage and blind spots
  • Full report (security auditor’s full text)

Anti-Context-Bloat and Disk-Write Boundaries

The README divides control into three layers: loader (tool whitelist), prompt (role rules), mechanism (automatic trimming). For example, it limits “context explosion” through tool-result-pruner (6000 characters), captain/scout output caps, and approximately 250-line report caps. The recon scout must not modify the reviewed repository; artifacts may only land in $env:TEMP\dsh-recon\ (the README also documents tested constraints in environments without write access to the workspace, without git, or with no shell network access—these are not relied upon as security controls; rules are written in the persona).

Red Lines and Gates (Excerpts)

For the full list, see the repository README’s “Red-line map”. Parts visible in the retrieved material include: prohibition of installation hooks such as npm install / npm run / yarn; static reading only, no execution of downloaded code; no reading sensitive files outside the reviewed directory (such as .ssh, .npmrc, .env); repository text treated as data, not instructions; no conclusions without file:line evidence; no asserting CVEs or similar from memory. The validation checklist also requires: for nonexistent paths, the recon scout should return STATUS: BLOCKED and not call the security auditor; if a malicious AGENTS.md is placed in the target, the recon scout should record it as a suspicious signal rather than comply.

The repository CI provides validate.yml; locally, you can run node scripts/validate.mjs against a valid checkout, expecting exit code 0.

Installation and Activation

The preset ID is gh-plugin-security-review. Only one of the two installation methods can be chosen, otherwise the registry will report an error due to a duplicate ID (Duplicate agent preset).

The DSH installer supports git specs such as github:owner/repo. GUI: DSH → Plugins → Install, fill in:

github:jiejiushijiehaohao-creator/deepseek-preset-github-plugin-security-review

CLI (dsh is on PATH):

dsh plugin --profile desktop add github:jiejiushijiehaohao-creator/deepseek-preset-github-plugin-security-review

You can also use the absolute path of this repository directory as the install spec. After installation, select GitHub Plugin Security Review Squad in the preset selector of a new session (the default is still cordis; you need to select per session or change the default).

Route B: Manual Patch Profile

Target file: <home>/.dsh/profiles/<profile>/cordis.patch.yml (commonly %USERPROFILE%\.dsh\profiles\desktop\cordis.patch.yml on Desktop).

  1. Back up the file.
  2. Append the content from - insert: onward in the repository’s preset.patch.yml to the end of cordis.patch.yml (top-level YAML array, - insert: at the beginning of a line is a new item).
  3. Restart DSH → new session → select the preset.

Uninstallation should correspond to the installation method to avoid duplicate registration.

Typical Usage

After selecting this preset in a new session, tell the captain the path to review (the Windows-style example comes from the README; on Linux, replace with the corresponding path):

review /path/to/some-plugin          ← extracted directory
review /path/to/some-plugin.zip      ← local ZIP

Following the steps above, you will first see the recon scout’s raw forensics, then the security auditor’s GATE report, and finally the captain’s one-line recommendation and complete field-based verdict.

Use Cases and Notes

Who it is for: developers and administrators in the DSH ecosystem who frequently pull community plugins from GitHub and want supply-chain-oriented static review without executing the target code.

Things you must know:

  • The preset runs under the permissions of the current DSH process; the captain may still see additional host-side tools, relying on prompt self-discipline and operational habits.
  • Review cannot replace professional manual auditing or formal penetration testing; both the SkillHub description and README emphasize its experimental nature and capability boundaries.
  • Before installing any plugin, you should still read the source code, license, and maintainer descriptions yourself; this preset provides evidence-driven recommendations, not installation permission.
  • Do not mix the two installation routes; in network-free environments, prepare local ZIPs in advance and do not expect the pipeline to clone remote repositories for you.

The DSH community directory (such as SkillHub) has no official affiliation with DeepSeek / High-Flyer; this article introduces a community plugin, not a built-in capability of the “official app store.”

Links

  • SkillHub directory page: https://www.skillhub.cn/plugins/jiejiushijiehaohao-creator/deepseek-preset-github-plugin-security-review
  • GitHub repository: https://github.com/jiejiushijiehaohao-creator/deepseek-preset-github-plugin-security-review

If you have improvement ideas regarding red-line design, dependency cascading, or YAML validation, you can discuss them with the maintainer in the repository Issues; before using, please verify behavior against the README and preset.patch.yml.

羽毛球分组比赛记分
小程序二维码

欢迎使用《羽毛球分组比赛记分》微信小程序

Xiaoye