Install verification: sandbox install ok, web smoke failed (L5) · tested on dsh 0.2.1-rc.2 · last checked Install verification details →
What it doesAI
Enables the agent to safely restart DSH Desktop via a watchdog that escapes the process tree, kills, relaunches, and checks health.
- Materializes a watchdog script and double-fork setsid() launcher
- Watchdog escapes to own session, reparented to launchd
- Kills Desktop, relaunches, polls health URL; healthy in ~3s
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 github:alchemistwu/dsh-self-restartInstall method: GitHub · sandbox install ok, web smoke failed (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
○ The author declares no dsh version requirement — install is not blocked by version.
| plugin \ dsh | dsh 0.2.1-rc.2 current | dsh 0.2.1-alpha.4 | dsh 0.2.1-alpha.2 | dsh 0.2.0-rc.2 | dsh 0.2.0-rc.1 |
|---|---|---|---|---|---|
| 9db424 | ✗ | ✗ | ✗ | ✗ | ✗ |
9db424github15 failed2026-10-19
https://github.com/alchemistwu/dsh-self-restart
✗dsh 0.2.1-rc.2current2026-10-19L5 · failed
- • Node.js: v24.14.0
- • DSH: 0.2.1-rc.2
- • Plugin artifact: github · https://github.com/alchemistwu/dsh-self-restart (version unstated)
ID: dsh-self-restart-2@9db424@dsh0.2.1-rc.2 · profile: l4-sandbox
Issued: 2026-10-19 · expires: 2026-10-26
View checks & evidence
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-16L5 · failed
- • Node.js: v24.14.0
- • DSH: 0.2.1-alpha.4
- • Plugin artifact: github · https://github.com/alchemistwu/dsh-self-restart (version unstated)
ID: dsh-self-restart-2@9db424@dsh0.2.1-alpha.4 · profile: l4-sandbox
Issued: 2026-10-16 · expires: 2026-10-23
View checks & evidence
L1–L3 are plugin-level static conclusions (baseline, identical across dsh versions): evidence is stored once per plugin.
✗dsh 0.2.1-alpha.22026-10-10L5 · failed
- • Node.js: v24.14.0
- • DSH: 0.2.1-alpha.2
- • Plugin artifact: github · https://github.com/alchemistwu/dsh-self-restart (version unstated)
ID: dsh-self-restart-2@9db424@dsh0.2.1-alpha.2 · profile: l4-sandbox
Issued: 2026-10-10 · expires: 2026-10-17
View checks & evidence
L1–L3 are plugin-level static conclusions (baseline, identical across dsh versions): evidence is stored once per plugin.
✗dsh 0.2.0-rc.22026-10-08L5 · failed
- • Node.js: v24.14.0
- • DSH: 0.2.0-rc.2
- • Plugin artifact: github · https://github.com/alchemistwu/dsh-self-restart (version unstated)
ID: dsh-self-restart-2@9db424@dsh0.2.0-rc.2 · profile: l4-sandbox
Issued: 2026-10-08 · expires: 2026-10-15
View checks & evidence
L1–L3 are plugin-level static conclusions (baseline, identical across dsh versions): evidence is stored once per plugin.
✗dsh 0.2.0-rc.12026-09-29L5 · failed
- • Node.js: v24.14.0
- • DSH: 0.2.0-rc.1
- • Plugin artifact: github · https://github.com/alchemistwu/dsh-self-restart (version unstated)
ID: dsh-self-restart-2@9db424@dsh0.2.0-rc.1 · profile: l4-sandbox
Issued: 2026-09-29 · expires: 2026-10-06
View checks & evidence
L1–L3 are plugin-level static conclusions (baseline, identical across dsh versions): evidence is stored once per plugin.
✗dsh 0.1.7-rc.22026-09-25L5 · failed
- • Node.js: v24.14.0
- • DSH: 0.1.7-rc.2
- • Plugin artifact: github · https://github.com/alchemistwu/dsh-self-restart (version unstated)
ID: dsh-self-restart-2@9db424@dsh0.1.7-rc.2 · profile: l4-sandbox
Issued: 2026-09-25 · expires: 2026-10-02
View checks & evidence
L1–L3 are plugin-level static conclusions (baseline, identical across dsh versions): evidence is stored once per plugin.
○dsh 0.1.7-rc.12026-09-23not tested
- • Node.js: v24.14.0
- • DSH: 0.1.7-rc.1
- • Plugin artifact: github · https://github.com/alchemistwu/dsh-self-restart (version unstated)
ID: dsh-self-restart-2@9db424@dsh0.1.7-rc.1 · profile: l4-sandbox
Issued: 2026-09-23 · expires: 2026-09-30
View checks & evidence
This level was not executed in this scan.
L1–L3 are plugin-level static conclusions (baseline, identical across dsh versions): evidence is stored once per plugin.
✗dsh 0.1.7-alpha.22026-09-23L5 · failed
- • Node.js: v24.14.0
- • DSH: 0.1.7-alpha.2
- • Plugin artifact: github · https://github.com/alchemistwu/dsh-self-restart (version unstated)
ID: dsh-self-restart-2@9db424@dsh0.1.7-alpha.2 · profile: l4-sandbox
Issued: 2026-09-23 · expires: 2026-09-30
View checks & evidence
L1–L3 are plugin-level static conclusions (baseline, identical across dsh versions): evidence is stored once per plugin.
✗dsh 0.1.6-alpha.22026-09-20L5 · failed
- • Node.js: v24.14.0
- • DSH: 0.1.6-alpha.2
- • Plugin artifact: github · https://github.com/alchemistwu/dsh-self-restart (version unstated)
ID: dsh-self-restart-2@9db424@dsh0.1.6-alpha.2 · profile: l3-fullscan
Issued: 2026-09-20 · expires: 2026-09-27
View checks & evidence
L1–L3 are plugin-level static conclusions (baseline, identical across dsh versions): evidence is stored once per plugin.
✗dsh 0.1.6-alpha.12026-09-17L5 · failed
- • Node.js: v24.14.0
- • DSH: 0.1.6-alpha.1
- • Plugin artifact: github · https://github.com/alchemistwu/dsh-self-restart (version unstated)
ID: dsh-self-restart-2@9db424@dsh0.1.6-alpha.1 · profile: l4-sandbox
Issued: 2026-09-17 · expires: 2026-09-24
View checks & evidence
L1–L3 are plugin-level static conclusions (baseline, identical across dsh versions): evidence is stored once per plugin.
✗dsh 0.1.5-rc.22026-09-13L5 · failed
- • Node.js: v24.14.0
- • DSH: 0.1.5-rc.2
- • Plugin artifact: github · https://github.com/alchemistwu/dsh-self-restart (version unstated)
ID: dsh-self-restart-2@9db424@dsh0.1.5-rc.2 · profile: l4-sandbox
Issued: 2026-09-13 · expires: 2026-09-20
View checks & evidence
L1–L3 are plugin-level static conclusions (baseline, identical across dsh versions): evidence is stored once per plugin.
✗dsh 0.1.3-alpha.22026-09-08L5 · failed
- • Node.js: v24.14.0
- • DSH: 0.1.3-alpha.2
- • Plugin artifact: github · https://github.com/alchemistwu/dsh-self-restart (version unstated)
ID: dsh-self-restart-2@9db424@dsh0.1.3-alpha.2 · profile: l4-sandbox
Issued: 2026-09-08 · expires: 2026-09-15
View checks & evidence
L1–L3 are plugin-level static conclusions (baseline, identical across dsh versions): evidence is stored once per plugin.
✗dsh 0.1.3-alpha.12026-09-07L5 · failed
- • Node.js: v24.14.0
- • DSH: 0.1.3-alpha.1
- • Plugin artifact: github · https://github.com/alchemistwu/dsh-self-restart (version unstated)
ID: dsh-self-restart-2@9db424@dsh0.1.3-alpha.1 · profile: l3-fullscan
Issued: 2026-09-07 · expires: 2026-09-14
View checks & evidence
L1–L3 are plugin-level static conclusions (baseline, identical across dsh versions): evidence is stored once per plugin.
✗dsh 0.1.2-rc.12026-09-05L5 · failed
- • Node.js: v24.14.0
- • DSH: 0.1.2-rc.1
- • Plugin artifact: github · https://github.com/alchemistwu/dsh-self-restart#9db424
ID: dsh-self-restart-2@9db424@dsh0.1.2-rc.1 · profile: l3-fullscan
Issued: 2026-09-05 · expires: 2026-09-12
View checks & evidence
L1–L3 are plugin-level static conclusions (baseline, identical across dsh versions): evidence is stored once per plugin.
✗dsh 0.1.2-alpha.12026-09-06L5 · failed
- • Node.js: v24.14.0
- • DSH: 0.1.2-alpha.1
- • Plugin artifact: github · https://github.com/alchemistwu/dsh-self-restart (version unstated)
ID: dsh-self-restart-2@9db424@dsh0.1.2-alpha.1 · profile: l3-fullscan
Issued: 2026-09-06 · expires: 2026-09-13
View checks & evidence
L1–L3 are plugin-level static conclusions (baseline, identical across dsh versions): evidence is stored once per plugin.
✗prehistory2026-10-04L5 · failed
- • Node.js: v24.14.0
- • DSH: unknown
- • Plugin artifact: github · https://github.com/alchemistwu/dsh-self-restart (version unstated)
ID: dsh-self-restart-2@9db424@dshunknown · profile: l4-sandbox
Issued: 2026-10-04 · expires: 2026-10-11
View checks & evidence
L1–L3 are plugin-level static conclusions (baseline, identical across dsh versions): evidence is stored once per plugin.
Author badges
Embed the official badges in your README to showcase security & install-test status:
`[](https://www.dsh.so/artifact/dsh-self-restart-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.
Static low, dynamic medium — stricter wins → overall medium.
v0.1.0dsh manifest0.1.0git2026-10-210.1.0same versionclean · gitVet is an AST static scan (npm artifact or git source).
show static findings (5)
- warningchildProcess · code-exec
src/index.ts:75if os.fork() > 0: - warningchildProcess · code-exec
src/index.ts:78if os.fork() > 0: - warningchildProcess · code-exec
src/index.ts:145const child = spawn('python3', [paths.launcher], { detached: true, stdio: 'ignore' }) - warningnetIp · network
src/index.ts:36healthUrl: 'http://127.0.0.1:43120/', - warningcurlDownload · network
src/index.ts:60if curl -s -o /dev/null --max-time 2 ${JSON.stringify(healthUrl)}; then
show 3 audit findings
- mediumConfig values are spliced into the generated bash watchdog without escaping $ or backticks
src/index.ts:60JSON.stringify only escapes quotes/backslashes, so a config value such as "$(id)" survives as "$(id)" inside the double-quoted curl/open arguments and is command-substituted when the watchdog.sh runs. Whoever can influence the plugin config (a shared or pushed profile, or any config path the agent can edit) gets command execution as the Desktop user on the next restart; the same applies to appPath at line 58 and statusFile at line 46 (also an arbitrary-path truncation primitive via `> "$MARKER"`).
- lowFixed predictable /tmp status file drives the auto-resume decision
src/index.ts:37The watchdog appends to, and readHealthyAt() trusts, a constant path in a shared directory. Before the first run another local user could pre-create or symlink that path, either hijacking the watchdog's `>> "$MARKER"` writes or forging a 'HEALTHY' line that releases the boot continuation. Requires a local attacker on a multi-user host; on a single-user Mac the residual risk is small.
- lowBoot continuation resumes any session id found in restart-intent.json and injects a follow-up message
src/resume-intent.ts:85The agentId is taken from a plain JSON file with no permission check or integrity validation, and on every boot the plugin may resume that session and push a synthetic user turn saying 'continue your pending work'. Any same-user process (or anything able to write that path, combined with the /tmp status file above) can therefore wake an arbitrary session at boot. The injected text is fixed, so this is a wake-up/persistence primitive rather than arbitrary prompt injection.
Config values are interpolated into a generated bash watchdog without escaping $(...) or backticks; otherwise it is a straightforward operator-configured self-restart helper.
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-09-02 · activity: Stable
• Repo created: 2026-09-02
• Stars: ★ 0 · Forks: 0
• Health: Stable — committed within 90 days
Source
Author README
View on GitHub ↗The author's original README from the repository — fetched live, unedited (the English page loads the default README).
