@wonaren/dsh-upgrade avatar

@wonaren/dsh-upgrade

DeepSeek Harness (DSH) 版本检测、多通道一键平滑升级与服务守护插件

PluginAutomationNotifications
Verification
L5 · Run tested
Verified
Risk
Critical
Health
Active
Trust
Silver

Install verification: runtime verified (L5) · tested on dsh 0.2.1-rc.2 · last checked Install verification details →

Install verification badge dsh 0.2.1-rc.2

What it doesAI

Detects the latest DeepSeek Harness version from multiple sources and performs one-click smooth upgrades with a service daemon.

  • Compares local @deepseek-ai/dsh against remote latest versions
  • Uses npmmirror mirror first, falls back to official npm
  • Daemon keeps the DSH service running and notifies on updates
automationAInotificationAI

Capability tags are AI-inferred or rule-extracted from the README (see badge) — vocabulary-limited, not install-verified. AI = inferred; README = literal keyword from the readme.

Installation

dsh plugin --profile web add dsh-upgrade
verified 1.1.0

Install method: npm · runtime verified (L5)

Verification & Compatibility

Grouped by plugin version: each card lists the dsh versions actually tested against that artifact version and their install verdicts (L5 wins). Untested combinations are omitted — absence means untested, never assumed compatible. L1–L3 are a plugin-level static archive (independent of the dsh version — the same verdict on every dsh row): they sit in each row's level grid next to L4/L5, marked "static", while their evidence is stored once per plugin inside that row's "checks & evidence" instead of being duplicated per version.

External credentials (plugin-level): none detected

Declared DSH compatibilityfrom package.json · peerDependencies
author declared no dsh version requirement

○ The author declares no dsh version requirement — install is not blocked by version.

Install compatibility matrix (rows = plugin versions〔latest 5〕, columns = dsh versions〔latest 5〕)
At-a-glance → evidence in the cards below
plugin \ dshdsh 0.2.1-rc.2
current
dsh 0.2.1-alpha.4dsh 0.2.1-alpha.2
1.1.0✓✓·
1.0.0··✓
v1.0.0···
Install compatibility (by plugin version, dsh versions within)
Legend:✓ L5 runtime verified○ ecosystem plugin◼ ecosystem app✗ failed
1.1.0npm✓ 2 runtime-verified2026-10-19

dsh-upgrade

✓dsh 0.2.1-rc.2current2026-10-19L5 · runtime verified
Environment & artifact
  • • Node.js: v24.14.0
  • • DSH: 0.2.1-rc.2
  • • Plugin artifact: npm · dsh-upgrade@1.1.0
Levels (L1–L3 plugin-level static archive · L4/L5 newest real verdicts for this combination)
L1 static
Passed
L2 static
Passed
L3 static
Passed
L4 sandbox
Passed
L5 runtime
Passed
Install + runtime smoke verified in the dsh sandbox — installs and runs
L5 · runtime verified · valid for dsh 0.2.1-rc.2

ID: dsh-upgrade-2@1.1.0@dsh0.2.1-rc.2 · profile: l4-sandbox

Issued: 2026-10-19 · expires: 2026-10-26

View checks & evidence
L1 · Found✓ Passed
Defaulted from L3✓ Passed
defaulted to passed — L3 install spec passed (full-registry L3 sweep policy)
L2 · Structured✓ Passed
Defaulted from L3✓ Passed
defaulted to passed — L3 install spec passed (full-registry L3 sweep policy)
L3 · Install spec✓ Passed
Install command parsed✓ Passed
Source: registry verification · Method: install spec parse · Captured 2026-10-18
DSH version declared✓ Passed
Source: registry verification · Method: DSH version declaration · Captured 2026-10-18
L4 · Install tested✓ Passed
Install executed in confined sandbox✓ Passed
Source: Windows ACL sandbox · Method: sandbox install run · Captured 2026-10-19
spec dsh-upgrade · channel npm package · outcome ran · exit 0
check took: 2.1s
Install succeeded✓ Passed
Source: Windows ACL sandbox · Method: sandbox install run · Captured 2026-10-19
spec dsh-upgrade · channel npm package · outcome ran · exit 0
check took: 2.1s
Installed artifact confirmed✓ Passed
Source: Windows ACL sandbox · Method: sandbox install run · Captured 2026-10-19
spec dsh-upgrade · channel npm package · outcome ran · exit 0
check took: 2.1s
L5 · Run tested✓ Passed

active in loader tree (150 entries)

Sandbox install passed✓ Passed
Source: Windows ACL sandbox · Method: sandbox install run · Captured 2026-10-19
spec dsh-upgrade · install mode reused L4 scratch
check took: 43ms
Web boot ready✓ Passed
Source: DSH runtime · Method: web boot · Captured 2026-10-19
ready line dsh web: http://127.0.0.1:58948/?token=…
HTTP endpoint served✓ Passed
Source: DSH runtime · Method: HTTP request · Captured 2026-10-19
path / · HTTP 200 · took 43ms
Plugin active in inventory✓ Passed
Source: DSH runtime · Method: plugin inventory query · Captured 2026-10-19
verdict active · entries 150
match: include:dsh-upgrade · dsh-upgrade · phase active
phases: active 122 · null 28

L1–L3 are plugin-level static conclusions (baseline, identical across dsh versions): evidence is stored once per plugin.

✓dsh 0.2.1-alpha.42026-10-18L5 · runtime verified
Environment & artifact
  • • Node.js: v24.14.0
  • • DSH: 0.2.1-alpha.4
  • • Plugin artifact: npm · dsh-upgrade@1.1.0
Levels (L1–L3 plugin-level static archive · L4/L5 newest real verdicts for this combination)
L1 static
Passed
L2 static
Passed
L3 static
Passed
L4 sandbox
Passed
L5 runtime
Passed
Install + runtime smoke verified in the dsh sandbox — installs and runs
L5 · runtime verified · valid for dsh 0.2.1-alpha.4

ID: dsh-upgrade-2@1.1.0@dsh0.2.1-alpha.4 · profile: l4-sandbox

Issued: 2026-10-18 · expires: 2026-10-25

View checks & evidence
L1 · Found✓ Passed
Defaulted from L3✓ Passed
defaulted to passed — L3 install spec passed (full-registry L3 sweep policy)
L2 · Structured✓ Passed
Defaulted from L3✓ Passed
defaulted to passed — L3 install spec passed (full-registry L3 sweep policy)
L3 · Install spec✓ Passed
Install command parsed✓ Passed
Source: registry verification · Method: install spec parse · Captured 2026-10-18
DSH version declared✓ Passed
Source: registry verification · Method: DSH version declaration · Captured 2026-10-18
L4 · Install tested✓ Passed
Install executed in confined sandbox✓ Passed
Source: Windows ACL sandbox · Method: sandbox install run · Captured 2026-10-18
spec dsh-upgrade · channel npm package · outcome ran · exit 0
check took: 2.3s
Install succeeded✓ Passed
Source: Windows ACL sandbox · Method: sandbox install run · Captured 2026-10-18
spec dsh-upgrade · channel npm package · outcome ran · exit 0
check took: 2.3s
Installed artifact confirmed✓ Passed
Source: Windows ACL sandbox · Method: sandbox install run · Captured 2026-10-18
spec dsh-upgrade · channel npm package · outcome ran · exit 0
check took: 2.3s
L5 · Run tested✓ Passed

active in loader tree (150 entries)

Sandbox install passed✓ Passed
Source: Windows ACL sandbox · Method: sandbox install run · Captured 2026-10-18
spec dsh-upgrade · install mode reused L4 scratch
check took: 316ms
Web boot ready✓ Passed
Source: DSH runtime · Method: web boot · Captured 2026-10-18
ready line dsh web: http://127.0.0.1:55611/?token=…
HTTP endpoint served✓ Passed
Source: DSH runtime · Method: HTTP request · Captured 2026-10-18
path / · HTTP 200 · took 316ms
Plugin active in inventory✓ Passed
Source: DSH runtime · Method: plugin inventory query · Captured 2026-10-18
verdict active · entries 150
match: include:dsh-upgrade · dsh-upgrade · phase active
phases: active 122 · null 28

L1–L3 are plugin-level static conclusions (baseline, identical across dsh versions): evidence is stored once per plugin.

1.0.0npm✓ 1 runtime-verified2026-10-14

dsh-upgrade

✓dsh 0.2.1-alpha.22026-10-14L5 · runtime verified
Environment & artifact
  • • Node.js: v24.14.0
  • • DSH: 0.2.1-alpha.2
  • • Plugin artifact: npm · dsh-upgrade@1.0.0
Levels (L1–L3 plugin-level static archive · L4/L5 newest real verdicts for this combination)
L1 static
Passed
L2 static
Passed
L3 static
Passed
L4 sandbox
Passed
L5 runtime
Passed
Install + runtime smoke verified in the dsh sandbox — installs and runs
L5 · runtime verified · valid for dsh 0.2.1-alpha.2

ID: dsh-upgrade-2@1.0.0@dsh0.2.1-alpha.2 · profile: l4-sandbox

Issued: 2026-10-14 · expires: 2026-10-21

View checks & evidence
L1 · Found✓ Passed
Defaulted from L3✓ Passed
defaulted to passed — L3 install spec passed (full-registry L3 sweep policy)
L2 · Structured✓ Passed
Defaulted from L3✓ Passed
defaulted to passed — L3 install spec passed (full-registry L3 sweep policy)
L3 · Install spec✓ Passed
Install command parsed✓ Passed
Source: registry verification · Method: install spec parse · Captured 2026-10-18
DSH version declared✓ Passed
Source: registry verification · Method: DSH version declaration · Captured 2026-10-18
L4 · Install tested✓ Passed
Install executed in confined sandbox✓ Passed
Source: Windows ACL sandbox · Method: sandbox install run · Captured 2026-10-14
spec dsh-upgrade · channel npm package · outcome ran · exit 0
check took: 3.0s
Install succeeded✓ Passed
Source: Windows ACL sandbox · Method: sandbox install run · Captured 2026-10-14
spec dsh-upgrade · channel npm package · outcome ran · exit 0
check took: 3.0s
Installed artifact confirmed✓ Passed
Source: Windows ACL sandbox · Method: sandbox install run · Captured 2026-10-14
spec dsh-upgrade · channel npm package · outcome ran · exit 0
check took: 3.0s
L5 · Run tested✓ Passed

active in loader tree (150 entries)

Sandbox install passed✓ Passed
Source: Windows ACL sandbox · Method: sandbox install run · Captured 2026-10-14
spec dsh-upgrade · install mode reused L4 scratch
check took: 318ms
Web boot ready✓ Passed
Source: DSH runtime · Method: web boot · Captured 2026-10-14
ready line dsh web: http://127.0.0.1:50643/?token=…
HTTP endpoint served✓ Passed
Source: DSH runtime · Method: HTTP request · Captured 2026-10-14
path / · HTTP 200 · took 318ms
Plugin active in inventory✓ Passed
Source: DSH runtime · Method: plugin inventory query · Captured 2026-10-14
verdict active · entries 150
match: include:dsh-upgrade · dsh-upgrade · phase active
phases: active 122 · null 28

L1–L3 are plugin-level static conclusions (baseline, identical across dsh versions): evidence is stored once per plugin.

v1.0.0github2026-10-14

https://github.com/wonaren/dsh-upgrade

No runtime install test for this version (static scan only) — compatibility unknown, never assumed.

Author badges

Embed the official badges in your README to showcase security & install-test status:

dsh.so risk
`[![dsh.so risk](https://www.dsh.so/badge/dsh-upgrade-2.svg)](https://www.dsh.so/artifact/dsh-upgrade-2/)`
dsh 0.2.1-rc.2 install verified
`[![dsh.so install · dsh 0.2.1-rc.2](https://www.dsh.so/badge/install/dsh-upgrade-2@0.2.1-rc.2.svg)](https://www.dsh.so/artifact/dsh-upgrade-2/)`

Security Report

Two automated layers, neither a manual review: a static scan (per-plugin rule checks) and a model-driven dynamic security audit that covers only the subset static-flagged at warn or above and never executes plugin code.

dsh-upgrade-2Automated review · daily

Static low, dynamic critical — stricter wins → overall critical.

static low→dynamic critical→overall critical
0 critical·0 high
criticaloverall · critical
1static scan · vet primaryvet AST static analysis (npm artifact or git source)
plugin versionv1.1.0dsh manifest
scanned version1.1.0npm2026-10-21
current version1.1.0same version
vet verdictclean · npm

Vet is an AST static scan (npm artifact or git source).

show static findings (8)
  • criticalshellExec · shelllib/index.js:81

    const whichOut = execSync('which dsh', { encoding: 'utf8', stdio: ['ignore', 'pipe', 'ignore'] }).trim();

  • criticalshellExec · shelllib/index.js:94

    const prefixOut = execSync('npm prefix -g', { encoding: 'utf8', stdio: ['ignore', 'pipe', 'ignore'] }).trim();

  • criticalshellExec · shelllib/index.js:121

    const verOut = execSync('dsh --version', { encoding: 'utf8', stdio: ['ignore', 'pipe', 'ignore'] }).trim();

  • warningchildProcess · code-execlib/index.js:226

    const rChild = spawn('launchctl', ['kickstart', '-k', `gui/${uid}/com.deepseek.dsh.web`], {

  • warningchildProcess · code-execlib/index.js:455

    const child = spawn(npmBin, ['install', '-g', installArg], {

  • warningfsWrite · fileslib/index.js:216

    fs.writeFileSync(notesPath, newEntry, 'utf8');

  • warningfsWrite · fileslib/index.js:418

    fs.writeFileSync(pkgPath, JSON.stringify(pData, null, 2) + '\n', 'utf8');

  • warningfsWrite · fileslib/index.js:427

    fs.writeFileSync(recordPath, JSON.stringify(recordData, null, 2) + '\n', 'utf8');

2model reads redacted source context · never executes plugin code
highest gradecritical
merged intooverall critical
audited at2026-10-16
findings1 critical·1 high1 medium / 1 low hidden
show 4 audit findings
  • criticalUnvalidated request version is passed to global npm install (arbitrary package/tarball installation)lib/index.js:452

    POST /api/dsh-upgrade/start takes `parsed.version` straight from the request body; the only transformation is `targetVersion.trim().replace(/^v/, '')` (line 616), with no semver allow-list or comparison against the registry. That value becomes npm's package spec, and npm accepts far more than plain versions: git URLs, tarball URLs and `npm:<alias>` specs are valid dependency specs, so a caller can make the host install attacker-chosen code globally (`npm install -g @deepseek-ai/dsh@npm:evil-pkg` or a remote tarball). The plugin then calls recordUpgradeNotes and triggerRestartService, so the in

  • highState-changing API is unauthenticated with Access-Control-Allow-Origin: * on every responselib/index.js:502

    The whole /api/dsh-upgrade prefix is served with wildcard CORS and preflight approval for POST plus Content-Type, and no token, session check, Origin/Host check or CSRF defence anywhere in the handler. Any web page the user browses can therefore issue cross-origin fetch() calls that (a) start an upgrade with an arbitrary version (see critical finding), (b) POST /reset to wipe task state, (c) POST /restart, and can read GET /info, /status and /compatibility responses, which disclose pid, uptime, node version, installed npm path and the local plugin inventory. The wildcard CORS header removes th

  • mediumUnauthenticated restart endpoint kills the running service via launchctl kickstart / process.exitlib/index.js:226

    POST /api/dsh-upgrade/restart (and the same handler mounted at /api/dsh-restart) is reachable without any credential and immediately schedules `launchctl kickstart -k` on the DSH agent; on failure the fallback path calls process.exit(0) (line 234). Because the endpoint is CORS-open, any visited web page can repeatedly restart the service, aborting in-flight sessions and tool runs (the client itself warns that 'current running inference or tasks will be interrupted'). This is an unauthenticated availability/DoS vector against the developer's tooling, distinct from the upgrade code-execution pat

  • lowHard-coded developer-specific absolute path written on every upgradelib/index.js:198

    recordUpgradeNotes writes (and reads) a file outside the plugin's own scope under the author's personal checkout path. On any other machine the write fails silently (caught at line 217), and where it succeeds it appends upgrade history including versions, the profile backup path and the rollback command to an unexpected location. It also leaks the author's local directory layout into the published package. Not exploitable by itself, but it is an unintended filesystem side effect on an attacker-influenced code path (the version string is embedded in the note).

Unauthenticated, CORS-open upgrade endpoint feeds an unvalidated version string into global npm install, allowing arbitrary package/code installation followed by a service restart.

Rule: the dynamic audit can only raise risk, never lower it (raise-only, never an exemption); a wrong raise is withdrawn by human review and the tier falls back to the static verdict. Overall verdict = the stricter of the two layers.

Disclaimer: the static scan and the dynamic security audit are both automated analysis, not a security guarantee. Always review what you install.

Activity

Last commit 2026-10-14 · activity: Active

• Repo created: 2026-10-13

• Stars: ★ 1 · Forks: 0

• Health: Active — committed within last 30 days

Source

GitHub: github.com/wonaren/dsh-upgrade

Was this page helpful?